forked from Imagelibrary/rtems
gen5200/include/tm27.h: Fix warnings
This commit is contained in:
@@ -26,19 +26,20 @@
|
|||||||
|
|
||||||
#define MUST_WAIT_FOR_INTERRUPT 1
|
#define MUST_WAIT_FOR_INTERRUPT 1
|
||||||
|
|
||||||
void nullFunc(void) {}
|
static void nullFunc(void) {}
|
||||||
|
|
||||||
static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER,
|
static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER,
|
||||||
0,
|
0,
|
||||||
(rtems_irq_enable) nullFunc,
|
(rtems_irq_enable) nullFunc,
|
||||||
(rtems_irq_disable) nullFunc,
|
(rtems_irq_disable) nullFunc,
|
||||||
(rtems_irq_is_enabled) nullFunc};
|
(rtems_irq_is_enabled) nullFunc};
|
||||||
static void Install_tm27_vector(void (*_handler)(void))
|
|
||||||
|
RTEMS_INLINE_ROUTINE void Install_tm27_vector(void (*_handler)(void))
|
||||||
{
|
{
|
||||||
clockIrqData.hdl = _handler;
|
clockIrqData.hdl = _handler;
|
||||||
if (!BSP_install_rtems_irq_handler (&clockIrqData)) {
|
if (!BSP_install_rtems_irq_handler (&clockIrqData)) {
|
||||||
printk("Error installing clock interrupt handler!\n");
|
printk("Error installing clock interrupt handler!\n");
|
||||||
bsp_fatal(MPC5200_FATAL_TM27_IRQ_INSTALL);
|
bsp_fatal(MPC5200_FATAL_TM27_IRQ_INSTALL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user