Imported Upstream version 2.9.0
[debian/cc1111] / device / include / hc08 / mc68hc908jb8.h
1 /*-------------------------------------------------------------------------
2   Register Declarations for Motorola MC68HC908JB8
3
4   Copyright (c) 2004, Bjorn Bringert <bjorn@bringert.net>
5
6   Based on mc68hc908qy.h,
7    Written By - Erik Petrich
8     epetrich@users.sourceforge.net (2003)
9
10    This program is free software; you can redistribute it and/or modify it
11    under the terms of the GNU General Public License as published by the
12    Free Software Foundation; either version 2, or (at your option) any
13    later version.
14
15    This program is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18    GNU General Public License for more details.
19
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
24    In other words, you are welcome to use, share and improve this program.
25    You are forbidden to forbid anyone else to use, share and improve
26    what you give them.   Help stamp out software-hoarding!
27 -------------------------------------------------------------------------*/
28
29 #ifndef _MC68HC908JB8_H
30 #define _MC68HC908JB8_H
31
32 #ifndef _UINT8
33  #define _UINT8 unsigned char
34 #endif
35 #ifndef _UINT16
36  #define _UINT16 unsigned int
37 #endif
38 #ifndef _VOLDATA
39  #define _VOLDATA volatile __data
40 #endif
41 #ifndef _VOLXDATA
42  #define _VOLXDATA volatile __xdata
43 #endif
44
45 struct __hc08_bits
46 {
47   unsigned int bit0:1;
48   unsigned int bit1:1;
49   unsigned int bit2:1;
50   unsigned int bit3:1;
51   unsigned int bit4:1;
52   unsigned int bit5:1;
53   unsigned int bit6:1;
54   unsigned int bit7:1;
55 };
56
57
58 _VOLDATA _UINT8 __at 0x00 PTA;     /* Port A Data Register */
59   #define PTA0 ((struct __hc08_bits *)(&PTA))->bit0
60   #define PTA1 ((struct __hc08_bits *)(&PTA))->bit1
61   #define PTA2 ((struct __hc08_bits *)(&PTA))->bit2
62   #define PTA3 ((struct __hc08_bits *)(&PTA))->bit3
63   #define PTA4 ((struct __hc08_bits *)(&PTA))->bit4
64   #define PTA5 ((struct __hc08_bits *)(&PTA))->bit5
65   #define PTA6 ((struct __hc08_bits *)(&PTA))->bit6
66   #define PTA7 ((struct __hc08_bits *)(&PTA))->bit7
67
68 _VOLDATA _UINT8 __at 0x01 PTB;     /* Port B Data Register */
69   #define PTB0 ((struct __hc08_bits *)(&PTB))->bit0
70   #define PTB1 ((struct __hc08_bits *)(&PTB))->bit1
71   #define PTB2 ((struct __hc08_bits *)(&PTB))->bit2
72   #define PTB3 ((struct __hc08_bits *)(&PTB))->bit3
73   #define PTB4 ((struct __hc08_bits *)(&PTB))->bit4
74   #define PTB5 ((struct __hc08_bits *)(&PTB))->bit5
75   #define PTB6 ((struct __hc08_bits *)(&PTB))->bit6
76   #define PTB7 ((struct __hc08_bits *)(&PTB))->bit7
77
78 _VOLDATA _UINT8 __at 0x02 PTC;     /* Port C Data Register */
79   #define PTC0 ((struct __hc08_bits *)(&PTC))->bit0
80   #define PTC1 ((struct __hc08_bits *)(&PTC))->bit1
81   #define PTC2 ((struct __hc08_bits *)(&PTC))->bit2
82   #define PTC3 ((struct __hc08_bits *)(&PTC))->bit3
83   #define PTC4 ((struct __hc08_bits *)(&PTC))->bit4
84   #define PTC5 ((struct __hc08_bits *)(&PTC))->bit5
85   #define PTC6 ((struct __hc08_bits *)(&PTC))->bit6
86   #define PTC7 ((struct __hc08_bits *)(&PTC))->bit7
87
88 _VOLDATA _UINT8 __at 0x03 PTD;     /* Port D Data Register */
89   #define PTD0 ((struct __hc08_bits *)(&PTD))->bit0
90   #define PTD1 ((struct __hc08_bits *)(&PTD))->bit1
91   #define PTD2 ((struct __hc08_bits *)(&PTD))->bit2
92   #define PTD3 ((struct __hc08_bits *)(&PTD))->bit3
93   #define PTD4 ((struct __hc08_bits *)(&PTD))->bit4
94   #define PTD5 ((struct __hc08_bits *)(&PTD))->bit5
95   #define PTD6 ((struct __hc08_bits *)(&PTD))->bit6
96   #define PTD7 ((struct __hc08_bits *)(&PTD))->bit7
97
98 _VOLDATA _UINT8 __at 0x04 DDRA;    /* Data Direction Register A */
99   #define DDRA0 ((struct __hc08_bits *)(&DDRA))->bit0
100   #define DDRA1 ((struct __hc08_bits *)(&DDRA))->bit1
101   #define DDRA2 ((struct __hc08_bits *)(&DDRA))->bit2
102   #define DDRA3 ((struct __hc08_bits *)(&DDRA))->bit3
103   #define DDRA4 ((struct __hc08_bits *)(&DDRA))->bit4
104   #define DDRA5 ((struct __hc08_bits *)(&DDRA))->bit5
105   #define DDRA6 ((struct __hc08_bits *)(&DDRA))->bit6
106   #define DDRA7 ((struct __hc08_bits *)(&DDRA))->bit7
107
108 _VOLDATA _UINT8 __at 0x05 DDRB;    /* Data Direction Register B */
109   #define DDRB0 ((struct __hc08_bits *)(&DDRB))->bit0
110   #define DDRB1 ((struct __hc08_bits *)(&DDRB))->bit1
111   #define DDRB2 ((struct __hc08_bits *)(&DDRB))->bit2
112   #define DDRB3 ((struct __hc08_bits *)(&DDRB))->bit3
113   #define DDRB4 ((struct __hc08_bits *)(&DDRB))->bit4
114   #define DDRB5 ((struct __hc08_bits *)(&DDRB))->bit5
115   #define DDRB6 ((struct __hc08_bits *)(&DDRB))->bit6
116   #define DDRB7 ((struct __hc08_bits *)(&DDRB))->bit7
117
118 _VOLDATA _UINT8 __at 0x06 DDRC;    /* Data Direction Register C */
119   #define DDRC0 ((struct __hc08_bits *)(&DDRC))->bit0
120   #define DDRC1 ((struct __hc08_bits *)(&DDRC))->bit1
121   #define DDRC2 ((struct __hc08_bits *)(&DDRC))->bit2
122   #define DDRC3 ((struct __hc08_bits *)(&DDRC))->bit3
123   #define DDRC4 ((struct __hc08_bits *)(&DDRC))->bit4
124   #define DDRC5 ((struct __hc08_bits *)(&DDRC))->bit5
125   #define DDRC6 ((struct __hc08_bits *)(&DDRC))->bit6
126   #define DDRC7 ((struct __hc08_bits *)(&DDRC))->bit7
127
128 _VOLDATA _UINT8 __at 0x07 DDRD;    /* Data Direction Register D */
129   #define DDRD0 ((struct __hc08_bits *)(&DDRD))->bit0
130   #define DDRD1 ((struct __hc08_bits *)(&DDRD))->bit1
131   #define DDRD2 ((struct __hc08_bits *)(&DDRD))->bit2
132   #define DDRD3 ((struct __hc08_bits *)(&DDRD))->bit3
133   #define DDRD4 ((struct __hc08_bits *)(&DDRD))->bit4
134   #define DDRD5 ((struct __hc08_bits *)(&DDRD))->bit5
135   #define DDRD6 ((struct __hc08_bits *)(&DDRD))->bit6
136   #define DDRD7 ((struct __hc08_bits *)(&DDRD))->bit7
137
138 _VOLDATA _UINT8 __at 0x08 PTE;     /* Port E Data Register */
139   #define PTE0 ((struct __hc08_bits *)(&PTE))->bit0
140   #define PTE1 ((struct __hc08_bits *)(&PTE))->bit1
141   #define PTE2 ((struct __hc08_bits *)(&PTE))->bit2
142   #define PTE3 ((struct __hc08_bits *)(&PTE))->bit3
143   #define PTE4 ((struct __hc08_bits *)(&PTE))->bit4
144   #define PTE5 ((struct __hc08_bits *)(&PTE))->bit5
145   #define PTE6 ((struct __hc08_bits *)(&PTE))->bit6
146   #define PTE7 ((struct __hc08_bits *)(&PTE))->bit7
147
148 _VOLDATA _UINT8 __at 0x09 DDRE;    /* Data Direction Register E */
149   #define DDRE0 ((struct __hc08_bits *)(&DDRE))->bit0
150   #define DDRE1 ((struct __hc08_bits *)(&DDRE))->bit1
151   #define DDRE2 ((struct __hc08_bits *)(&DDRE))->bit2
152   #define DDRE3 ((struct __hc08_bits *)(&DDRE))->bit3
153   #define DDRE4 ((struct __hc08_bits *)(&DDRE))->bit4
154   #define DDRE5 ((struct __hc08_bits *)(&DDRE))->bit5
155   #define DDRE6 ((struct __hc08_bits *)(&DDRE))->bit6
156   #define DDRE7 ((struct __hc08_bits *)(&DDRE))->bit7
157
158 _VOLDATA _UINT8 __at 0x0a TSC;     /* TIM Status and Control */
159   #define PS0   ((struct __hc08_bits *)(&TSC))->bit0
160   #define PS1   ((struct __hc08_bits *)(&TSC))->bit1
161   #define PS2   ((struct __hc08_bits *)(&TSC))->bit2
162   #define TRST  ((struct __hc08_bits *)(&TSC))->bit4
163   #define TSTOP ((struct __hc08_bits *)(&TSC))->bit5
164   #define TOIE  ((struct __hc08_bits *)(&TSC))->bit6
165   #define TOF   ((struct __hc08_bits *)(&TSC))->bit7
166
167 _VOLDATA _UINT16 __at 0x0c TCNT;   /* TIM Counter High & Low Registers */
168 _VOLDATA _UINT8 __at 0x0c TCNTH;   /* TIM Counter Register High */
169 _VOLDATA _UINT8 __at 0x0d TCNTL;   /* TIM Counter Register Low */
170
171 _VOLDATA _UINT16 __at 0x0e TMOD;   /* TIM Counter Modulo High & Low Registers */
172 _VOLDATA _UINT8 __at 0x0e TMODH;   /* TIM Counter Modulo Register High */
173 _VOLDATA _UINT8 __at 0x0f TMODL;   /* TIM Counter Modulo Register Low */
174
175 _VOLDATA _UINT8 __at 0x10 TSC0;    /* TIM Channel 0 Status and Control Register */
176   #define CH0MAX ((struct __hc08_bits *)(&TSC0))->bit0
177   #define TOV0   ((struct __hc08_bits *)(&TSC0))->bit1
178   #define ELS0A  ((struct __hc08_bits *)(&TSC0))->bit2
179   #define ELS0B  ((struct __hc08_bits *)(&TSC0))->bit3
180   #define MS0A   ((struct __hc08_bits *)(&TSC0))->bit4
181   #define MS0B   ((struct __hc08_bits *)(&TSC0))->bit5
182   #define CH0IE  ((struct __hc08_bits *)(&TSC0))->bit6
183   #define CH0F   ((struct __hc08_bits *)(&TSC0))->bit7
184
185 _VOLDATA _UINT16 __at 0x11 TCH0;   /* TIM Channel 0 High & Low Registers */
186 _VOLDATA _UINT8 __at 0x11 TCH0H;   /* TIM Channel 0 Register High */
187 _VOLDATA _UINT8 __at 0x12 TCH0L;   /* TIM Channel 0 Register Low */
188
189 _VOLDATA _UINT8 __at 0x13 TSC1;    /* TIM Channel 1 Status and Control Register */
190   #define CH1MAX ((struct __hc08_bits *)(&TSC1))->bit0
191   #define TOV1   ((struct __hc08_bits *)(&TSC1))->bit1
192   #define ELS1A  ((struct __hc08_bits *)(&TSC1))->bit2
193   #define ELS1B  ((struct __hc08_bits *)(&TSC1))->bit3
194   #define MS1A   ((struct __hc08_bits *)(&TSC1))->bit4
195   #define CH1IE  ((struct __hc08_bits *)(&TSC1))->bit6
196   #define CH1F   ((struct __hc08_bits *)(&TSC1))->bit7
197
198 _VOLDATA _UINT16 __at 0x14 TCH1;   /* TIM Channel 1 High & Low Registers */
199 _VOLDATA _UINT8 __at 0x14 TCH1H;   /* TIM Channel 1 Register High */
200 _VOLDATA _UINT8 __at 0x15 TCH1L;   /* TIM Channel 1 Register Low */
201
202 _VOLDATA _UINT8 __at 0x16 KBSCR;   /* Keyboard Status and Control Register */
203   #define MODEK  ((struct __hc08_bits *)(&KBSCR))->bit0
204   #define IMASKK ((struct __hc08_bits *)(&KBSCR))->bit1
205   #define ACKK   ((struct __hc08_bits *)(&KBSCR))->bit2
206   #define KEYF   ((struct __hc08_bits *)(&KBSCR))->bit3
207
208 _VOLDATA _UINT8 __at 0x17 KBIER;   /* Keyboard Interrupt Enable Register */
209   #define KBIE0 ((struct __hc08_bits *)(&KBIER))->bit0
210   #define KBIE1 ((struct __hc08_bits *)(&KBIER))->bit1
211   #define KBIE2 ((struct __hc08_bits *)(&KBIER))->bit2
212   #define KBIE3 ((struct __hc08_bits *)(&KBIER))->bit3
213   #define KBIE4 ((struct __hc08_bits *)(&KBIER))->bit4
214   #define KBIE5 ((struct __hc08_bits *)(&KBIER))->bit5
215   #define KBIE6 ((struct __hc08_bits *)(&KBIER))->bit6
216   #define KBIE7 ((struct __hc08_bits *)(&KBIER))->bit7
217
218 _VOLDATA _UINT8 __at 0x18 UIR2;   /* USB Interrupt Register 2 */
219   #define RXD0FR  ((struct __hc08_bits *)(&UIR2))->bit0
220   #define TXD0FR  ((struct __hc08_bits *)(&UIR2))->bit1
221   #define RESUMFR ((struct __hc08_bits *)(&UIR2))->bit2
222   #define TXD1FR  ((struct __hc08_bits *)(&UIR2))->bit3
223   #define RXD2FR  ((struct __hc08_bits *)(&UIR2))->bit4
224   #define TXD2FR  ((struct __hc08_bits *)(&UIR2))->bit5
225   #define RSTFR   ((struct __hc08_bits *)(&UIR2))->bit6
226   #define EOPFR   ((struct __hc08_bits *)(&UIR2))->bit7
227
228 _VOLDATA _UINT8 __at 0x19 UCR2;   /* USB Control Register 2 */
229   #define TP2SIZ0 ((struct __hc08_bits *)(&UCR2))->bit0
230   #define TP2SIZ1 ((struct __hc08_bits *)(&UCR2))->bit1
231   #define TP2SIZ2 ((struct __hc08_bits *)(&UCR2))->bit2
232   #define TP2SIZ3 ((struct __hc08_bits *)(&UCR2))->bit3
233   #define RX2E    ((struct __hc08_bits *)(&UCR2))->bit4
234   #define TX2E    ((struct __hc08_bits *)(&UCR2))->bit5
235   #define STALL2  ((struct __hc08_bits *)(&UCR2))->bit6
236   #define T2SEQ   ((struct __hc08_bits *)(&UCR2))->bit7
237
238 _VOLDATA _UINT8 __at 0x1a UCR3;   /* USB Control Register 3 */
239   #define ENABLE1 ((struct __hc08_bits *)(&UCR3))->bit0
240   #define ENABLE2 ((struct __hc08_bits *)(&UCR3))->bit1
241   #define PULLEN  ((struct __hc08_bits *)(&UCR3))->bit2
242   #define ISTALL0 ((struct __hc08_bits *)(&UCR3))->bit4
243   #define OSTALL0 ((struct __hc08_bits *)(&UCR3))->bit5
244   #define TX1STR  ((struct __hc08_bits *)(&UCR3))->bit6
245   #define TX1ST   ((struct __hc08_bits *)(&UCR3))->bit7
246
247 _VOLDATA _UINT8 __at 0x1b UCR4;   /* USB Control Register 4 */
248   #define FDM   ((struct __hc08_bits *)(&UCR4))->bit0
249   #define FDP   ((struct __hc08_bits *)(&UCR4))->bit1
250   #define FUSB0 ((struct __hc08_bits *)(&UCR4))->bit2
251
252 _VOLDATA _UINT8 __at 0x1c IOCR;   /* IRQ Option Control Register */
253   #define IRQPD  ((struct __hc08_bits *)(&IOCR))->bit0
254   #define PTE4IE ((struct __hc08_bits *)(&IOCR))->bit1
255   #define PTE4IF ((struct __hc08_bits *)(&IOCR))->bit2
256
257 _VOLDATA _UINT8 __at 0x1d POCR;   /* Port Option Control Register */
258  #define PAP     ((struct __hc08_bits *)(&POCR))->bit0
259  #define PBP     ((struct __hc08_bits *)(&POCR))->bit1
260  #define PCP     ((struct __hc08_bits *)(&POCR))->bit2
261  #define PTE3P   ((struct __hc08_bits *)(&POCR))->bit3
262  #define PTE4P   ((struct __hc08_bits *)(&POCR))->bit4
263  #define PTDILDD ((struct __hc08_bits *)(&POCR))->bit5
264  #define PTDLDD  ((struct __hc08_bits *)(&POCR))->bit6
265  #define PTE20P  ((struct __hc08_bits *)(&POCR))->bit7
266
267 _VOLDATA _UINT8 __at 0x1e ISCR;   /* IRQ Status and Control Register */
268   #define MODE  ((struct __hc08_bits *)(&ISCR))->bit0
269   #define IMASK ((struct __hc08_bits *)(&ISCR))->bit1
270   #define ACK   ((struct __hc08_bits *)(&ISCR))->bit2
271   #define IRQF  ((struct __hc08_bits *)(&ISCR))->bit3
272
273 _VOLDATA _UINT8 __at 0x1f CONFIG; /* Configuration Register 1 */
274 /* CONFIG1 is one-time writeable, so can't use bitfields */
275
276 _VOLDATA _UINT8 __at 0x20 UE0D0;  /* USB Endpoint 0 Data Register 0 */
277 _VOLDATA _UINT8 __at 0x21 UE0D1;  /* USB Endpoint 0 Data Register 1 */
278 _VOLDATA _UINT8 __at 0x22 UE0D2;  /* USB Endpoint 0 Data Register 2 */
279 _VOLDATA _UINT8 __at 0x23 UE0D3;  /* USB Endpoint 0 Data Register 3 */
280 _VOLDATA _UINT8 __at 0x24 UE0D4;  /* USB Endpoint 0 Data Register 4 */
281 _VOLDATA _UINT8 __at 0x25 UE0D5;  /* USB Endpoint 0 Data Register 5 */
282 _VOLDATA _UINT8 __at 0x26 UE0D6;  /* USB Endpoint 0 Data Register 6 */
283 _VOLDATA _UINT8 __at 0x27 UE0D7;  /* USB Endpoint 0 Data Register 7 */
284
285 _VOLDATA _UINT8 __at 0x28 UE1D0;  /* USB Endpoint 1 Data Register 0 */
286 _VOLDATA _UINT8 __at 0x29 UE1D1;  /* USB Endpoint 1 Data Register 1 */
287 _VOLDATA _UINT8 __at 0x2a UE1D2;  /* USB Endpoint 1 Data Register 2 */
288 _VOLDATA _UINT8 __at 0x2b UE1D3;  /* USB Endpoint 1 Data Register 3 */
289 _VOLDATA _UINT8 __at 0x2c UE1D4;  /* USB Endpoint 1 Data Register 4 */
290 _VOLDATA _UINT8 __at 0x2d UE1D5;  /* USB Endpoint 1 Data Register 5 */
291 _VOLDATA _UINT8 __at 0x2e UE1D6;  /* USB Endpoint 1 Data Register 6 */
292 _VOLDATA _UINT8 __at 0x2f UE1D7;  /* USB Endpoint 1 Data Register 7 */
293
294 _VOLDATA _UINT8 __at 0x30 UE2D0;  /* USB Endpoint 2 Data Register 0 */
295 _VOLDATA _UINT8 __at 0x31 UE2D1;  /* USB Endpoint 2 Data Register 1 */
296 _VOLDATA _UINT8 __at 0x32 UE2D2;  /* USB Endpoint 2 Data Register 2 */
297 _VOLDATA _UINT8 __at 0x33 UE2D3;  /* USB Endpoint 2 Data Register 3 */
298 _VOLDATA _UINT8 __at 0x34 UE2D4;  /* USB Endpoint 2 Data Register 4 */
299 _VOLDATA _UINT8 __at 0x35 UE2D5;  /* USB Endpoint 2 Data Register 5 */
300 _VOLDATA _UINT8 __at 0x36 UE2D6;  /* USB Endpoint 2 Data Register 6 */
301 _VOLDATA _UINT8 __at 0x37 UE2D7;  /* USB Endpoint 2 Data Register 7 */
302
303 _VOLDATA _UINT8 __at 0x38 UADDR;  /* USB Address Register */
304  #define USBEN ((struct __hc08_bits *)(&UADDR))->bit7
305
306 _VOLDATA _UINT8 __at 0x39 UIR0;   /* USB Interrupt Register 0 */
307   #define RXD0IE  ((struct __hc08_bits *)(&UIR0))->bit0
308   #define TXD0IE  ((struct __hc08_bits *)(&UIR0))->bit1
309   #define TXD1IE  ((struct __hc08_bits *)(&UIR0))->bit3
310   #define RXD2IE  ((struct __hc08_bits *)(&UIR0))->bit4
311   #define TXD2IE  ((struct __hc08_bits *)(&UIR0))->bit5
312   #define SUSPND  ((struct __hc08_bits *)(&UIR0))->bit6
313   #define EOPIE   ((struct __hc08_bits *)(&UIR0))->bit7
314
315 _VOLDATA _UINT8 __at 0x3a UIR1;   /* USB Interrupt Register 1 */
316   #define RXD0F   ((struct __hc08_bits *)(&UIR1))->bit0
317   #define TXD0F   ((struct __hc08_bits *)(&UIR1))->bit1
318   #define RESUMF  ((struct __hc08_bits *)(&UIR1))->bit2
319   #define TXD1F   ((struct __hc08_bits *)(&UIR1))->bit3
320   #define RXD2F   ((struct __hc08_bits *)(&UIR1))->bit4
321   #define TXD2F   ((struct __hc08_bits *)(&UIR1))->bit5
322   #define RSTF    ((struct __hc08_bits *)(&UIR1))->bit6
323   #define EOPF    ((struct __hc08_bits *)(&UIR1))->bit7
324
325 _VOLDATA _UINT8 __at 0x3b UCR0;   /* USB Control Register 0 */
326   #define TP0SIZ0 ((struct __hc08_bits *)(&UCR0))->bit0
327   #define TP0SIZ1 ((struct __hc08_bits *)(&UCR0))->bit1
328   #define TP0SIZ2 ((struct __hc08_bits *)(&UCR0))->bit2
329   #define TP0SIZ3 ((struct __hc08_bits *)(&UCR0))->bit3
330   #define RX0E    ((struct __hc08_bits *)(&UCR0))->bit4
331   #define TX0E    ((struct __hc08_bits *)(&UCR0))->bit5
332   #define T0SEQ   ((struct __hc08_bits *)(&UCR0))->bit7
333
334 _VOLDATA _UINT8 __at 0x3c UCR1;   /* USB Control Register 1 */
335   #define TP1SIZ0 ((struct __hc08_bits *)(&UCR1))->bit0
336   #define TP1SIZ1 ((struct __hc08_bits *)(&UCR1))->bit1
337   #define TP1SIZ2 ((struct __hc08_bits *)(&UCR1))->bit2
338   #define TP1SIZ3 ((struct __hc08_bits *)(&UCR1))->bit3
339   #define FRESUM  ((struct __hc08_bits *)(&UCR1))->bit4
340   #define TX1E    ((struct __hc08_bits *)(&UCR1))->bit5
341   #define STALL1  ((struct __hc08_bits *)(&UCR1))->bit6
342   #define T1SEQ   ((struct __hc08_bits *)(&UCR1))->bit7
343
344 _VOLDATA _UINT8 __at 0x3d USR0;   /* USB Status Register 0 */
345   #define RP0SIZ0 ((struct __hc08_bits *)(&USR0))->bit0
346   #define RP0SIZ1 ((struct __hc08_bits *)(&USR0))->bit1
347   #define RP0SIZ2 ((struct __hc08_bits *)(&USR0))->bit2
348   #define RP0SIZ3 ((struct __hc08_bits *)(&USR0))->bit3
349   #define SETUP   ((struct __hc08_bits *)(&USR0))->bit6
350   #define R0SEQ   ((struct __hc08_bits *)(&USR0))->bit7
351
352 _VOLDATA _UINT8 __at 0x3e USR1;   /* USB Status Register 1 */
353   #define RP2SIZ0 ((struct __hc08_bits *)(&USR1))->bit0
354   #define RP2SIZ1 ((struct __hc08_bits *)(&USR1))->bit1
355   #define RP2SIZ2 ((struct __hc08_bits *)(&USR1))->bit2
356   #define RP2SIZ3 ((struct __hc08_bits *)(&USR1))->bit3
357   #define TXSTL   ((struct __hc08_bits *)(&USR1))->bit4
358   #define TXNAK   ((struct __hc08_bits *)(&USR1))->bit5
359   #define TXACK   ((struct __hc08_bits *)(&USR1))->bit6
360   #define R2SEQ   ((struct __hc08_bits *)(&USR1))->bit7
361
362 _VOLXDATA _UINT8 __at 0xfe00 BSR;     /* Break Status Register */
363   #define SBSW ((struct __hc08_bits *)(&BSR))->bit1
364
365 _VOLXDATA _UINT8 __at 0xfe01 RSR;    /* Reset Status Register */
366   #define LVI  ((struct __hc08_bits *)(&RSR))->bit1
367   #define USB  ((struct __hc08_bits *)(&RSR))->bit2
368   #define ILAD ((struct __hc08_bits *)(&RSR))->bit3
369   #define ILOP ((struct __hc08_bits *)(&RSR))->bit4
370   #define COP  ((struct __hc08_bits *)(&RSR))->bit5
371   #define PIN  ((struct __hc08_bits *)(&RSR))->bit6
372   #define POR  ((struct __hc08_bits *)(&RSR))->bit7
373
374 _VOLXDATA _UINT8 __at 0xfe03 BFCR;    /* Break Flag Control Register */
375   #define BFCE ((struct __hc08_bits *)(&BFCR))->bit7
376
377 _VOLXDATA _UINT8 __at 0xfe04 INT1;    /* Interrupt Status Register 1 */
378   #define IF1 ((struct __hc08_bits *)(&INT1))->bit2
379   #define IF2 ((struct __hc08_bits *)(&INT1))->bit3
380   #define IF3 ((struct __hc08_bits *)(&INT1))->bit4
381   #define IF4 ((struct __hc08_bits *)(&INT1))->bit5
382   #define IF5 ((struct __hc08_bits *)(&INT1))->bit6
383   #define IF6 ((struct __hc08_bits *)(&INT1))->bit7
384
385 _VOLXDATA _UINT8 __at 0xfe08 FLCR;    /* FLASH Control Register */
386   #define PGM   ((struct __hc08_bits *)(&FLCR))->bit0
387   #define ERASE ((struct __hc08_bits *)(&FLCR))->bit1
388   #define MASS  ((struct __hc08_bits *)(&FLCR))->bit2
389   #define HVEN  ((struct __hc08_bits *)(&FLCR))->bit3
390
391 _VOLXDATA _UINT8 __at 0xfe09 FLBPR;    /* FLASH Block Protect Register */
392   #define BPR0 ((struct __hc08_bits *)(&FLBPR))->bit0
393   #define BPR1 ((struct __hc08_bits *)(&FLBPR))->bit1
394   #define BPR2 ((struct __hc08_bits *)(&FLBPR))->bit2
395   #define BPR3 ((struct __hc08_bits *)(&FLBPR))->bit3
396   #define BPR4 ((struct __hc08_bits *)(&FLBPR))->bit4
397   #define BPR5 ((struct __hc08_bits *)(&FLBPR))->bit5
398   #define BPR6 ((struct __hc08_bits *)(&FLBPR))->bit6
399   #define BPR7 ((struct __hc08_bits *)(&FLBPR))->bit7
400
401 _VOLXDATA _UINT16 __at 0xfe0c BRK;    /* Break Address High & Low Registers */
402 _VOLXDATA _UINT8 __at 0xfe0c BRKH;    /* Break Address High Register */
403 _VOLXDATA _UINT8 __at 0xfe0d BRKL;    /* Break Address Low Register */
404
405 _VOLXDATA _UINT8 __at 0xfe0e BRKSCR;  /* Break Status and Control Register */
406   #define BRKA ((struct __hc08_bits *)(&BRKSCR))->bit6
407   #define BRKE ((struct __hc08_bits *)(&BRKSCR))->bit7
408
409 _VOLXDATA _UINT8 __at 0xffff COPCTL;  /* COP Control Register */
410
411 #endif
412