source: rtems/c/src/lib/libbsp/m68k/mvme167/include/tm27.h @ 0df29b07

4.104.114.84.95
Last change on this file since 0df29b07 was 0df29b07, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/22/04 at 15:41:35

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

  • include/bsp.h: Split out tmtest27 support.
  • include/tm27.h: New.
  • Property mode set to 100644
File size: 785 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 _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 *  Define the interrupt mechanism for Time Test 27
20 *
21 *  NOTE: We use software interrupt 0
22 */
23#define MUST_WAIT_FOR_INTERRUPT 0
24
25#define Install_tm27_vector( handler ) \
26            set_vector( (handler), VBR1 * 0x10 + 0x8, 1 ); \
27            lcsr->intr_level[2] |= 3; \
28            lcsr->intr_ena |= 0x100
29
30#define Cause_tm27_intr()  lcsr->intr_soft_set |= 0x100
31
32#define Clear_tm27_intr()  lcsr->intr_clear |= 0x100
33
34#define Lower_tm27_intr()
35
36
37#endif
Note: See TracBrowser for help on using the repository browser.