source: rtems/c/src/lib/libbsp/m68k/dmv152/include/tm27.h @ e35761b

4.104.114.84.95
Last change on this file since e35761b was e35761b, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/22/04 at 15:25:55

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: 857 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
22/* use a VMEbus interrupt */
23
24#define MUST_WAIT_FOR_INTERRUPT 1
25
26#define Install_tm27_vector( handler ) \
27  { \
28    set_vector( (handler), 0x50, 1 );  \
29    (*(volatile uint32_t*)0x0d800024) = 0x50; /* set IVECT reg */ \
30    (*(volatile uint8_t*)0x0d00000c) = 0x40; /* set VIE reg */ \
31  }
32
33#define Cause_tm27_intr()  \
34  (*(volatile uint8_t*)0x0d000003) = 0x0f  /* set VINT */
35
36#define Clear_tm27_intr()  /* no operation necessary */
37
38#define Lower_tm27_intr()
39
40
41
42#endif
Note: See TracBrowser for help on using the repository browser.