34#ifndef _RTEMS_TMTEST27
35#error "This is an RTEMS internal file you must not include directly."
48#define MUST_WAIT_FOR_INTERRUPT 1
60static int stub_rtems_irq_is_enabled(
72 stub_rtems_irq_enable,
73 stub_rtems_irq_disable,
74 stub_rtems_irq_is_enabled
79 clockIrqData.hdl = handler;
80 if ( !BSP_install_rtems_irq_handler( &clockIrqData ) ) {
81 printk(
"Error installing clock interrupt handler!\n" );
82 bsp_fatal( MPC5200_FATAL_TM27_IRQ_INSTALL );
86#define Cause_tm27_intr() \
88 uint32_t _clicks = 8; \
89 __asm__ volatile( "mtdec %0" \
91 : "r"(( _clicks )) ); \
94#define Clear_tm27_intr() \
96 uint32_t _clicks = 0xffffffff; \
97 __asm__ volatile( "mtdec %0" \
99 : "r"(( _clicks )) ); \
102#define Lower_tm27_intr() \
105 _ISR_Set_level( 0 ); \
106 __asm__ volatile( "mfmsr %0 ;" \
110 __asm__ volatile( "mtmsr %0 ;" \
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