RTEMS  5.1
tm27.h
Go to the documentation of this file.
1 
5 /*
6  * The license and distribution terms for this file may be
7  * found in the file LICENSE in this distribution or at
8  * http://www.rtems.org/license/LICENSE.
9  */
10 
11 #ifndef _RTEMS_TMTEST27
12 #error "This is an RTEMS internal file you must not include directly."
13 #endif
14 
15 #ifndef __tm27_h
16 #define __tm27_h
17 
18 #include <bsp/irq.h>
19 
20 /*
21  * Define the interrupt mechanism for Time Test 27
22  */
23 
24 int assert_sw_irw(uint32_t irqnum);
25 int negate_sw_irw(uint32_t irqnum);
26 
27 #define MUST_WAIT_FOR_INTERRUPT 0
28 
29 #define Install_tm27_vector( handler ) \
30  rtems_interrupt_handler_install( \
31  AU1X00_IRQ_SW0, "benchmark", 0, (rtems_interrupt_handler)handler, NULL );
32 
33 #define Cause_tm27_intr() \
34  do { \
35  assert_sw_irq(0); \
36  } while(0)
37 
38 #define Clear_tm27_intr() \
39  do { \
40  negate_sw_irq(0); \
41  } while(0)
42 
43 #define Lower_tm27_intr() \
44  do { \
45  continue;\
46  } while(0)
47 
48 #endif