source: rtems/c/src/lib/include/motorola/mc68230.h @ 1587af6

4.104.114.84.95
Last change on this file since 1587af6 was 98e4ebf, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 8, 1997 at 3:45:54 PM

Fixed typo in the pointer to the license terms.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*
2 * mc68230.h -- Low level support code for the Motorola 68230 Parallel
3 *              Interface/Timer (PIT)
4 *
5 * Modified by Doug McBride, Colorado Space Grant College
6 *
7 * Format taken partly from RTEMS code and mostly from Motorola IDP user's
8 * manual.  RTEMS copyright information below.
9 *
10 *  COPYRIGHT (c) 1989-1997.
11 *  On-Line Applications Research Corporation (OAR).
12 *  Copyright assigned to U.S. Government, 1994.
13 *
14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
16 *  http://www.OARcorp.com/rtems/license.html.
17 *
18 *  $Id$
19 */
20
21#ifndef __MC68230_H__
22#define __MC68230_H__
23
24/* Some Motorola IDP User manual defines: */
25#define PIT_ADDR        0x00c01003              /* base address of the PIT */
26#define REGOFF  0x04                            /* Difference between addresses */
27#define VECT    64
28#define H1VECT  0x00
29#define H2VECT  0x01
30#define H3VECT  0x02
31#define H4VECT  0x03
32
33/*
34 * mc68230 register offsets
35 */
36#define PGCR    0x00
37#define PSRR    1*REGOFF
38#define PADDR   2*REGOFF
39#define PBDDR   3*REGOFF
40#define PCDDR   4*REGOFF
41#define PIVR    5*REGOFF
42#define PACR    6*REGOFF
43#define PBCR    7*REGOFF
44#define PADR    8*REGOFF
45#define PBDR    9*REGOFF
46#define PAAR    10*REGOFF
47#define PBAR    11*REGOFF
48#define PCDR    12*REGOFF
49#define PITSR   13*REGOFF
50#define TCR             16*REGOFF
51#define TIVR    17*REGOFF
52#define CPRH    19*REGOFF
53#define CPRM    20*REGOFF
54#define CPRL    21*REGOFF
55#define CNTRH   23*REGOFF
56#define CNTRM   24*REGOFF
57#define CNTRL   25*REGOFF
58#define TSR             26*REGOFF
59
60/* Some RTEMS style defines: */
61#ifndef VOL8
62#define VOL8( ptr )   ((volatile rtems_unsigned8 *)(ptr))
63#endif
64
65#define MC68230_WRITE( reg, data ) \
66   *(VOL8(PIT_ADDR+reg)) = (data)
67
68#define MC68230_READ( reg, data ) \
69   (data) = *(VOL8(PIT_ADDR+reg))
70
71#endif
Note: See TracBrowser for help on using the repository browser.