source: rtems/c/src/lib/libbsp/c4x/c4xsim/include/tm27.h @ 3defec6

4.104.114.84.95
Last change on this file since 3defec6 was 3defec6, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 23, 2004 at 4:47:38 AM

2004-04-23 Ralf Corsepius <ralf_corsepius@…>

PR 610/bsps

  • Makefile.am: Add include/tm27.h, Cosmetics.
  • include/tm27.h: Final cosmetics.
  • Property mode set to 100644
File size: 769 bytes
Line 
1/*
2 *  tm27.h
3 *
4 *  The license and distribution terms for this file may be
5 *  found in the file LICENSE in this distribution or at
6 *  http://www.rtems.com/license/LICENSE.
7 *
8 *  $Id$
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/*
19 *  Stuff for Time Test 27
20 */
21
22#include <rtems/c4x/c4xio.h>
23#define MUST_WAIT_FOR_INTERRUPT 0
24
25/* XXX */
26#define Install_tm27_vector( _handler ) \
27  set_vector( (_handler), 0x20, 1 )
28
29#define Cause_tm27_intr()  \
30  do { \
31     __asm__ volatile ( "trapu 0" ); \
32  } while (0)
33
34#define Clear_tm27_intr() \
35  do { \
36     ; \
37  } while (0)
38
39#define Lower_tm27_intr() \
40  do { \
41    c4x_global_interrupts_enable(); \
42  } while (0)
43
44#endif
Note: See TracBrowser for help on using the repository browser.