13#ifndef _RTEMS_TMTEST27
14#error "This is an RTEMS internal file you must not include directly."
26#define MUST_WAIT_FOR_INTERRUPT 1
31 (rtems_irq_enable) nullFunc,
32 (rtems_irq_disable) nullFunc,
33 (rtems_irq_is_enabled) nullFunc};
34static void Install_tm27_vector(
void (*_handler)(
void))
36 clockIrqData.hdl = _handler;
38 printk(
"Error installing clock interrupt handler!\n");
43#define Cause_tm27_intr() \
45 uint32_t _clicks = 8; \
46 __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
49#define Clear_tm27_intr() \
51 uint32_t _clicks = 0xffffffff; \
52 __asm__ volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \
55#define Lower_tm27_intr() \
58 _ISR_Set_level( 0 ); \
59 __asm__ volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
61 __asm__ volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
int printk(const char *fmt,...) RTEMS_PRINTFLIKE(1
Kernel Print.
void rtems_fatal_error_occurred(uint32_t the_error) RTEMS_NO_RETURN
Invokes the internal error handler with a source of INTERNAL_ERROR_RTEMS_API and is internal set to f...
Definition: fatal.c:28
int BSP_install_rtems_irq_handler(const rtems_irq_connect_data *cd)
Definition: irq-legacy.c:59