13#ifndef _RTEMS_TMTEST27
14#error "This is an RTEMS internal file you must not include directly."
27#define MUST_WAIT_FOR_INTERRUPT 1
29static void nullFunc(
void) {}
33 (rtems_irq_enable) nullFunc,
34 (rtems_irq_disable) nullFunc,
35 (rtems_irq_is_enabled) nullFunc};
39 clockIrqData.hdl = handler;
40 if (!BSP_install_rtems_irq_handler (&clockIrqData)) {
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) ); \
This header file provides fatal codes for RTEMS_FATAL_SOURCE_BSP.
void(* rtems_interrupt_handler)(void *)
Interrupt handler routines shall have this type.
Definition: intr.h:1030