source: rtems/c/src/lib/libbsp/mips/csb350/include/tm27.h @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 900 bytes
Line 
1/**
2 *  @file
3 */
4
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
24int assert_sw_irw(uint32_t irqnum);
25int 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
Note: See TracBrowser for help on using the repository browser.