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
iotn87.h
Go to the documentation of this file.
1
9
/*
10
* Copyright (c) 2009 Atmel Corporation
11
* All rights reserved.
12
*
13
* Redistribution and use in source and binary forms, with or without
14
* modification, are permitted provided that the following conditions are met:
15
*
16
* * Redistributions of source code must retain the above copyright
17
* notice, this list of conditions and the following disclaimer.
18
*
19
* * Redistributions in binary form must reproduce the above copyright
20
* notice, this list of conditions and the following disclaimer in
21
* the documentation and/or other materials provided with the
22
* distribution.
23
*
24
* * Neither the name of the copyright holders nor the names of
25
* contributors may be used to endorse or promote products derived
26
* from this software without specific prior written permission.
27
*
28
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
32
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
33
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
34
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
35
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
36
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
37
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
38
* POSSIBILITY OF SUCH DAMAGE.
39
*/
40
41
#ifndef _AVR_IO_H_
42
# error "Include <avr/io.h> instead of this file."
43
#endif
44
45
#ifndef _AVR_IOXXX_H_
46
# define _AVR_IOXXX_H_ "iotn87.h"
47
#else
48
# error "Attempt to include more than one <avr/ioXXX.h> file."
49
#endif
50
51
52
#ifndef _AVR_ATtiny87_H_
53
#define _AVR_ATtiny87_H_ 1
54
62
/* Registers and associated bit numbers. */
63
64
#define PINA _SFR_IO8(0x00)
65
#define PINA0 0
66
#define PINA1 1
67
#define PINA2 2
68
#define PINA3 3
69
#define PINA4 4
70
#define PINA5 5
71
#define PINA6 6
72
#define PINA7 7
73
74
#define DDRA _SFR_IO8(0x01)
75
#define DDA0 0
76
#define DDA1 1
77
#define DDA2 2
78
#define DDA3 3
79
#define DDA4 4
80
#define DDA5 5
81
#define DDA6 6
82
#define DDA7 7
83
84
#define PORTA _SFR_IO8(0x02)
85
#define PORTA0 0
86
#define PORTA1 1
87
#define PORTA2 2
88
#define PORTA3 3
89
#define PORTA4 4
90
#define PORTA5 5
91
#define PORTA6 6
92
#define PORTA7 7
93
94
#define PINB _SFR_IO8(0x03)
95
#define PINB0 0
96
#define PINB1 1
97
#define PINB2 2
98
#define PINB3 3
99
#define PINB4 4
100
#define PINB5 5
101
#define PINB6 6
102
#define PINB7 7
103
104
#define DDRB _SFR_IO8(0x04)
105
#define DDB0 0
106
#define DDB1 1
107
#define DDB2 2
108
#define DDB3 3
109
#define DDB4 4
110
#define DDB5 5
111
#define DDB6 6
112
#define DDB7 7
113
114
#define PORTB _SFR_IO8(0x05)
115
#define PORTB0 0
116
#define PORTB1 1
117
#define PORTB2 2
118
#define PORTB3 3
119
#define PORTB4 4
120
#define PORTB5 5
121
#define PORTB6 6
122
#define PORTB7 7
123
124
#define PORTCR _SFR_IO8(0x12)
125
#define PUDA 0
126
#define PUDB 2
127
#define BBMA 4
128
#define BBMB 5
129
130
#define TIFR0 _SFR_IO8(0x15)
131
#define TOV0 0
132
#define OCF0A 1
133
134
#define TIFR1 _SFR_IO8(0x16)
135
#define TOV1 0
136
#define OCF1A 1
137
#define OCF1B 2
138
#define ICF1 5
139
140
#define PCIFR _SFR_IO8(0x1B)
141
#define PCIF0 0
142
#define PCIF1 1
143
144
#define EIFR _SFR_IO8(0x1C)
145
#define INTF0 0
146
#define INTF1 1
147
148
#define EIMSK _SFR_IO8(0x1D)
149
#define INT0 0
150
#define INT1 1
151
152
#define GPIOR0 _SFR_IO8(0x1E)
153
#define GPIOR00 0
154
#define GPIOR01 1
155
#define GPIOR02 2
156
#define GPIOR03 3
157
#define GPIOR04 4
158
#define GPIOR05 5
159
#define GPIOR06 6
160
#define GPIOR07 7
161
162
#define EECR _SFR_IO8(0x1F)
163
#define EERE 0
164
#define EEPE 1
165
#define EEMPE 2
166
#define EERIE 3
167
#define EEPM0 4
168
#define EEPM1 5
169
170
#define EEDR _SFR_IO8(0x20)
171
#define EEDR0 0
172
#define EEDR1 1
173
#define EEDR2 2
174
#define EEDR3 3
175
#define EEDR4 4
176
#define EEDR5 5
177
#define EEDR6 6
178
#define EEDR7 7
179
180
#define EEAR _SFR_IO16(0x21)
181
182
#define EEARL _SFR_IO8(0x21)
183
#define EEAR0 0
184
#define EEAR1 1
185
#define EEAR2 2
186
#define EEAR3 3
187
#define EEAR4 4
188
#define EEAR5 5
189
#define EEAR6 6
190
#define EEAR7 7
191
192
#define EEARH _SFR_IO8(0x22)
193
#define EEAR8 0
194
195
#define GTCCR _SFR_IO8(0x23)
196
#define PSR1 0
197
#define PSR0 1
198
#define TSM 7
199
200
#define TCCR0A _SFR_IO8(0x25)
201
#define WGM00 0
202
#define WGM01 1
203
#define COM0A0 6
204
#define COM0A1 7
205
206
#define TCCR0B _SFR_IO8(0x26)
207
#define CS00 0
208
#define CS01 1
209
#define CS02 2
210
#define FOC0A 7
211
212
#define TCNT0 _SFR_IO8(0x27)
213
#define TCNT00 0
214
#define TCNT01 1
215
#define TCNT02 2
216
#define TCNT03 3
217
#define TCNT04 4
218
#define TCNT05 5
219
#define TCNT06 6
220
#define TCNT07 7
221
222
#define OCR0A _SFR_IO8(0x28)
223
#define OCR00 0
224
#define OCR01 1
225
#define OCR02 2
226
#define OCR03 3
227
#define OCR04 4
228
#define OCR05 5
229
#define OCR06 6
230
#define OCR07 7
231
232
#define GPIOR1 _SFR_IO8(0x2A)
233
#define GPIOR10 0
234
#define GPIOR11 1
235
#define GPIOR12 2
236
#define GPIOR13 3
237
#define GPIOR14 4
238
#define GPIOR15 5
239
#define GPIOR16 6
240
#define GPIOR17 7
241
242
#define GPIOR2 _SFR_IO8(0x2B)
243
#define GPIOR20 0
244
#define GPIOR21 1
245
#define GPIOR22 2
246
#define GPIOR23 3
247
#define GPIOR24 4
248
#define GPIOR25 5
249
#define GPIOR26 6
250
#define GPIOR27 7
251
252
#define SPCR _SFR_IO8(0x2C)
253
#define SPR0 0
254
#define SPR1 1
255
#define CPHA 2
256
#define CPOL 3
257
#define MSTR 4
258
#define DORD 5
259
#define SPE 6
260
#define SPIE 7
261
262
#define SPSR _SFR_IO8(0x2D)
263
#define SPI2X 0
264
#define WCOL 6
265
#define SPIF 7
266
267
#define SPDR _SFR_IO8(0x2E)
268
#define SPDR0 0
269
#define SPDR1 1
270
#define SPDR2 2
271
#define SPDR3 3
272
#define SPDR4 4
273
#define SPDR5 5
274
#define SPDR6 6
275
#define SPDR7 7
276
277
#define ACSR _SFR_IO8(0x30)
278
#define ACIS0 0
279
#define ACIS1 1
280
#define ACIC 2
281
#define ACIE 3
282
#define ACI 4
283
#define ACO 5
284
#define ACIRS 6
285
#define ACD 7
286
287
#define DWDR _SFR_IO8(0x31)
288
#define DWDR0 0
289
#define DWDR1 1
290
#define DWDR2 2
291
#define DWDR3 3
292
#define DWDR4 4
293
#define DWDR5 5
294
#define DWDR6 6
295
#define DWDR7 7
296
297
#define SMCR _SFR_IO8(0x33)
298
#define SE 0
299
#define SM0 1
300
#define SM1 2
301
302
#define MCUSR _SFR_IO8(0x34)
303
#define PORF 0
304
#define EXTRF 1
305
#define BORF 2
306
#define WDRF 3
307
308
#define MCUCR _SFR_IO8(0x35)
309
#define PUD 4
310
#define BODS 5
311
#define BODSE 6
312
313
#define SPMCSR _SFR_IO8(0x37)
314
#define SPMEN 0
315
#define PGERS 1
316
#define PGWRT 2
317
#define RFLB 3
318
#define CTPB 4
319
#define SIGRD 5
320
#define RWWSB 6
321
322
#define WDTCR _SFR_MEM8(0x60)
323
#define WDP0 0
324
#define WDP1 1
325
#define WDP2 2
326
#define WDE 3
327
#define WDCE 4
328
#define WDP3 5
329
#define WDIE 6
330
#define WDIF 7
331
332
#define CLKPR _SFR_MEM8(0x61)
333
#define CLKPS0 0
334
#define CLKPS1 1
335
#define CLKPS2 2
336
#define CLKPS3 3
337
#define CLKPCE 7
338
339
#define CLKCSR _SFR_MEM8(0x62)
340
#define CLKC0 0
341
#define CLKC1 1
342
#define CLKC2 2
343
#define CLKC3 3
344
#define CLKRDY 4
345
#define CLKCCE 7
346
347
#define CLKSELR _SFR_MEM8(0x63)
348
#define CSEL0 0
349
#define CSEL1 1
350
#define CSEL2 2
351
#define CSEL3 3
352
#define CSUT0 4
353
#define CSUT1 5
354
#define COUT 6
355
356
#define PRR _SFR_MEM8(0x64)
357
#define PRADC 0
358
#define PRUSI 1
359
#define PRTIM0 2
360
#define PRTIM1 3
361
#define PRSPI 4
362
#define PRLIN 5
363
364
#define OSCCAL _SFR_MEM8(0x66)
365
#define CAL0 0
366
#define CAL1 1
367
#define CAL2 2
368
#define CAL3 3
369
#define CAL4 4
370
#define CAL5 5
371
#define CAL6 6
372
#define CAL7 7
373
374
#define PCICR _SFR_MEM8(0x68)
375
#define PCIE0 0
376
#define PCIE1 1
377
378
#define EICRA _SFR_MEM8(0x69)
379
#define ISC00 0
380
#define ISC01 1
381
#define ISC10 2
382
#define ISC11 3
383
384
#define PCMSK0 _SFR_MEM8(0x6B)
385
#define PCINT0 0
386
#define PCINT1 1
387
#define PCINT2 2
388
#define PCINT3 3
389
#define PCINT4 4
390
#define PCINT5 5
391
#define PCINT6 6
392
#define PCINT7 7
393
394
#define PCMSK1 _SFR_MEM8(0x6C)
395
#define PCINT8 0
396
#define PCINT9 1
397
#define PCINT10 2
398
#define PCINT11 3
399
#define PCINT12 4
400
#define PCINT13 5
401
#define PCINT14 6
402
#define PCINT15 7
403
404
#define TIMSK0 _SFR_MEM8(0x6E)
405
#define TOIE0 0
406
#define OCIE0A 1
407
408
#define TIMSK1 _SFR_MEM8(0x6F)
409
#define TOIE1 0
410
#define OCIE1A 1
411
#define OCIE1B 2
412
#define ICIE1 5
413
414
#define AMISCR _SFR_MEM8(0x77)
415
#define ISRCEN 0
416
#define XREFEN 1
417
#define AREFEN 2
418
419
#ifndef __ASSEMBLER__
420
#define ADC _SFR_MEM16(0x78)
421
#endif
422
#define ADCW _SFR_MEM16(0x78)
423
424
#define ADCL _SFR_MEM8(0x78)
425
#define ADCL0 0
426
#define ADCL1 1
427
#define ADCL2 2
428
#define ADCL3 3
429
#define ADCL4 4
430
#define ADCL5 5
431
#define ADCL6 6
432
#define ADCL7 7
433
434
#define ADCH _SFR_MEM8(0x79)
435
#define ADCH0 0
436
#define ADCH1 1
437
#define ADCH2 2
438
#define ADCH3 3
439
#define ADCH4 4
440
#define ADCH5 5
441
#define ADCH6 6
442
#define ADCH7 7
443
444
#define ADCSRA _SFR_MEM8(0x7A)
445
#define ADPS0 0
446
#define ADPS1 1
447
#define ADPS2 2
448
#define ADIE 3
449
#define ADIF 4
450
#define ADATE 5
451
#define ADSC 6
452
#define ADEN 7
453
454
#define ADCSRB _SFR_MEM8(0x7B)
455
#define ADTS0 0
456
#define ADTS1 1
457
#define ADTS2 2
458
#define ACIR0 4
459
#define ACIR1 5
460
#define ACME 6
461
#define BIN 7
462
463
#define ADMUX _SFR_MEM8(0x7C)
464
#define MUX0 0
465
#define MUX1 1
466
#define MUX2 2
467
#define MUX3 3
468
#define MUX4 4
469
#define ADLAR 5
470
#define REFS0 6
471
#define REFS1 7
472
473
#define DIDR0 _SFR_MEM8(0x7E)
474
#define ADC0D 0
475
#define ADC1D 1
476
#define ADC2D 2
477
#define ADC3D 3
478
#define ADC4D 4
479
#define ADC5D 5
480
#define ADC6D 6
481
#define ADC7D 7
482
483
#define DIDR1 _SFR_MEM8(0x7F)
484
#define ADC8D 0
485
#define ADC9D 1
486
#define ADC10D 2
487
488
#define TCCR1A _SFR_MEM8(0x80)
489
#define WGM10 0
490
#define WGM11 1
491
#define COM1B0 4
492
#define COM1B1 5
493
#define COM1A0 6
494
#define COM1A1 7
495
496
#define TCCR1B _SFR_MEM8(0x81)
497
#define CS10 0
498
#define CS11 1
499
#define CS12 2
500
#define WGM12 3
501
#define WGM13 4
502
#define ICES1 6
503
#define ICNC1 7
504
505
#define TCCR1C _SFR_MEM8(0x82)
506
#define FOC1B 6
507
#define FOC1A 7
508
509
#define TCCR1D _SFR_MEM8(0x83)
510
#define OC1AU 0
511
#define OC1AV 1
512
#define OC1AW 2
513
#define OC1AX 3
514
#define OC1BU 4
515
#define OC1BV 5
516
#define OC1BW 6
517
#define OC1BX 7
518
519
#define TCNT1 _SFR_MEM16(0x84)
520
521
#define TCNT1L _SFR_MEM8(0x84)
522
#define TCNT1L0 0
523
#define TCNT1L1 1
524
#define TCNT1L2 2
525
#define TCNT1L3 3
526
#define TCNT1L4 4
527
#define TCNT1L5 5
528
#define TCNT1L6 6
529
#define TCNT1L7 7
530
531
#define TCNT1H _SFR_MEM8(0x85)
532
#define TCNT1H0 0
533
#define TCNT1H1 1
534
#define TCNT1H2 2
535
#define TCNT1H3 3
536
#define TCNT1H4 4
537
#define TCNT1H5 5
538
#define TCNT1H6 6
539
#define TCNT1H7 7
540
541
#define ICR1 _SFR_MEM16(0x86)
542
543
#define ICR1L _SFR_MEM8(0x86)
544
#define ICR1L0 0
545
#define ICR1L1 1
546
#define ICR1L2 2
547
#define ICR1L3 3
548
#define ICR1L4 4
549
#define ICR1L5 5
550
#define ICR1L6 6
551
#define ICR1L7 7
552
553
#define ICR1H _SFR_MEM8(0x87)
554
#define ICR1H0 0
555
#define ICR1H1 1
556
#define ICR1H2 2
557
#define ICR1H3 3
558
#define ICR1H4 4
559
#define ICR1H5 5
560
#define ICR1H6 6
561
#define ICR1H7 7
562
563
#define OCR1A _SFR_MEM16(0x88)
564
565
#define OCR1AL _SFR_MEM8(0x88)
566
#define OCR1AL0 0
567
#define OCR1AL1 1
568
#define OCR1AL2 2
569
#define OCR1AL3 3
570
#define OCR1AL4 4
571
#define OCR1AL5 5
572
#define OCR1AL6 6
573
#define OCR1AL7 7
574
575
#define OCR1AH _SFR_MEM8(0x89)
576
#define OCR1AH0 0
577
#define OCR1AH1 1
578
#define OCR1AH2 2
579
#define OCR1AH3 3
580
#define OCR1AH4 4
581
#define OCR1AH5 5
582
#define OCR1AH6 6
583
#define OCR1AH7 7
584
585
#define OCR1B _SFR_MEM16(0x8A)
586
587
#define OCR1BL _SFR_MEM8(0x8A)
588
#define OCR1BL0 0
589
#define OCR1BL1 1
590
#define OCR1BL2 2
591
#define OCR1BL3 3
592
#define OCR1BL4 4
593
#define OCR1BL5 5
594
#define OCR1BL6 6
595
#define OCR1BL7 7
596
597
#define OCR1BH _SFR_MEM8(0x8B)
598
#define OCR1BH0 0
599
#define OCR1BH1 1
600
#define OCR1BH2 2
601
#define OCR1BH3 3
602
#define OCR1BH4 4
603
#define OCR1BH5 5
604
#define OCR1BH6 6
605
#define OCR1BH7 7
606
607
#define ASSR _SFR_MEM8(0xB6)
608
#define TCR0BUB 0
609
#define TCR0AUB 1
610
#define OCR0AUB 3
611
#define TCN0UB 4
612
#define AS0 5
613
#define EXCLK 6
614
615
#define USICR _SFR_MEM8(0xB8)
616
#define USITC 0
617
#define USICLK 1
618
#define USICS0 2
619
#define USICS1 3
620
#define USIWM0 4
621
#define USIWM1 5
622
#define USIOIE 6
623
#define USISIE 7
624
625
#define USISR _SFR_MEM8(0xB9)
626
#define USICNT0 0
627
#define USICNT1 1
628
#define USICNT2 2
629
#define USICNT3 3
630
#define USIDC 4
631
#define USIPF 5
632
#define USIOIF 6
633
#define USISIF 7
634
635
#define USIDR _SFR_MEM8(0xBA)
636
#define USIDR0 0
637
#define USIDR1 1
638
#define USIDR2 2
639
#define USIDR3 3
640
#define USIDR4 4
641
#define USIDR5 5
642
#define USIDR6 6
643
#define USIDR7 7
644
645
#define USIBR _SFR_MEM8(0xBB)
646
#define USIBR0 0
647
#define USIBR1 1
648
#define USIBR2 2
649
#define USIBR3 3
650
#define USIBR4 4
651
#define USIBR5 5
652
#define USIBR6 6
653
#define USIBR7 7
654
655
#define USIPP _SFR_MEM8(0xBC)
656
#define USIPOS 0
657
658
#define LINCR _SFR_MEM8(0xC8)
659
#define LCMD0 0
660
#define LCMD1 1
661
#define LCMD2 2
662
#define LENA 3
663
#define LCONF0 4
664
#define LCONF1 5
665
#define LIN13 6
666
#define LSWRES 7
667
668
#define LINSIR _SFR_MEM8(0xC9)
669
#define LRXOK 0
670
#define LTXOK 1
671
#define LIDOK 2
672
#define LERR 3
673
#define LBUSY 4
674
#define LIDST0 5
675
#define LIDST1 6
676
#define LIDST2 7
677
678
#define LINENIR _SFR_MEM8(0xCA)
679
#define LENRXOK 0
680
#define LENTXOK 1
681
#define LENIDOK 2
682
#define LENERR 3
683
684
#define LINERR _SFR_MEM8(0xCB)
685
#define LBERR 0
686
#define LCERR 1
687
#define LPERR 2
688
#define LSERR 3
689
#define LFERR 4
690
#define LOVERR 5
691
#define LTOERR 6
692
#define LABORT 7
693
694
#define LINBTR _SFR_MEM8(0xCC)
695
#define LBT0 0
696
#define LBT1 1
697
#define LBT2 2
698
#define LBT3 3
699
#define LBT4 4
700
#define LBT5 5
701
#define LDISR 7
702
703
#define LINBRR _SFR_MEM16(0xCD)
704
705
#define LINBRRL _SFR_MEM8(0xCD)
706
#define LDIV0 0
707
#define LDIV1 1
708
#define LDIV2 2
709
#define LDIV3 3
710
#define LDIV4 4
711
#define LDIV5 5
712
#define LDIV6 6
713
#define LDIV7 7
714
715
#define LINBRRH _SFR_MEM8(0xCE)
716
#define LDIV8 0
717
#define LDIV9 1
718
#define LDIV10 2
719
#define LDIV11 3
720
721
#define LINDLR _SFR_MEM8(0xCF)
722
#define LRXDL0 0
723
#define LRXDL1 1
724
#define LRXDL2 2
725
#define LRXDL3 3
726
#define LTXDL0 4
727
#define LTXDL1 5
728
#define LTXDL2 6
729
#define LTXDL3 7
730
731
#define LINIDR _SFR_MEM8(0xD0)
732
#define LID0 0
733
#define LID1 1
734
#define LID2 2
735
#define LID3 3
736
#define LID4 4
737
#define LID5 5
738
#define LP0 6
739
#define LP1 7
740
741
#define LINSEL _SFR_MEM8(0xD1)
742
#define LINDX0 0
743
#define LINDX1 1
744
#define LINDX2 2
745
#define LAINC 3
746
747
#define LINDAT _SFR_MEM8(0xD2)
748
#define LDATA0 0
749
#define LDATA1 1
750
#define LDATA2 2
751
#define LDATA3 3
752
#define LDATA4 4
753
#define LDATA5 5
754
#define LDATA6 6
755
#define LDATA7 7
756
757
758
/* Interrupt vectors */
759
/* Vector 0 is the reset vector */
760
#define INT0_vect_num 1
761
#define INT0_vect _VECTOR(1)
/* External Interrupt Request 0 */
762
#define USI_OVF_vect_num 19
763
#define USI_OVF_vect _VECTOR(19)
/* USI Overflow */
764
#define INT1_vect_num 2
765
#define INT1_vect _VECTOR(2)
/* External Interrupt Request 1 */
766
#define PCINT0_vect_num 3
767
#define PCINT0_vect _VECTOR(3)
/* Pin Change Interrupt Request 0 */
768
#define PCINT1_vect_num 4
769
#define PCINT1_vect _VECTOR(4)
/* Pin Change Interrupt Request 1 */
770
#define WDT_vect_num 5
771
#define WDT_vect _VECTOR(5)
/* Watchdog Time-Out Interrupt */
772
#define TIMER1_CAPT_vect_num 6
773
#define TIMER1_CAPT_vect _VECTOR(6)
/* Timer/Counter1 Capture Event */
774
#define TIMER1_COMPA_vect_num 7
775
#define TIMER1_COMPA_vect _VECTOR(7)
/* Timer/Counter1 Compare Match 1A */
776
#define TIMER1_COMPB_vect_num 8
777
#define TIMER1_COMPB_vect _VECTOR(8)
/* Timer/Counter1 Compare Match 1B */
778
#define TIMER1_OVF_vect_num 9
779
#define TIMER1_OVF_vect _VECTOR(9)
/* Timer/Counter1 Overflow */
780
#define TIMER0_COMPA_vect_num 10
781
#define TIMER0_COMPA_vect _VECTOR(10)
/* Timer/Counter0 Compare Match 0A */
782
#define TIMER0_OVF_vect_num 11
783
#define TIMER0_OVF_vect _VECTOR(11)
/* Timer/Counter0 Overflow */
784
#define LIN_TC_vect_num 12
785
#define LIN_TC_vect _VECTOR(12)
/* LIN Transfer Complete */
786
#define LIN_ERR_vect_num 13
787
#define LIN_ERR_vect _VECTOR(13)
/* LIN Error */
788
#define SPI_STC_vect_num 14
789
#define SPI_STC_vect _VECTOR(14)
/* SPI Serial Transfer Complete */
790
#define ADC_vect_num 15
791
#define ADC_vect _VECTOR(15)
/* ADC Conversion Complete */
792
#define EE_RDY_vect_num 16
793
#define EE_RDY_vect _VECTOR(16)
/* EEPROM Ready */
794
#define ANA_COMP_vect_num 17
795
#define ANA_COMP_vect _VECTOR(17)
/* Analog Comparator */
796
#define USI_START_vect_num 18
797
#define USI_START_vect _VECTOR(18)
/* USI Start */
798
799
#define _VECTOR_SIZE 2
/* Size of individual vector. */
800
#define _VECTORS_SIZE (20 * _VECTOR_SIZE)
801
802
803
/* Constants */
804
#define SPM_PAGESIZE (128)
805
#define RAMSTART (0x0100)
806
#define RAMSIZE (512)
807
#define RAMEND (RAMSTART + RAMSIZE - 1)
808
#define XRAMSTART (NA)
809
#define XRAMSIZE (0)
810
#define XRAMEND (RAMEND)
811
#define E2END (0x1FF)
812
#define E2PAGESIZE (4)
813
#define FLASHEND (0x1FFF)
814
815
816
/* Fuses */
817
#define FUSE_MEMORY_SIZE 3
818
819
/* Low Fuse Byte */
820
#define FUSE_CKSEL0 (unsigned char)~_BV(0)
/* Select Clock source */
821
#define FUSE_CKSEL1 (unsigned char)~_BV(1)
/* Select Clock source */
822
#define FUSE_CKSEL2 (unsigned char)~_BV(2)
/* Select Clock source */
823
#define FUSE_CKSEL3 (unsigned char)~_BV(3)
/* Select Clock source */
824
#define FUSE_SUT0 (unsigned char)~_BV(4)
/* Select start-up time */
825
#define FUSE_SUT1 (unsigned char)~_BV(5)
/* Select start-up time */
826
#define FUSE_CKOUT (unsigned char)~_BV(6)
/* Clock Output Enable */
827
#define FUSE_CKDIV8 (unsigned char)~_BV(7)
/* Divide clock by 8 */
828
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
829
830
/* High Fuse Byte */
831
#define FUSE_BODLEVEL0 (unsigned char)~_BV(0)
/* Brown-out Detector trigger level */
832
#define FUSE_BODLEVEL1 (unsigned char)~_BV(1)
/* Brown-out Detector trigger level */
833
#define FUSE_BODLEVEL2 (unsigned char)~_BV(2)
/* Brown-out Detector trigger level */
834
#define FUSE_EESAVE (unsigned char)~_BV(3)
/* EEPROM memory is preserved through the Chip Erase */
835
#define FUSE_WDTON (unsigned char)~_BV(4)
/* Watchdog Timer always ON */
836
#define FUSE_SPIEN (unsigned char)~_BV(5)
/* Enable Serial Program and Data Downloading */
837
#define FUSE_DWEN (unsigned char)~_BV(6)
/* DebugWIRE Enable */
838
#define FUSE_RSTDISBL (unsigned char)~_BV(7)
/* External Reset disable */
839
#define HFUSE_DEFAULT (FUSE_SPIEN)
840
841
/* Extended Fuse Byte */
842
#define FUSE_SELFPRGEN (unsigned char)~_BV(0)
/* Self-Programming Enable */
843
#define EFUSE_DEFAULT (0xFF)
844
845
846
/* Lock Bits */
847
#define __LOCK_BITS_EXIST
848
849
850
/* Signature */
851
#define SIGNATURE_0 0x1E
852
#define SIGNATURE_1 0x93
853
#define SIGNATURE_2 0x87
854
856
#endif
/* _AVR_ATtiny87_H_ */
Generated by
1.8.13