13#ifndef _RTEMS_TMTEST27
14#error "This is an RTEMS internal file you must not include directly."
26#define MUST_WAIT_FOR_INTERRUPT 1
28static void nullFunc(
void) {}
31 (rtems_irq_enable)nullFunc,
32 (rtems_irq_disable)nullFunc,
33 (rtems_irq_is_enabled) nullFunc};
37 clockIrqData.hdl = handler;
38 if (!BSP_install_rtems_irq_handler (&clockIrqData)) {
39 printk(
"Error installing clock interrupt handler!\n");
44#define Cause_tm27_intr() \
46 uint32_t _clicks = 1; \
47 __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
51#define Clear_tm27_intr() \
53 uint32_t _clicks = 0xffffffff; \
54 __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
57#define Lower_tm27_intr() \
60 _ISR_Set_level( 0 ); \
61 __asm__ volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
63 __asm__ volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
RTEMS_NO_RETURN void rtems_fatal_error_occurred(uint32_t fatal_code)
Invokes the fatal error handler.
Definition: fatal.c:47
void(* rtems_interrupt_handler)(void *)
Interrupt handler routines shall have this type.
Definition: intr.h:1030