OpenCores
URL https://opencores.org/ocsvn/Aquarius/Aquarius/trunk

Subversion Repositories Aquarius

[/] [Aquarius/] [trunk/] [application/] [shc_monitor_release_v1/] [common.h] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 thorn_aitc
//===============================
2
// C Source Header
3
//-------------------------------
4
// for VirtexE Evaluation Board
5
// Apr.19 2003 Ver.1
6
//===============================
7
 
8
//--------------------------
9
// Peripheral I/O definition
10
//--------------------------
11
struct st_porto
12
{
13
    unsigned char RESERVED_0;
14
    union
15
    {
16
        unsigned char BYTE;
17
        struct
18
        {
19
            unsigned char    :3;
20
            unsigned char KY4:1;
21
            unsigned char KY3:1;
22
            unsigned char KY2:1;
23
            unsigned char KY1:1;
24
            unsigned char KY0:1;
25
        } BIT;
26
    } KEYYO;
27
    union
28
    {
29
        unsigned char BYTE;
30
        struct
31
        {
32
            unsigned char   :5;
33
            unsigned char E :1;
34
            unsigned char RW:1;
35
            unsigned char RS:1;
36
        } BIT;
37
    } LCDCON;
38
    unsigned char LCDOUT;
39
};
40
 
41
struct st_porti
42
{
43
    unsigned char RESERVED_0;
44
    union
45
    {
46
        unsigned char BYTE;
47
        struct
48
        {
49
            unsigned char    :3;
50
            unsigned char KX4:1;
51
            unsigned char KX3:1;
52
            unsigned char KX2:1;
53
            unsigned char KX1:1;
54
            unsigned char KX0:1;
55
        } BIT;
56
    } KEYXI;
57
    unsigned char RESERVED_2;
58
    unsigned char LCDIN;
59
};
60
 
61
struct st_uart
62
{
63
    unsigned char UARTBG0;
64
    unsigned char UARTBG1;
65
    union
66
    {
67
        unsigned char BYTE;
68
        struct
69
        {
70
          unsigned char    :6;
71
          unsigned char TXF:1;
72
          unsigned char RXE:1;
73
        } BIT;
74
    } UARTCON;
75
    union
76
    {
77
        unsigned char TX;
78
        unsigned char RX;
79
    } BYTE;
80
};
81
 
82
struct st_sys
83
{
84
    unsigned long INTCTL;
85
    unsigned long BRKADR;
86
};
87
 
88
struct st_reg
89
{
90
    unsigned long SR;
91
    unsigned long PC;
92
    unsigned long SP;
93
    unsigned long PR;
94
    unsigned long R0;
95
    unsigned long R1;
96
    unsigned long R2;
97
    unsigned long R3;
98
    unsigned long R4;
99
    unsigned long R5;
100
    unsigned long R6;
101
    unsigned long R7;
102
    unsigned long R8;
103
    unsigned long R9;
104
    unsigned long R10;
105
    unsigned long R11;
106
    unsigned long R12;
107
    unsigned long R13;
108
    unsigned long R14;
109
    unsigned long R15;
110
    unsigned long MACH;
111
    unsigned long MACL;
112
    unsigned long GBR;
113
    unsigned long VBR;
114
};
115
 
116
#define PORTO (*(volatile struct st_porto  *)0xabcd0000)
117
#define PORTI (*(volatile struct st_porti  *)0xabcd0000)
118
#define UART  (*(volatile struct st_uart   *)0xabcd0100)
119
#define SYS   (*(volatile struct st_sys    *)0xabcd0200)
120
#define REG   (*(volatile struct st_reg    *)0x00000300)
121
 
122
//-----------
123
// LCD Access
124
//-----------
125
#define INST 0
126
#define DATA 1
127
 
128
//---------
129
// Key Code
130
//---------
131
#define KEY0 0
132
#define KEY1 1
133
#define KEY2 2
134
#define KEY3 3
135
#define KEY4 4
136
#define KEY5 5
137
#define KEY6 6
138
#define KEY7 7
139
#define KEY8 8
140
#define KEY9 9
141
#define KEYA 10
142
#define KEYB 11
143
#define KEYC 12
144
#define KEYD 13
145
#define KEYE 14
146
#define KEYF 15
147
#define KEYUTL 16
148
#define KEYRUN 17
149
#define KEYGET 18
150
#define KEYPUT 19
151
#define KEYADR 20
152
#define KEYINC 21
153
#define KEYDEC 22
154
#define KEYDAT 23
155
#define KEYNONE 255
156
 
157
 
158
 
159
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.