source: rtems/c/src/lib/libbsp/m68k/idp/include/motorola/mc68230.h @ 0c0c18a

Last change on this file since 0c0c18a was 0c0c18a, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 23, 2015 at 4:11:07 PM

m68k/idp: Minor Doxygen Cleanup

  • Property mode set to 100644
File size: 2.3 KB
Line 
1/**
2 *  @file rtems/motorola/mc68230.h
3 *
4 *  @ingroup idp_m68230
5 *
6 *  @brief Low level support code for the Motorola 68230 Parallel
7 *  Interface/Timer (PIT)
8 */
9
10/*
11 *  Modified by Doug McBride, Colorado Space Grant College
12 *
13 *  Format taken partly from RTEMS code and mostly from Motorola IDP user's
14 *  manual.  RTEMS copyright information below.
15 *
16 *  COPYRIGHT (c) 1989-2011.
17 *  On-Line Applications Research Corporation (OAR).
18 *
19 *  The license and distribution terms for this file may be
20 *  found in the file LICENSE in this distribution or at
21 *  http://www.rtems.org/license/LICENSE.
22 */
23
24/**
25 *  @defgroup idp_mc68230 Motorola MC68230
26 *   
27 *  @ingroup m68k_idp
28 * 
29 *  @brief Support code for Motorola MC68230 PIT
30 */
31#ifndef _RTEMS_MOTOROLA_MC68230_H
32#define _RTEMS_MOTOROLA_MC68230_H
33
34/* Some Motorola IDP User manual defines: */
35#define MC68230_PIT_ADDR        0x00c01003              /* base address of the PIT */
36#define MC68230_REGOFF  0x04                            /* Difference between addresses */
37#define MC68230_VECT    64
38#define MC68230_H1VECT  0x00
39#define MC68230_H2VECT  0x01
40#define MC68230_H3VECT  0x02
41#define MC68230_H4VECT  0x03
42
43/*
44 * mc68230 register offsets
45 */
46#define MC68230_PGCR    0x00
47#define MC68230_PSRR    1*MC68230_REGOFF
48#define MC68230_PADDR   2*MC68230_REGOFF
49#define MC68230_PBDDR   3*MC68230_REGOFF
50#define MC68230_PCDDR   4*MC68230_REGOFF
51#define MC68230_PIVR    5*MC68230_REGOFF
52#define MC68230_PACR    6*MC68230_REGOFF
53#define MC68230_PBCR    7*MC68230_REGOFF
54#define MC68230_PADR    8*MC68230_REGOFF
55#define MC68230_PBDR    9*MC68230_REGOFF
56#define MC68230_PAAR    10*MC68230_REGOFF
57#define MC68230_PBAR    11*MC68230_REGOFF
58#define MC68230_PCDR    12*MC68230_REGOFF
59#define MC68230_PITSR   13*MC68230_REGOFF
60#define MC68230_TCR     16*MC68230_REGOFF
61#define MC68230_TIVR    17*MC68230_REGOFF
62#define MC68230_CPRH    19*MC68230_REGOFF
63#define MC68230_CPRM    20*MC68230_REGOFF
64#define MC68230_CPRL    21*MC68230_REGOFF
65#define MC68230_CNTRH   23*MC68230_REGOFF
66#define MC68230_CNTRM   24*MC68230_REGOFF
67#define MC68230_CNTRL   25*MC68230_REGOFF
68#define MC68230_TSR     26*MC68230_REGOFF
69
70/* Some RTEMS style defines: */
71#ifndef MC68230_VOL8
72#define MC68230_VOL8( ptr )   ((volatile uint8_t   *)(ptr))
73#endif
74
75#define MC68230_WRITE( reg, data ) \
76   *(MC68230_VOL8(MC68230_PIT_ADDR+reg)) = (data)
77
78#define MC68230_READ( reg, data ) \
79   (data) = *(MC68230_VOL8(MC68230_PIT_ADDR+reg))
80
81#endif
Note: See TracBrowser for help on using the repository browser.