RTEMS CPU Kit with SuperCore
4.11.3
Main Page
Related Pages
Modules
+
Data Structures
Data Structures
+
Data Fields
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
i
j
l
m
n
o
p
q
r
s
t
u
v
w
+
Variables
_
b
c
d
i
r
+
Typedefs
a
b
c
d
f
h
i
m
o
p
q
r
s
t
u
w
x
+
Enumerations
b
c
d
e
h
i
m
o
p
r
s
t
w
+
Enumerator
c
i
m
p
r
s
t
w
+
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
w
mnt
data0
chrisj
rtems
releases
rtems-release.git
4.11.3
ws-rtems
rtems-4.11.3
cpukit
score
cpu
avr
avr
io43u35x.h
Go to the documentation of this file.
1
/* Copyright (c) 2003,2005 Keith Gudger
2
All rights reserved.
3
4
Redistribution and use in source and binary forms, with or without
5
modification, are permitted provided that the following conditions are met:
6
7
* Redistributions of source code must retain the above copyright
8
notice, this list of conditions and the following disclaimer.
9
10
* Redistributions in binary form must reproduce the above copyright
11
notice, this list of conditions and the following disclaimer in
12
the documentation and/or other materials provided with the
13
distribution.
14
15
* Neither the name of the copyright holders nor the names of
16
contributors may be used to endorse or promote products derived
17
from this software without specific prior written permission.
18
19
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
POSSIBILITY OF SUCH DAMAGE. */
30
31
32
/* avr/io43u35x.h - definitions for AT43USB35x */
33
34
#ifndef _AVR_IO43U35X_H_
35
#define _AVR_IO43U35X_H_ 1
36
37
/* This file should only be included from <avr/io.h>, never directly. */
38
39
#ifndef _AVR_IO_H_
40
# error "Include <avr/io.h> instead of this file."
41
#endif
42
43
#ifndef _AVR_IOXXX_H_
44
# define _AVR_IOXXX_H_ "io43u35x.h"
45
#else
46
# error "Attempt to include more than one <avr/ioXXX.h> file."
47
#endif
48
54
/* ADC Data Register */
55
#ifndef __ASSEMBLER__
56
#define ADC _SFR_IO16(0x02)
57
#endif
58
#define ADCW _SFR_IO16(0x02)
59
#define ADCL _SFR_IO8(0x02)
60
#define ADCH _SFR_IO8(0x03)
61
62
/* ADC Control and status register */
63
#define ADCSR _SFR_IO8(0x07)
64
65
/* ADC Multiplexer select */
66
#define ADMUX _SFR_IO8(0x08)
67
68
/* Analog Comparator Control and Status Register */
69
#define ACSR _SFR_IO8(0x08)
70
71
/* Input Pins, Port F */
72
#define PINF _SFR_IO8(0x04)
73
74
/* Data Direction Register, Port F */
75
#define DDRF _SFR_IO8(0x05)
76
77
/* Data Register, Port F */
78
#define PORTF _SFR_IO8(0x06)
79
80
/* Input Pins, Port E */
81
#define PINE _SFR_IO8(0x01)
82
83
/* Data Direction Register, Port E */
84
#define DDRE _SFR_IO8(0x02)
85
86
/* Data Register, Port E */
87
#define PORTE _SFR_IO8(0x03)
88
89
/* SPI Control Register */
90
#define SPCR _SFR_IO8(0x0D)
91
92
/* SPI Status Register */
93
#define SPSR _SFR_IO8(0x0E)
94
95
/* SPI I/O Data Register */
96
#define SPDR _SFR_IO8(0x0F)
97
98
/* Input Pins, Port D */
99
#define PIND _SFR_IO8(0x10)
100
101
/* Data Direction Register, Port D */
102
#define DDRD _SFR_IO8(0x11)
103
104
/* Data Register, Port D */
105
#define PORTD _SFR_IO8(0x12)
106
107
/* Input Pins, Port C */
108
#define PINC _SFR_IO8(0x13)
109
110
/* Data Direction Register, Port C */
111
#define DDRC _SFR_IO8(0x14)
112
113
/* Data Register, Port C */
114
#define PORTC _SFR_IO8(0x15)
115
116
/* Input Pins, Port B */
117
#define PINB _SFR_IO8(0x16)
118
119
/* Data Direction Register, Port B */
120
#define DDRB _SFR_IO8(0x17)
121
122
/* Data Register, Port B */
123
#define PORTB _SFR_IO8(0x18)
124
125
/* Input Pins, Port A */
126
#define PINA _SFR_IO8(0x19)
127
128
/* Data Direction Register, Port A */
129
#define DDRA _SFR_IO8(0x1A)
130
131
/* Data Register, Port A */
132
#define PORTA _SFR_IO8(0x1B)
133
134
/* 0x1C..0x1F reserved */
135
136
/* Watchdog Timer Control Register */
137
#define WDTCR _SFR_IO8(0x21)
138
139
/* T/C 1 Input Capture Register */
140
#define ICR1 _SFR_IO16(0x24)
141
#define ICR1L _SFR_IO8(0x24)
142
#define ICR1H _SFR_IO8(0x25)
143
144
/* Timer/Counter1 Output Compare Register B */
145
#define OCR1B _SFR_IO16(0x28)
146
#define OCR1BL _SFR_IO8(0x28)
147
#define OCR1BH _SFR_IO8(0x29)
148
149
/* Timer/Counter1 Output Compare Register A */
150
#define OCR1A _SFR_IO16(0x2A)
151
#define OCR1AL _SFR_IO8(0x2A)
152
#define OCR1AH _SFR_IO8(0x2B)
153
154
/* Timer/Counter 1 */
155
#define TCNT1 _SFR_IO16(0x2C)
156
#define TCNT1L _SFR_IO8(0x2C)
157
#define TCNT1H _SFR_IO8(0x2D)
158
159
/* Timer/Counter 1 Control and Status Register */
160
#define TCCR1B _SFR_IO8(0x2E)
161
162
/* Timer/Counter 1 Control Register */
163
#define TCCR1A _SFR_IO8(0x2F)
164
165
/* Timer/Counter 0 */
166
#define TCNT0 _SFR_IO8(0x32)
167
168
/* Timer/Counter 0 Control Register */
169
#define TCCR0 _SFR_IO8(0x33)
170
171
/* MCU general Control Register */
172
#define MCUCR _SFR_IO8(0x35)
173
174
/* Timer/Counter Interrupt Flag Register */
175
#define TIFR _SFR_IO8(0x38)
176
177
/* Timer/Counter Interrupt MaSK register */
178
#define TIMSK _SFR_IO8(0x39)
179
180
/* General Interrupt Control Register */
181
#define GIFR _SFR_IO8(0x3A)
182
183
/* General Interrupt Mask register */
184
#define GIMSK _SFR_IO8(0x3B)
185
192
#define SIG_INTERRUPT0 _VECTOR(1)
/* suspend/resume */
193
#define SIG_INTERRUPT1 _VECTOR(2)
194
#define SIG_TIMER1_CAPT1 _VECTOR(3)
195
#define SIG_INPUT_CAPTURE1 _VECTOR(3)
196
#define SIG_OUTPUT_COMPARE1A _VECTOR(4)
197
#define SIG_OUTPUT_COMPARE1B _VECTOR(5)
198
#define SIG_OVERFLOW1 _VECTOR(6)
199
#define SIG_OVERFLOW0 _VECTOR(7)
200
#define SIG_SPI _VECTOR(8)
201
/* 9, 10: reserved */
202
#define SIG_ADC _VECTOR(11)
203
#define SIG_USB_INT _VECTOR(12)
204
205
#define _VECTORS_SIZE 52
206
208
/*
209
* The Register Bit names are represented by their bit number (0-7).
210
*/
211
212
/* Timer/Counter Interrupt MaSK register */
213
#define TICIE1 3
214
#define OCIE1A 6
215
#define OCIE1B 5
216
#define TOIE1 7
217
#define TOIE0 1
218
219
/* Timer/Counter Interrupt Flag Register */
220
#define ICF1 3
221
#define OCF1A 6
222
#define OCF1B 5
223
#define TOV1 7
224
#define TOV0 1
225
226
/* MCU general Control Register */
227
#define SE 5
228
#define SM 4
229
#define ISC11 3
230
#define ISC10 2
231
#define ISC01 1
232
#define ISC00 0
233
234
/* Timer/Counter 0 Control Register */
235
#define CS02 2
236
#define CS01 1
237
#define CS00 0
238
239
240
/* Timer/Counter 1 Control Register */
241
#define COM1A1 7
242
#define COM1A0 6
243
#define COM1B1 5
244
#define COM1B0 4
245
#define PWM11 1
246
#define PWM10 0
247
248
/* Timer/Counter 1 Control and Status Register */
249
#define ICNC1 7
250
#define ICES1 6
251
#define CTC1 3
252
#define CS12 2
253
#define CS11 1
254
#define CS10 0
255
256
/* Watchdog Timer Control Register */
257
#define WDTOE 4
258
#define WDE 3
259
#define WDP2 2
260
#define WDP1 1
261
#define WDP0 0
262
263
/* Data Register, Port A */
264
#define PA7 7
265
#define PA6 6
266
#define PA5 5
267
#define PA4 4
268
#define PA3 3
269
#define PA2 2
270
#define PA1 1
271
#define PA0 0
272
273
/* Data Direction Register, Port A */
274
#define DDA7 7
275
#define DDA6 6
276
#define DDA5 5
277
#define DDA4 4
278
#define DDA3 3
279
#define DDA2 2
280
#define DDA1 1
281
#define DDA0 0
282
283
/* Input Pins, Port A */
284
#define PINA7 7
285
#define PINA6 6
286
#define PINA5 5
287
#define PINA4 4
288
#define PINA3 3
289
#define PINA2 2
290
#define PINA1 1
291
#define PINA0 0
292
293
/* Data Register, Port B */
294
#define PB7 7
295
#define PB6 6
296
#define PB5 5
297
#define PB4 4
298
#define PB3 3
299
#define PB2 2
300
#define PB1 1
301
#define PB0 0
302
303
/* Data Direction Register, Port B */
304
#define DDB7 7
305
#define DDB6 6
306
#define DDB5 5
307
#define DDB4 4
308
#define DDB3 3
309
#define DDB2 2
310
#define DDB1 1
311
#define DDB0 0
312
313
/* Input Pins, Port B */
314
#define PINB7 7
315
#define PINB6 6
316
#define PINB5 5
317
#define PINB4 4
318
#define PINB3 3
319
#define PINB2 2
320
#define PINB1 1
321
#define PINB0 0
322
323
/* Data Direction Register, Port C */
324
#define DDC7 7
325
#define DDC6 6
326
#define DDC5 5
327
#define DDC4 4
328
#define DDC3 3
329
#define DDC2 2
330
#define DDC1 1
331
#define DDC0 0
332
333
/* Input Pins, Port C */
334
#define PINC7 7
335
#define PINC6 6
336
#define PINC5 5
337
#define PINC4 4
338
#define PINC3 3
339
#define PINC2 2
340
#define PINC1 1
341
#define PINC0 0
342
343
/* Data Register, Port C */
344
#define PC7 7
345
#define PC6 6
346
#define PC5 5
347
#define PC4 4
348
#define PC3 3
349
#define PC2 2
350
#define PC1 1
351
#define PC0 0
352
353
/* Data Register, Port D */
354
#define PD7 7
355
#define PD6 6
356
#define PD5 5
357
#define PD4 4
358
#define PD3 3
359
#define PD2 2
360
#define PD1 1
361
#define PD0 0
362
363
/* Data Direction Register, Port D */
364
#define DDD7 7
365
#define DDD6 6
366
#define DDD5 5
367
#define DDD4 4
368
#define DDD3 3
369
#define DDD2 2
370
#define DDD1 1
371
#define DDD0 0
372
373
/* Input Pins, Port D */
374
#define PIND7 7
375
#define PIND6 6
376
#define PIND5 5
377
#define PIND4 4
378
#define PIND3 3
379
#define PIND2 2
380
#define PIND1 1
381
#define PIND0 0
382
383
/* Data Register, Port F */
384
#define PF3 3
385
#define PF2 2
386
#define PF1 1
387
#define PF0 0
388
389
/* Data Direction Register, Port F */
390
#define DDF3 3
391
#define DDF2 2
392
#define DDF1 1
393
394
/* Input Pins, Port F */
395
#define PINF3 3
396
#define PINF2 2
397
#define PINF1 1
398
#define PINF0 0
399
400
/* SPI Status Register */
401
#define SPIF 7
402
#define WCOL 6
403
404
/* SPI Control Register */
405
#define SPIE 7
406
#define SPE 6
407
#define DORD 5
408
#define MSTR 4
409
#define CPOL 3
410
#define CPHA 2
411
#define SPR1 1
412
#define SPR0 0
413
414
/* ADC Multiplexer select */
415
#define MUX2 2
416
#define MUX1 1
417
#define MUX0 0
418
419
/* ADC Control and Status Register */
420
#define ADEN 7
421
#define ADSC 6
422
#define ADFR 5
423
#define ADIF 4
424
#define ADIE 3
425
#define ADPS2 2
426
#define ADPS1 1
427
#define ADPS0 0
428
434
#define RAMEND 0x045F
/*Last On-Chip SRAM Location*/
435
#define XRAMEND RAMEND
436
#define E2END 0x0000
437
#define FLASHEND 0x5FFF
438
440
#endif
/* _AVR_43USB355_H_ */
Generated by
1.8.13