13 #ifndef _RTEMS_TMTEST27 14 #error "This is an RTEMS internal file you must not include directly." 20 #include <bsp/fatal.h> 27 #define MUST_WAIT_FOR_INTERRUPT 1 29 static void nullFunc(
void) {}
33 (rtems_irq_enable) nullFunc,
34 (rtems_irq_disable) nullFunc,
35 (rtems_irq_is_enabled) nullFunc};
39 clockIrqData.hdl = _handler;
41 printk(
"Error installing clock interrupt handler!\n");
42 bsp_fatal(MPC5200_FATAL_TM27_IRQ_INSTALL);
46 #define Cause_tm27_intr() \ 48 uint32_t _clicks = 8; \ 49 __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \ 52 #define Clear_tm27_intr() \ 54 uint32_t _clicks = 0xffffffff; \ 55 __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \ 58 #define Lower_tm27_intr() \ 61 _ISR_Set_level( 0 ); \ 62 __asm__ volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \ 64 __asm__ volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:66
int BSP_install_rtems_irq_handler(const rtems_irq_connect_data *cd)
Definition: irq-legacy.c:44
int printk(const char *fmt,...) RTEMS_PRINTFLIKE(1
Kernel Print.