RTEMS CPU Kit with SuperCore
ioa6289.h
Go to the documentation of this file.
1 
9 /*
10  * Copyright (c) 2008 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_ "ioa6289.h"
47 #else
48 # error "Attempt to include more than one <avr/ioXXX.h> file."
49 #endif
50 
51 
52 #ifndef _AVR_ATA6289_H_
53 #define _AVR_ATA6289_H_ 1
54 
63 /* Registers and associated bit numbers. */
64 
65 #define PINB _SFR_IO8(0x03)
66 #define PINB0 0
67 #define PINB1 1
68 #define PINB2 2
69 #define PINB3 3
70 #define PINB4 4
71 #define PINB5 5
72 #define PINB6 6
73 #define PINB7 7
74 
75 #define DDRB _SFR_IO8(0x04)
76 #define DDB0 0
77 #define DDB1 1
78 #define DDB2 2
79 #define DDB3 3
80 #define DDB4 4
81 #define DDB5 5
82 #define DDB6 6
83 #define DDB7 7
84 
85 #define PORTB _SFR_IO8(0x05)
86 #define PORTB0 0
87 #define PORTB1 1
88 #define PORTB2 2
89 #define PORTB3 3
90 #define PORTB4 4
91 #define PORTB5 5
92 #define PORTB6 6
93 #define PORTB7 7
94 
95 #define PINC _SFR_IO8(0x06)
96 #define PINC0 0
97 #define PINC1 1
98 
99 #define DDRC _SFR_IO8(0x07)
100 
101 #define PORTC _SFR_IO8(0x08)
102 #define PORTC0 0
103 #define PORTC1 1
104 
105 #define PIND _SFR_IO8(0x09)
106 #define PIND0 0
107 #define PIND1 1
108 #define PIND2 2
109 #define PIND3 3
110 #define PIND4 4
111 #define PIND5 5
112 #define PIND6 6
113 #define PIND7 7
114 
115 #define DDRD _SFR_IO8(0x0A)
116 #define DDD0 0
117 #define DDD1 1
118 #define DDD2 2
119 #define DDD3 3
120 #define DDD4 4
121 #define DDD5 5
122 #define DDD6 6
123 #define DDD7 7
124 
125 #define PORTD _SFR_IO8(0x0B)
126 #define PORTD0 0
127 #define PORTD1 1
128 #define PORTD2 2
129 #define PORTD3 3
130 #define PORTD4 4
131 #define PORTD5 5
132 #define PORTD6 6
133 #define PORTD7 7
134 
135 #define CMCR _SFR_IO8(0x0F)
136 #define CMM0 0
137 #define CMM1 1
138 #define SRCD 2
139 #define CMONEN 3
140 #define CCS 4
141 #define ECINS 5
142 #define CMCCE 7
143 
144 #define CMSR _SFR_IO8(0x10)
145 #define ECF 0
146 
147 #define T2CRA _SFR_IO8(0x11)
148 #define T2OTM 0
149 #define T2CTM 1
150 #define T2CR 2
151 #define T2CRM 3
152 #define T2CPRM 4
153 #define T2ICS 5
154 #define T2TS 6
155 #define T2E 7
156 
157 #define T2CRB _SFR_IO8(0x12)
158 #define T2SCE 0
159 
160 #define T3CRA _SFR_IO8(0x14)
161 #define T3AC 0
162 #define T3SCE 1
163 #define T3CR 2
164 #define T3TS 6
165 #define T3E 7
166 
167 #define VMCSR _SFR_IO8(0x16)
168 #define VMEN 0
169 #define VMLS0 1
170 #define VMLS1 2
171 #define VMLS2 3
172 #define VMIM 4
173 #define VMF 5
174 #define BODPD 6
175 #define BODLS 7
176 
177 #define PCIFR _SFR_IO8(0x17)
178 #define PCIF0 0
179 #define PCIF1 1
180 #define PCIF2 2
181 
182 #define LFFR _SFR_IO8(0x18)
183 #define LFWPF 0
184 #define LFBF 1
185 #define LFEDF 2
186 #define LFRF 3
187 
188 #define SSFR _SFR_IO8(0x19)
189 #define MSENF 0
190 #define MSENO 1
191 
192 #define T10IFR _SFR_IO8(0x1A)
193 #define T0F 0
194 #define T1F 1
195 
196 #define T2IFR _SFR_IO8(0x1B)
197 #define T2OFF 0
198 #define T2COF 1
199 #define T2ICF 2
200 #define T2RXF 3
201 #define T2TXF 4
202 #define T2TCF 5
203 
204 #define T3IFR _SFR_IO8(0x1C)
205 #define T3OFF 0
206 #define T3COAF 1
207 #define T3COBF 2
208 #define T3ICF 3
209 
210 #define EIFR _SFR_IO8(0x1D)
211 #define INTF0 0
212 #define INTF1 1
213 
214 #define GPIOR0 _SFR_IO8(0x1E)
215 #define GPIOR00 0
216 #define GPIOR01 1
217 #define GPIOR02 2
218 #define GPIOR03 3
219 #define GPIOR04 4
220 #define GPIOR05 5
221 #define GPIOR06 6
222 #define GPIOR07 7
223 
224 #define EECR _SFR_IO8(0x1F)
225 #define EERE 0
226 #define EEWE 1
227 #define EEMWE 2
228 #define EERIE 3
229 #define EEPM0 4
230 #define EEPM1 5
231 
232 #define EEDR _SFR_IO8(0x20)
233 #define EEDR0 0
234 #define EEDR1 1
235 #define EEDR2 2
236 #define EEDR3 3
237 #define EEDR4 4
238 #define EEDR5 5
239 #define EEDR6 6
240 #define EEDR7 7
241 
242 #define EEAR _SFR_IO16(0x21)
243 
244 #define EEARL _SFR_IO8(0x21)
245 #define EEAR0 0
246 #define EEAR1 1
247 #define EEAR2 2
248 #define EEAR3 3
249 #define EEAR4 4
250 #define EEAR5 5
251 #define EEAR6 6
252 #define EEAR7 7
253 
254 #define EEARH _SFR_IO8(0x22)
255 #define EEAR8 0
256 
257 #define PCICR _SFR_IO8(0x23)
258 #define PCIE0 0
259 #define PCIE1 1
260 #define PCIE2 2
261 
262 #define EIMSK _SFR_IO8(0x24)
263 #define INT0 0
264 #define INT1 1
265 
266 #define SVCR _SFR_IO8(0x27)
267 #define SVCS0 0
268 #define SVCS1 1
269 #define SVCS2 2
270 #define SVCS3 3
271 #define SVCS4 4
272 
273 #define SCR _SFR_IO8(0x28)
274 #define SMS 0
275 #define SEN0 1
276 #define SEN1 2
277 #define SMEN 3
278 
279 #define SCCR _SFR_IO8(0x29)
280 #define SRCC0 0
281 #define SRCC1 1
282 #define SCCS0 2
283 #define SCCS1 3
284 #define SCCS2 4
285 
286 #define GPIOR1 _SFR_IO8(0x2A)
287 #define GPIOR10 0
288 #define GPIOR11 1
289 #define GPIOR12 2
290 #define GPIOR13 3
291 #define GPIOR14 4
292 #define GPIOR15 5
293 #define GPIOR16 6
294 #define GPIOR17 7
295 
296 #define GPIOR2 _SFR_IO8(0x2B)
297 #define GPIOR20 0
298 #define GPIOR21 1
299 #define GPIOR22 2
300 #define GPIOR23 3
301 #define GPIOR24 4
302 #define GPIOR25 5
303 #define GPIOR26 6
304 #define GPIOR27 7
305 
306 #define SPCR _SFR_IO8(0x2C)
307 #define SPR0 0
308 #define SPR1 1
309 #define CPHA 2
310 #define CPOL 3
311 #define MSTR 4
312 #define DORD 5
313 #define SPE 6
314 #define SPIE 7
315 
316 #define SPSR _SFR_IO8(0x2D)
317 #define SPI2X 0
318 #define WCOL 6
319 #define SPIF 7
320 
321 #define SPDR _SFR_IO8(0x2E)
322 #define SPDR0 0
323 #define SPDR1 1
324 #define SPDR2 2
325 #define SPDR3 3
326 #define SPDR4 4
327 #define SPDR5 5
328 #define SPDR6 6
329 #define SPDR7 7
330 
331 #define T2MDR _SFR_IO8(0x2F)
332 #define T2MDR0 0
333 #define T2MDR1 1
334 #define T2MDR2 2
335 #define T2MDR3 3
336 #define T2MDR4 4
337 #define T2MDR5 5
338 #define T2MDR6 6
339 #define T2MDR7 7
340 
341 #define LFRR _SFR_IO8(0x30)
342 #define LFRR0 0
343 #define LFRR1 1
344 #define LFRR2 2
345 #define LFRR3 3
346 #define LFRR4 4
347 #define LFRR5 5
348 #define LFRR6 6
349 
350 #define LFCDR _SFR_IO8(0x32)
351 #define LFDO 0
352 #define LFRST 6
353 #define LFSCE 7
354 
355 #define SMCR _SFR_IO8(0x33)
356 #define SE 0
357 #define SM0 1
358 #define SM1 2
359 #define SM2 3
360 
361 #define MCUSR _SFR_IO8(0x34)
362 #define PORF 0
363 #define EXTRF 1
364 #define BORF 2
365 #define WDRF 3
366 #define TSRF 5
367 
368 #define MCUCR _SFR_IO8(0x35)
369 #define IVCE 0
370 #define IVSEL 1
371 #define PUD 4
372 
373 #define LFRB _SFR_IO8(0x36)
374 #define LFRB0 0
375 #define LFRB1 1
376 #define LFRB2 2
377 #define LFRB3 3
378 #define LFRB4 4
379 #define LFRB5 5
380 #define LFRB6 6
381 #define LFRB7 7
382 
383 #define SPMCSR _SFR_IO8(0x37)
384 #define SELFPRGEN 0
385 #define PGERS 1
386 #define PGWRT 2
387 #define BLBSET 3
388 #define RWWSRE 4
389 #define RWWSB 6
390 #define SPMIE 7
391 
392 #define T1CR _SFR_IO8(0x38)
393 #define T1PS0 0
394 #define T1PS1 1
395 #define T1PS2 2
396 #define T1CS0 3
397 #define T1CS1 4
398 #define T1CS2 5
399 #define T1IE 7
400 
401 #define T0CR _SFR_IO8(0x39)
402 #define T0PAS0 0
403 #define T0PAS1 1
404 #define T0PAS2 2
405 #define T0IE 3
406 #define T0PR 4
407 #define T0PBS0 5
408 #define T0PBS1 6
409 #define T0PBS2 7
410 
411 #define CMIMR _SFR_IO8(0x3B)
412 #define ECIE 0
413 
414 #define CLKPR _SFR_IO8(0x3C)
415 #define CLKPS0 0
416 #define CLKPS1 1
417 #define CLKPS2 2
418 #define CLTPS0 3
419 #define CLTPS1 4
420 #define CLTPS2 5
421 #define CLPCE 7
422 
423 #define WDTCR _SFR_MEM8(0x60)
424 #define WDPS0 0
425 #define WDPS1 1
426 #define WDPS2 2
427 #define WDE 3
428 #define WDCE 4
429 
430 #define SIMSK _SFR_MEM8(0x61)
431 #define MSIE 0
432 
433 #define TSCR _SFR_MEM8(0x64)
434 #define TSSD 0
435 
436 #define SRCCAL _SFR_MEM8(0x65)
437 #define SCAL0 0
438 #define SCAL1 1
439 #define SCAL2 2
440 #define SCAL3 3
441 #define SCAL4 4
442 #define SCAL5 5
443 #define SCAL6 6
444 #define SCAL7 7
445 
446 #define FRCCAL _SFR_MEM8(0x66)
447 #define FCAL0 0
448 #define FCAL1 1
449 #define FCAL2 2
450 #define FCAL3 3
451 #define FCAL4 4
452 #define FCAL5 5
453 #define FCAL6 6
454 #define FCAL7 7
455 
456 #define MSVCAL _SFR_MEM8(0x67)
457 #define VRCAL0 0
458 #define VRCAL1 1
459 #define VRCAL2 2
460 #define VRCAL3 3
461 #define VRCAL4 4
462 #define VRCAL5 5
463 #define VRCAL6 6
464 #define VRCAL7 7
465 
466 #define BGCAL _SFR_MEM8(0x68)
467 #define BGCAL0 0
468 #define BGCAL1 1
469 #define BGCAL2 2
470 #define BGCAL3 3
471 #define BGCAL4 4
472 #define BGCAL5 5
473 #define BGCAL6 6
474 #define BGCAL7 7
475 
476 #define EICRA _SFR_MEM8(0x69)
477 #define ISC00 0
478 #define ISC01 1
479 #define ISC10 2
480 #define ISC11 3
481 
482 #define PCMSK0 _SFR_MEM8(0x6A)
483 #define PCINT0 0
484 #define PCINT1 1
485 #define PCINT2 2
486 #define PCINT3 3
487 #define PCINT4 4
488 #define PCINT5 5
489 #define PCINT6 6
490 #define PCINT7 7
491 
492 #define PCMSK1 _SFR_MEM8(0x6B)
493 #define PCINT8 0
494 #define PCINT9 1
495 #define PCINT10 2
496 
497 #define PCMSK2 _SFR_MEM8(0x6C)
498 #define PCINT16 0
499 #define PCINT17 1
500 #define PCINT18 2
501 #define PCINT19 3
502 #define PCINT20 4
503 #define PCINT21 5
504 #define PCINT22 6
505 #define PCINT23 7
506 
507 #define T2ICR _SFR_MEM16(0x6E)
508 
509 #define T2ICRL _SFR_MEM8(0x6E)
510 #define T2ICRL0 0
511 #define T2ICRL1 1
512 #define T2ICRL2 2
513 #define T2ICRL3 3
514 #define T2ICRL4 4
515 #define T2ICRL5 5
516 #define T2ICRL6 6
517 #define T2ICRL7 7
518 
519 #define T2ICRH _SFR_MEM8(0x6F)
520 #define T2ICRH0 0
521 #define T2ICRH1 1
522 #define T2ICRH2 2
523 #define T2ICRH3 3
524 #define T2ICRH4 4
525 #define T2ICRH5 5
526 #define T2ICRH6 6
527 #define T2ICRH7 7
528 
529 #define T2COR _SFR_MEM16(0x70)
530 
531 #define T2CORL _SFR_MEM8(0x70)
532 #define T2CORL0 0
533 #define T2CORL1 1
534 #define T2CORL2 2
535 #define T2CORL3 3
536 #define T2CORL4 4
537 #define T2CORL5 5
538 #define T2CORL6 6
539 #define T2CORL7 7
540 
541 #define T2CORH _SFR_MEM8(0x71)
542 #define T2CORH0 0
543 #define T2CORH1 1
544 #define T2CORH2 2
545 #define T2CORH3 3
546 #define T2CORH4 4
547 #define T2CORH5 5
548 #define T2CORH6 6
549 #define T2CORH7 7
550 
551 #define T2MRA _SFR_MEM8(0x72)
552 #define T2CS0 0
553 #define T2CS1 1
554 #define T2CS2 2
555 #define T2CE0 3
556 #define T2CE1 4
557 #define T2CNC 5
558 #define T2TP0 6
559 #define T2TP1 7
560 
561 #define T2MRB _SFR_MEM8(0x73)
562 #define T2M0 0
563 #define T2M1 1
564 #define T2M2 2
565 #define T2M3 3
566 #define T2TOP 4
567 #define T2CPOL 6
568 #define T2SSIE 7
569 
570 #define T2IMR _SFR_MEM8(0x74)
571 #define T2OIM 0
572 #define T2CIM 1
573 #define T2CPIM 2
574 #define T2RXIM 3
575 #define T2TXIM 4
576 #define T2TCIM 5
577 
578 #define T3ICR _SFR_MEM16(0x76)
579 
580 #define T3ICRL _SFR_MEM8(0x76)
581 #define T3ICRL0 0
582 #define T3ICRL1 1
583 #define T3ICRL2 2
584 #define T3ICRL3 3
585 #define T3ICRL4 4
586 #define T3ICRL5 5
587 #define T3ICRL6 6
588 #define T3ICRL7 7
589 
590 #define T3ICRH _SFR_MEM8(0x77)
591 #define T3ICRH0 0
592 #define T3ICRH1 1
593 #define T3ICRH2 2
594 #define T3ICRH3 3
595 #define T3ICRH4 4
596 #define T3ICRH5 5
597 #define T3ICRH6 6
598 #define T3ICRH7 7
599 
600 #define T3CORA _SFR_MEM16(0x78)
601 
602 #define T3CORAL _SFR_MEM8(0x78)
603 #define T3CORAL0 0
604 #define T3CORAL1 1
605 #define T3CORAL2 2
606 #define T3CORAL3 3
607 #define T3CORAL4 4
608 #define T3CORAL5 5
609 #define T3CORAL6 6
610 #define T3CORAL7 7
611 
612 #define T3CORAH _SFR_MEM8(0x79)
613 #define T3CORAH0 0
614 #define T3CORAH1 1
615 #define T3CORAH2 2
616 #define T3CORAH3 3
617 #define T3CORAH4 4
618 #define T3CORAH5 5
619 #define T3CORAH6 6
620 #define T3CORAH7 7
621 
622 #define T3CORB _SFR_MEM16(0x7A)
623 
624 #define T3CORBL _SFR_MEM8(0x7A)
625 #define T3CORBL0 0
626 #define T3CORBL1 1
627 #define T3CORBL2 2
628 #define T3CORBL3 3
629 #define T3CORBL4 4
630 #define T3CORBL5 5
631 #define T3CORBL6 6
632 #define T3CORBL7 7
633 
634 #define T3CORBH _SFR_MEM8(0x7B)
635 #define T3CORBH0 0
636 #define T3CORBH1 1
637 #define T3CORBH2 2
638 #define T3CORBH3 3
639 #define T3CORBH4 4
640 #define T3CORBH5 5
641 #define T3CORBH6 6
642 #define T3CORBH7 7
643 
644 #define T3MRA _SFR_MEM8(0x7C)
645 #define T3CS0 0
646 #define T3CS1 1
647 #define T3CS2 2
648 #define T3CE0 3
649 #define T3CE1 4
650 #define T3CNC 5
651 #define T3ICS0 6
652 #define T3ICS1 7
653 
654 #define T3MRB _SFR_MEM8(0x7D)
655 #define T3M0 0
656 #define T3M1 1
657 #define T3M2 2
658 #define T3TOP 4
659 
660 #define T3CRB _SFR_MEM8(0x7E)
661 #define T3CTMA 0
662 #define T3SAMA 1
663 #define T3CRMA 2
664 #define T3CTMB 3
665 #define T3SAMB 4
666 #define T3CRMB 5
667 #define T3CPRM 6
668 
669 #define T3IMR _SFR_MEM8(0x7F)
670 #define T3OIM 0
671 #define T3CAIM 1
672 #define T3CBIM 2
673 #define T3CPIM 3
674 
675 #define LFIMR _SFR_MEM8(0x81)
676 #define LFWIM 0
677 #define LFBIM 1
678 #define LFEIM 2
679 
680 #define LFRCR _SFR_MEM8(0x82)
681 #define LFEN 0
682 #define LFBM 1
683 #define LFWM0 2
684 #define LFWM1 3
685 #define LFRSS 4
686 #define LFCS0 5
687 #define LFCS1 6
688 #define LFCS2 7
689 
690 #define LFHCR _SFR_MEM8(0x83)
691 #define LFHCR0 0
692 #define LFHCR1 1
693 #define LFHCR2 2
694 #define LFHCR3 3
695 #define LFHCR4 4
696 #define LFHCR5 5
697 #define LFHCR6 6
698 
699 #define LFIDC _SFR_MEM16(0x84)
700 
701 #define LFIDCL _SFR_MEM8(0x84)
702 #define LFIDCL_0 0
703 #define LFIDCL_1 1
704 #define LFIDCL_2 2
705 #define LFIDCL_3 3
706 #define LFIDCL_4 4
707 #define LFIDCL_5 5
708 #define LFIDCL_6 6
709 #define LFIDCL_7 7
710 
711 #define LFIDCH _SFR_MEM8(0x85)
712 #define LFIDCH_8 0
713 #define LFIDCH_9 1
714 #define LFIDCH_10 2
715 #define LFIDCH_11 3
716 #define LFIDCH_12 4
717 #define LFIDCH_13 5
718 #define LFIDCH_14 6
719 #define LFIDCH_15 7
720 
721 #define LFCAL _SFR_MEM16(0x86)
722 
723 #define LFCALL _SFR_MEM8(0x86)
724 #define LFCAL_00 0
725 #define LFCAL_01 1
726 #define LFCAL_02 2
727 #define LFCAL_03 3
728 #define LFCAL_04 4
729 #define LFCAL_05 5
730 #define LFCAL_06 6
731 #define LFCAL_07 7
732 
733 #define LFCALH _SFR_MEM8(0x87)
734 #define LFCAL_08 0
735 #define LFCAL_09 1
736 #define LFCAL_10 2
737 #define LFCAL_11 3
738 #define LFCAL_12 4
739 #define LFCAL_13 5
740 #define LFCAL_14 6
741 #define LFCAL_15 7
742 
743 
744 /* Interrupt vectors */
745 /* Vector 0 is the reset vector */
746 #define INT0_vect_num 1
747 #define INT0_vect _VECTOR(1) /* External Interrupt Request 0 */
748 #define INT1_vect_num 2
749 #define INT1_vect _VECTOR(2) /* External Interrupt Request 1 */
750 #define PCINT0_vect_num 3
751 #define PCINT0_vect _VECTOR(3) /* Pin Change Interrupt Request 0 */
752 #define PCINT1_vect_num 4
753 #define PCINT1_vect _VECTOR(4) /* Pin Change Interrupt Request 1 */
754 #define PCINT2_vect_num 5
755 #define PCINT2_vect _VECTOR(5) /* Pin Change Interrupt Request 2 */
756 #define INTVM_vect_num 6
757 #define INTVM_vect _VECTOR(6) /* Voltage Monitor Interrupt */
758 #define SENINT_vect_num 7
759 #define SENINT_vect _VECTOR(7) /* Sensor Interface Interrupt */
760 #define INTT0_vect_num 8
761 #define INTT0_vect _VECTOR(8) /* Timer0 Interval Interrupt */
762 #define LFWP_vect_num 9
763 #define LFWP_vect _VECTOR(9) /* LF-Receiver Wake-up Interrupt */
764 #define T3CAP_vect_num 10
765 #define T3CAP_vect _VECTOR(10) /* Timer/Counter3 Capture Event */
766 #define T3COMA_vect_num 11
767 #define T3COMA_vect _VECTOR(11) /* Timer/Counter3 Compare Match A */
768 #define T3COMB_vect_num 12
769 #define T3COMB_vect _VECTOR(12) /* Timer/Counter3 Compare Match B */
770 #define T3OVF_vect_num 13
771 #define T3OVF_vect _VECTOR(13) /* Timer/Counter3 Overflow */
772 #define T2CAP_vect_num 14
773 #define T2CAP_vect _VECTOR(14) /* Timer/Counter2 Capture Event */
774 #define T2COM_vect_num 15
775 #define T2COM_vect _VECTOR(15) /* Timer/Counter2 Compare Match */
776 #define T2OVF_vect_num 16
777 #define T2OVF_vect _VECTOR(16) /* Timer/Counter2 Overflow */
778 #define SPISTC_vect_num 17
779 #define SPISTC_vect _VECTOR(17) /* SPI Serial Transfer Complete */
780 #define LFRXB_vect_num 18
781 #define LFRXB_vect _VECTOR(18) /* LF Receive Buffer Interrupt */
782 #define INTT1_vect_num 19
783 #define INTT1_vect _VECTOR(19) /* Timer1 Interval Interrupt */
784 #define T2RXB_vect_num 20
785 #define T2RXB_vect _VECTOR(20) /* Timer2 SSI Receive Buffer Interrupt */
786 #define T2TXB_vect_num 21
787 #define T2TXB_vect _VECTOR(21) /* Timer2 SSI Transmit Buffer Interrupt */
788 #define T2TXC_vect_num 22
789 #define T2TXC_vect _VECTOR(22) /* Timer2 SSI Transmit Complete Interrupt */
790 #define LFREOB_vect_num 23
791 #define LFREOB_vect _VECTOR(23) /* LF-Receiver End of Burst Interrupt */
792 #define EXCM_vect_num 24
793 #define EXCM_vect _VECTOR(24) /* External Input Clock break down Interrupt */
794 #define EEREADY_vect_num 25
795 #define EEREADY_vect _VECTOR(25) /* EEPROM Ready Interrupt */
796 #define SPM_RDY_vect_num 26
797 #define SPM_RDY_vect _VECTOR(26) /* Store Program Memory Ready */
798 
799 #define _VECTOR_SIZE 2 /* Size of individual vector. */
800 #define _VECTORS_SIZE (27 * _VECTOR_SIZE)
801 
802 
803 /* Constants */
804 #define SPM_PAGESIZE (64)
805 #define RAMSTART (0x100)
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 (320 - 1)
812 #define E2PAGESIZE (4)
813 #define FLASHEND (8192 - 1)
814 
815 
816 /* Fuses */
817 #define FUSE_MEMORY_SIZE 2
818 
819 /* Low Fuse Byte */
820 #define FUSE_TSRDI ~_BV(0) /* Disable Temperature shutdown Reset */
821 #define FUSE_BODEN ~_BV(1) /* Enable Brown-out detection */
822 #define FUSE_FRCFS ~_BV(2) /* Fast RC-Oscillator Frequency select */
823 #define FUSE_WDRCON ~_BV(3) /* Enable Watchdog RC-Oscillator */
824 #define FUSE_SUT0 ~_BV(4) /* Select start-up time */
825 #define FUSE_SUT1 ~_BV(5) /* Select start-up time */
826 #define FUSE_CKOUT ~_BV(6) /* Clock output */
827 #define FUSE_CKDIV8 ~_BV(7) /* Divide clock by 8 */
828 #define LFUSE_DEFAULT (FUSE_CKDIV8 & FUSE_SUT0 & FUSE_WDRCON & FUSE_BODEN)
829 
830 /* High Fuse Byte */
831 #define FUSE_BOOTRST ~_BV(0) /* Select reset vector */
832 #define FUSE_BOOTSZ0 ~_BV(1) /* Boot size select */
833 #define FUSE_BOOTSZ1 ~_BV(2) /* Boot size select */
834 #define FUSE_EESAVE ~_BV(3) /* EEPROM memory is preserved through chip erase */
835 #define FUSE_WDTON ~_BV(4) /* Watchdog Timer Always On */
836 #define FUSE_SPIEN ~_BV(5) /* Enable Serial programming and Data Downloading */
837 #define FUSE_DWEN ~_BV(6) /* debugWIRE Enable */
838 #define FUSE_EELOCK ~_BV(7) /* Upper EEPROM Locked (disabled) */
839 #define HFUSE_DEFAULT (FUSE_SPIEN & FUSE_BOOTSZ1 & FUSE_BOOTSZ0)
840 
841 
842 /* Lock Bits */
843 #define __LOCK_BITS_EXIST
844 #define __BOOT_LOCK_BITS_0_EXIST
845 #define __BOOT_LOCK_BITS_1_EXIST
846 
847 
848 /* Signature */
849 #define SIGNATURE_0 0x1E
850 #define SIGNATURE_1 0x93
851 #define SIGNATURE_2 0x82
852 
853 
855 #endif /* _AVR_ATA6289_H_ */