15#ifndef _RTEMS_TMTEST27
16#error "This is an RTEMS internal file you must not include directly."
28#define MUST_WAIT_FOR_INTERRUPT 1
36 .name = BSP_DECREMENTER,
39 .on = null_irq_enable,
40 .off = null_irq_disable,
41 .isOn = null_irq_is_enabled
46 clockIrqData.hdl = handler;
47 if (!BSP_install_rtems_irq_handler (&clockIrqData)) {
48 printk(
"Error installing clock interrupt handler!\n");
53#define Cause_tm27_intr() \
55 uint32_t _clicks = 8; \
56 __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
59#define Clear_tm27_intr() \
61 uint32_t _clicks = 0xffffffff; \
62 __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
65#define Lower_tm27_intr() \
68 _ISR_Set_level( 0 ); \
69 __asm__ volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
71 __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