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
iotn13a.h
Go to the documentation of this file.
1
/* Copyright (c) 2008 Atmel Corporation
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/iotn13a.h - definitions for ATtiny13 */
33
34
/* This file should only be included from <avr/io.h>, never directly. */
35
36
#ifndef _AVR_IO_H_
37
# error "Include <avr/io.h> instead of this file."
38
#endif
39
40
#ifndef _AVR_IOXXX_H_
41
# define _AVR_IOXXX_H_ "iotn13a.h"
42
#else
43
# error "Attempt to include more than one <avr/ioXXX.h> file."
44
#endif
45
46
47
#ifndef _AVR_ATTINY13A_H_
48
#define _AVR_ATTINY13A_H_ 1
49
55
#define ADCSRB _SFR_IO8(0x03)
56
#define ADTS0 0
57
#define ADTS1 1
58
#define ADTS2 2
59
#define ACME 6
60
61
#ifndef __ASSEMBLER__
62
#define ADC _SFR_IO16(0x04)
63
#endif
64
#define ADCW _SFR_IO16(0x04)
65
66
#define ADCL _SFR_IO8(0x04)
67
#define ADCL0 0
68
#define ADCL1 1
69
#define ADCL2 2
70
#define ADCL3 3
71
#define ADCL4 4
72
#define ADCL5 5
73
#define ADCL6 6
74
#define ADCL7 7
75
76
#define ADCH _SFR_IO8(0x05)
77
#define ADCH0 0
78
#define ADCH1 1
79
#define ADCH2 2
80
#define ADCH3 3
81
#define ADCH4 4
82
#define ADCH5 5
83
#define ADCH6 6
84
#define ADCH7 7
85
86
#define ADCSRA _SFR_IO8(0x06)
87
#define ADPS0 0
88
#define ADPS1 1
89
#define ADPS2 2
90
#define ADIE 3
91
#define ADIF 4
92
#define ADATE 5
93
#define ADSC 6
94
#define ADEN 7
95
96
#define ADMUX _SFR_IO8(0x07)
97
#define MUX0 0
98
#define MUX1 1
99
#define ADLAR 5
100
#define REFS0 6
101
102
#define ACSR _SFR_IO8(0x08)
103
#define ACIS0 0
104
#define ACIS1 1
105
#define ACIE 3
106
#define ACI 4
107
#define ACO 5
108
#define ACBG 6
109
#define ACD 7
110
111
#define DIDR0 _SFR_IO8(0x14)
112
#define AIN0D 0
113
#define AIN1D 1
114
#define ADC1D 2
115
#define ADC3D 3
116
#define ADC2D 4
117
#define ADC0D 5
118
119
#define PCMSK _SFR_IO8(0x15)
120
#define PCINT0 0
121
#define PCINT1 1
122
#define PCINT2 2
123
#define PCINT3 3
124
#define PCINT4 4
125
#define PCINT5 5
126
127
#define PINB _SFR_IO8(0x16)
128
#define PINB0 0
129
#define PINB1 1
130
#define PINB2 2
131
#define PINB3 3
132
#define PINB4 4
133
#define PINB5 5
134
135
#define DDRB _SFR_IO8(0x17)
136
#define DDB0 0
137
#define DDB1 1
138
#define DDB2 2
139
#define DDB3 3
140
#define DDB4 4
141
#define DDB5 5
142
143
#define PORTB _SFR_IO8(0x18)
144
#define PORTB0 0
145
#define PORTB1 1
146
#define PORTB2 2
147
#define PORTB3 3
148
#define PORTB4 4
149
#define PORTB5 5
150
151
#define EECR _SFR_IO8(0x1C)
152
#define EERE 0
153
#define EEWE 1
154
#define EEMWE 2
155
#define EERIE 3
156
#define EEPM0 4
157
#define EEPM1 5
158
159
#define EEDR _SFR_IO8(0x1D)
160
#define EEDR0 0
161
#define EEDR1 1
162
#define EEDR2 2
163
#define EEDR3 3
164
#define EEDR4 4
165
#define EEDR5 5
166
#define EEDR6 6
167
#define EEDR7 7
168
169
#define EEARL _SFR_IO8(0x1E)
170
171
#define EEAR _SFR_IO8(0x1E)
172
#define EEAR0 0
173
#define EEAR1 1
174
#define EEAR2 2
175
#define EEAR3 3
176
#define EEAR4 4
177
#define EEAR5 5
178
179
#define WDTCR _SFR_IO8(0x21)
180
#define WDP0 0
181
#define WDP1 1
182
#define WDP2 2
183
#define WDE 3
184
#define WDCE 4
185
#define WDP3 5
186
#define WDTIE 6
187
#define WDTIF 7
188
189
#define PRR _SFR_IO8(0x25)
190
#define PRADC 0
191
#define PRTIM0 1
192
193
#define CLKPR _SFR_IO8(0x26)
194
#define CLKPS0 0
195
#define CLKPS1 1
196
#define CLKPS2 2
197
#define CLKPS3 3
198
#define CLKPCE 7
199
200
#define GTCCR _SFR_IO8(0x28)
201
#define PSR10 0
202
#define TSM 7
203
204
#define OCR0B _SFR_IO8(0x29)
205
#define OCR0B_0 0
206
#define OCR0B_1 1
207
#define OCR0B_2 2
208
#define OCR0B_3 3
209
#define OCR0B_4 4
210
#define OCR0B_5 5
211
#define OCR0B_6 6
212
#define OCR0B_7 7
213
214
#define DWDR _SFR_IO8(0x2E)
215
#define DWDR0 0
216
#define DWDR1 1
217
#define DWDR2 2
218
#define DWDR3 3
219
#define DWDR4 4
220
#define DWDR5 5
221
#define DWDR6 6
222
#define DWDR7 7
223
224
#define TCCR0A _SFR_IO8(0x2F)
225
#define WGM00 0
226
#define WGM01 1
227
#define COM0B0 4
228
#define COM0B1 5
229
#define COM0A0 6
230
#define COM0A1 7
231
232
#define BODCR _SFR_IO8(0x30)
233
#define BPDSE 0
234
#define BPDS 1
235
236
#define OSCCAL _SFR_IO8(0x31)
237
#define CAL0 0
238
#define CAL1 1
239
#define CAL2 2
240
#define CAL3 3
241
#define CAL4 4
242
#define CAL5 5
243
#define CAL6 6
244
245
#define TCNT0 _SFR_IO8(0x32)
246
#define TCNT0_0 0
247
#define TCNT0_1 1
248
#define TCNT0_2 2
249
#define TCNT0_3 3
250
#define TCNT0_4 4
251
#define TCNT0_5 5
252
#define TCNT0_6 6
253
#define TCNT0_7 7
254
255
#define TCCR0B _SFR_IO8(0x33)
256
#define CS00 0
257
#define CS01 1
258
#define CS02 2
259
#define WGM02 3
260
#define FOC0B 6
261
#define FOC0A 7
262
263
#define MCUSR _SFR_IO8(0x34)
264
#define PORF 0
265
#define EXTRF 1
266
#define BORF 2
267
#define WDRF 3
268
269
#define MCUCR _SFR_IO8(0x35)
270
#define ISC00 0
271
#define ISC01 1
272
#define SM0 3
273
#define SM1 4
274
#define SE 5
275
#define PUD 6
276
277
#define OCR0A _SFR_IO8(0x36)
278
#define OCR0A_0 0
279
#define OCR0A_1 1
280
#define OCR0A_2 2
281
#define OCR0A_3 3
282
#define OCR0A_4 4
283
#define OCR0A_5 5
284
#define OCR0A_6 6
285
#define OCR0A_7 7
286
287
#define SPMCSR _SFR_IO8(0x37)
288
#define SPMEN 0
289
#define PGERS 1
290
#define PGWRT 2
291
#define RFLB 3
292
#define CTPB 4
293
294
#define TIFR0 _SFR_IO8(0x38)
295
#define TOV0 1
296
#define OCF0A 2
297
#define OCF0B 3
298
299
#define TIMSK0 _SFR_IO8(0x39)
300
#define TOIE0 1
301
#define OCIE0A 2
302
#define OCIE0B 3
303
304
#define GIFR _SFR_IO8(0x3A)
305
#define PCIF 5
306
#define INTF0 6
307
308
#define GIMSK _SFR_IO8(0x3B)
309
#define PCIE 5
310
#define INT0 6
311
318
/* Vector 0 is the reset vector */
319
#define INT0_vect_num 1
320
#define INT0_vect _VECTOR(1)
/* External Interrupt 0 */
321
#define PCINT0_vect_num 2
322
#define PCINT0_vect _VECTOR(2)
/* External Interrupt Request 0 */
323
#define TIM0_OVF_vect_num 3
324
#define TIM0_OVF_vect _VECTOR(3)
/* Timer/Counter0 Overflow */
325
#define EE_RDY_vect_num 4
326
#define EE_RDY_vect _VECTOR(4)
/* EEPROM Ready */
327
#define ANA_COMP_vect_num 5
328
#define ANA_COMP_vect _VECTOR(5)
/* Analog Comparator */
329
#define TIM0_COMPA_vect_num 6
330
#define TIM0_COMPA_vect _VECTOR(6)
/* Timer/Counter Compare Match A */
331
#define TIM0_COMPB_vect_num 7
332
#define TIM0_COMPB_vect _VECTOR(7)
/* Timer/Counter Compare Match B */
333
#define WDT_vect_num 8
334
#define WDT_vect _VECTOR(8)
/* Watchdog Time-out */
335
#define ADC_vect_num 9
336
#define ADC_vect _VECTOR(9)
/* ADC Conversion Complete */
337
338
#define _VECTOR_SIZE 2
/* Size of individual vector. */
339
#define _VECTORS_SIZE (10 * _VECTOR_SIZE)
340
347
#define SPM_PAGESIZE (32)
348
#define RAMSTART (0x60)
349
#define RAMSIZE (64)
350
#define RAMEND (RAMSTART + RAMSIZE - 1)
351
#define XRAMSTART (NA)
352
#define XRAMSIZE (0)
353
#define XRAMEND RAMEND
354
#define E2END (64 - 1)
355
#define E2PAGESIZE (4)
356
#define FLASHEND (1024 - 1)
357
364
#define FUSE_MEMORY_SIZE 2
365
366
/* Low Fuse Byte */
367
#define FUSE_CKSEL0 (unsigned char)~_BV(0)
/* Select Clock Source */
368
#define FUSE_CKSEL1 (unsigned char)~_BV(1)
/* Select Clock Source */
369
#define FUSE_SUT0 (unsigned char)~_BV(2)
/* Select start-up time */
370
#define FUSE_SUT1 (unsigned char)~_BV(3)
/* Select start-up time */
371
/* Start up with system clock divided by 8 */
372
#define FUSE_CKDIV8 (unsigned char)~_BV(4)
373
#define FUSE_WDTON (unsigned char)~_BV(5)
/* Watch dog timer always on */
374
/* Keep EEprom contents during chip erase */
375
#define FUSE_EESAVE (unsigned char)~_BV(6)
376
#define FUSE_SPIEN (unsigned char)~_BV(7)
/* SPI programming enable */
377
#define LFUSE_DEFAULT (FUSE_SPIEN & FUSE_CKDIV8 & FUSE_SUT0 & FUSE_CKSEL0)
378
379
/* High Fuse Byte */
380
#define FUSE_RSTDISBL (unsigned char)~_BV(0)
/* Disable external reset */
381
/* Enable BOD and select level */
382
#define FUSE_BODLEVEL0 (unsigned char)~_BV(1)
383
/* Enable BOD and select level */
384
#define FUSE_BODLEVEL1 (unsigned char)~_BV(2)
385
#define FUSE_DWEN (unsigned char)~_BV(3)
/* DebugWire Enable */
386
#define FUSE_SELFPRGEN (unsigned char)~_BV(4)
/* Self Programming Enable */
387
#define HFUSE_DEFAULT (0xFF)
388
395
#define __LOCK_BITS_EXIST
396
403
#define SIGNATURE_0 0x1E
404
#define SIGNATURE_1 0x90
405
#define SIGNATURE_2 0x07
406
408
#endif
/* _AVR_ATTINY13A_H_ */
409
Generated by
1.8.13