source: rtems/cpukit/score/cpu/avr/avr/iom6450.h @ b697bc6

4.115
Last change on this file since b697bc6 was b697bc6, checked in by Joel Sherrill <joel.sherrill@…>, on 01/10/13 at 21:06:42

cpukit: Use Consistent Beginning of Doxygen Group Notation

This is the result of a sed script which converts all uses
of @{ into a consistent form.

  • Property mode set to 100644
File size: 18.5 KB
Line 
1/**
2 * @file
3 *
4 * @brief Definitions for ATmega6450
5 *
6 * This file should only be included from <avr/io.h>, never directly.
7 */
8
9/* Copyright (c) 2004,2005,2006 Eric B. Weddington
10   All rights reserved.
11
12   Redistribution and use in source and binary forms, with or without
13   modification, are permitted provided that the following conditions are met:
14
15   * Redistributions of source code must retain the above copyright
16     notice, this list of conditions and the following disclaimer.
17
18   * Redistributions in binary form must reproduce the above copyright
19     notice, this list of conditions and the following disclaimer in
20     the documentation and/or other materials provided with the
21     distribution.
22
23   * Neither the name of the copyright holders nor the names of
24     contributors may be used to endorse or promote products derived
25     from this software without specific prior written permission.
26
27  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
28  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
31  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37  POSSIBILITY OF SUCH DAMAGE. */
38
39
40/* avr/iom6450.h - definitions for ATmega6450 */
41
42#ifndef _AVR_IOM6450_H_
43#define _AVR_IOM6450_H_ 1
44
45/* This file should only be included from <avr/io.h>, never directly. */
46
47#ifndef _AVR_IO_H_
48#  error "Include <avr/io.h> instead of this file."
49#endif
50
51#ifndef _AVR_IOXXX_H_
52#  define _AVR_IOXXX_H_ "iom6450.h"
53#else
54#  error "Attempt to include more than one <avr/ioXXX.h> file."
55#endif
56
57/**
58 * @defgroup AvrDef_iom6450 ATmega6450 Definitions
59 *
60 * @ingroup avr
61 *
62 */
63/**@{**/
64
65/* Registers and associated bit numbers */
66
67#define PINA    _SFR_IO8(0x00)
68#define PINA7   7
69#define PINA6   6
70#define PINA5   5
71#define PINA4   4
72#define PINA3   3
73#define PINA2   2
74#define PINA1   1
75#define PINA0   0
76
77#define DDRA    _SFR_IO8(0x01)
78#define DDA7    7
79#define DDA6    6
80#define DDA5    5
81#define DDA4    4
82#define DDA3    3
83#define DDA2    2
84#define DDA1    1
85#define DDA0    0
86
87#define PORTA   _SFR_IO8(0x02)
88#define PA7     7
89#define PA6     6
90#define PA5     5
91#define PA4     4
92#define PA3     3
93#define PA2     2
94#define PA1     1
95#define PA0     0
96
97#define PINB    _SFR_IO8(0x03)
98#define PINB7   7
99#define PINB6   6
100#define PINB5   5
101#define PINB4   4
102#define PINB3   3
103#define PINB2   2
104#define PINB1   1
105#define PINB0   0
106
107#define DDRB    _SFR_IO8(0x04)
108#define DDB7    7
109#define DDB6    6
110#define DDB5    5
111#define DDB4    4
112#define DDB3    3
113#define DDB2    2
114#define DDB1    1
115#define DDB0    0
116
117#define PORTB   _SFR_IO8(0x05)
118#define PB7     7
119#define PB6     6
120#define PB5     5
121#define PB4     4
122#define PB3     3
123#define PB2     2
124#define PB1     1
125#define PB0     0
126
127#define PINC    _SFR_IO8(0x06)
128#define PINC7   7
129#define PINC6   6
130#define PINC5   5
131#define PINC4   4
132#define PINC3   3
133#define PINC2   2
134#define PINC1   1
135#define PINC0   0
136
137#define DDRC    _SFR_IO8(0x07)
138#define DDC7    7
139#define DDC6    6
140#define DDC5    5
141#define DDC4    4
142#define DDC3    3
143#define DDC2    2
144#define DDC1    1
145#define DDC0    0
146
147#define PORTC   _SFR_IO8(0x08)
148#define PC7     7
149#define PC6     6
150#define PC5     5
151#define PC4     4
152#define PC3     3
153#define PC2     2
154#define PC1     1
155#define PC0     0
156
157#define PIND    _SFR_IO8(0x09)
158#define PIND7   7
159#define PIND6   6
160#define PIND5   5
161#define PIND4   4
162#define PIND3   3
163#define PIND2   2
164#define PIND1   1
165#define PIND0   0
166
167#define DDRD    _SFR_IO8(0x0A)
168#define DDD7    7
169#define DDD6    6
170#define DDD5    5
171#define DDD4    4
172#define DDD3    3
173#define DDD2    2
174#define DDD1    1
175#define DDD0    0
176
177#define PORTD   _SFR_IO8(0x0B)
178#define PD7     7
179#define PD6     6
180#define PD5     5
181#define PD4     4
182#define PD3     3
183#define PD2     2
184#define PD1     1
185#define PD0     0
186
187#define PINE    _SFR_IO8(0x0C)
188#define PINE7   7
189#define PINE6   6
190#define PINE5   5
191#define PINE4   4
192#define PINE3   3
193#define PINE2   2
194#define PINE1   1
195#define PINE0   0
196
197#define DDRE    _SFR_IO8(0x0D)
198#define DDE7    7
199#define DDE6    6
200#define DDE5    5
201#define DDE4    4
202#define DDE3    3
203#define DDE2    2
204#define DDE1    1
205#define DDE0    0
206
207#define PORTE   _SFR_IO8(0x0E)
208#define PE7     7
209#define PE6     6
210#define PE5     5
211#define PE4     4
212#define PE3     3
213#define PE2     2
214#define PE1     1
215#define PE0     0
216
217#define PINF    _SFR_IO8(0x0F)
218#define PINF7   7
219#define PINF6   6
220#define PINF5   5
221#define PINF4   4
222#define PINF3   3
223#define PINF2   2
224#define PINF1   1
225#define PINF0   0
226
227#define DDRF    _SFR_IO8(0x10)
228#define DDF7    7
229#define DDF6    6
230#define DDF5    5
231#define DDF4    4
232#define DDF3    3
233#define DDF2    2
234#define DDF1    1
235#define DDF0    0
236
237#define PORTF   _SFR_IO8(0x11)
238#define PF7     7
239#define PF6     6
240#define PF5     5
241#define PF4     4
242#define PF3     3
243#define PF2     2
244#define PF1     1
245#define PF0     0
246
247#define PING    _SFR_IO8(0x12)
248#define PING5   5
249#define PING4   4
250#define PING3   3
251#define PING2   2
252#define PING1   1
253#define PING0   0
254
255#define DDRG    _SFR_IO8(0x13)
256#define DDG4    4
257#define DDG3    3
258#define DDG2    2
259#define DDG1    1
260#define DDG0    0
261
262#define PORTG   _SFR_IO8(0x14)
263#define PG4     4
264#define PG3     3
265#define PG2     2
266#define PG1     1
267#define PG0     0
268
269#define TIFR0   _SFR_IO8(0x15)
270#define TOV0    0
271#define OCF0A   1
272
273#define TIFR1   _SFR_IO8(0x16)
274#define TOV1    0
275#define OCF1A   1
276#define OCF1B   2
277#define ICF1    5
278
279#define TIFR2   _SFR_IO8(0x17)
280#define TOV2    0
281#define OCF2A   1
282
283/* Reserved [0x18..0x1B] */
284
285#define EIFR    _SFR_IO8(0x1C)
286#define INTF0   0
287#define PCIF0   4
288#define PCIF1   5
289#define PCIF2   6
290#define PCIF3   7
291
292#define EIMSK   _SFR_IO8(0x1D)
293#define INT0    0
294#define PCIE0   4
295#define PCIE1   5
296#define PCIE2   6
297#define PCIE3   7
298
299#define GPIOR0  _SFR_IO8(0x1E)
300
301#define EECR    _SFR_IO8(0x1F)
302#define EERE    0
303#define EEWE    1
304#define EEMWE   2
305#define EERIE   3
306
307#define EEDR    _SFR_IO8(0X20)
308
309/* Combine EEARL and EEARH */
310#define EEAR    _SFR_IO16(0x21)
311#define EEARL   _SFR_IO8(0x21)
312#define EEARH   _SFR_IO8(0X22)
313
314/* 6-char sequence denoting where to find the EEPROM registers in memory space.
315   Adresses denoted in hex syntax with uppercase letters. Used by the EEPROM
316   subroutines.
317   First two letters:  EECR address.
318   Second two letters: EEDR address.
319   Last two letters:   EEAR address.  */
320#define __EEPROM_REG_LOCATIONS__ 1F2021
321
322#define GTCCR   _SFR_IO8(0x23)
323#define PSR10   0
324#define PSR2    1
325#define TSM     7
326
327#define TCCR0A  _SFR_IO8(0x24)
328#define CS00    0
329#define CS01    1
330#define CS02    2
331#define WGM01   3
332#define COM0A0  4
333#define COM0A1  5
334#define WGM00   6
335#define FOC0A   7
336
337/* Reserved [0x25] */
338
339#define TCNT0   _SFR_IO8(0X26)
340
341#define OCR0A   _SFR_IO8(0X27)
342
343/* Reserved [0x28..0x29] */
344
345#define GPIOR1  _SFR_IO8(0x2A)
346
347#define GPIOR2  _SFR_IO8(0x2B)
348
349#define SPCR    _SFR_IO8(0x2C)
350#define SPR0    0
351#define SPR1    1
352#define CPHA    2
353#define CPOL    3
354#define MSTR    4
355#define DORD    5
356#define SPE     6
357#define SPIE    7
358
359#define SPSR    _SFR_IO8(0x2D)
360#define SPI2X   0
361#define WCOL    6
362#define SPIF    7
363
364#define SPDR    _SFR_IO8(0X2E)
365
366/* Reserved [0x2F] */
367
368#define ACSR    _SFR_IO8(0x30)
369#define ACIS0   0
370#define ACIS1   1
371#define ACIC    2
372#define ACIE    3
373#define ACI     4
374#define ACO     5
375#define ACBG    6
376#define ACD     7
377
378#define OCDR    _SFR_IO8(0x31)
379#define OCDR0   0
380#define OCDR1   1
381#define OCDR2   2
382#define OCDR3   3
383#define OCDR4   4
384#define OCDR5   5
385#define OCDR6   6
386#define OCDR7   7
387#define IDRD    7
388
389/* Reserved [0x32] */
390
391#define SMCR    _SFR_IO8(0x33)
392#define SE      0
393#define SM0     1
394#define SM1     2
395#define SM2     3
396
397#define MCUSR   _SFR_IO8(0x34)
398#define PORF    0
399#define EXTRF   1
400#define BORF    2
401#define WDRF    3
402#define JTRF    4
403
404#define MCUCR   _SFR_IO8(0X35)
405#define IVCE    0
406#define IVSEL   1
407#define PUD     4
408#define JTD     7
409
410/* Reserved [0x36] */
411
412#define SPMCSR  _SFR_IO8(0x37)
413#define SPMEN   0
414#define PGERS   1
415#define PGWRT   2
416#define BLBSET  3
417#define RWWSRE  4
418#define RWWSB   6
419#define SPMIE   7
420
421/* Reserved [0x38..0x3C] */
422
423/* SP [0x3D..0x3E] */
424/* SREG [0x3F] */
425
426#define WDTCR   _SFR_MEM8(0x60)
427#define WDP0    0
428#define WDP1    1
429#define WDP2    2
430#define WDE     3
431#define WDCE    4
432
433#define CLKPR   _SFR_MEM8(0x61)
434#define CLKPS0  0
435#define CLKPS1  1
436#define CLKPS2  2
437#define CLKPS3  3
438#define CLKPCE  7
439
440/* Reserved [0x62..0x63] */
441
442#define PRR     _SFR_MEM8(0x64)
443#define PRADC       0
444#define PRUSART0    1
445#define PRSPI       2
446#define PRTIM1      3
447
448/* Reserved [0x65] */
449
450#define OSCCAL  _SFR_MEM8(0x66)
451
452/* Reserved [0x67..0x68] */
453
454#define EICRA   _SFR_MEM8(0x69)
455#define ISC00   0
456#define ISC01   1
457
458/* Reserved [0x6A] */
459
460#define PCMSK0  _SFR_MEM8(0x6B)
461#define PCINT0  0
462#define PCINT1  1
463#define PCINT2  2
464#define PCINT3  3
465#define PCINT4  4
466#define PCINT5  5
467#define PCINT6  6
468#define PCINT7  7
469
470#define PCMSK1  _SFR_MEM8(0x6C)
471#define PCINT8  0
472#define PCINT9  1
473#define PCINT10 2
474#define PCINT11 3
475#define PCINT12 4
476#define PCINT13 5
477#define PCINT14 6
478#define PCINT15 7
479
480#define PCMSK2  _SFR_MEM8(0x6D)
481#define PCINT16 0
482#define PCINT17 1
483#define PCINT18 2
484#define PCINT19 3
485#define PCINT20 4
486#define PCINT21 5
487#define PCINT22 6
488#define PCINT23 7
489
490#define TIMSK0  _SFR_MEM8(0x6E)
491#define TOIE0   0
492#define OCIE0A  1
493
494#define TIMSK1  _SFR_MEM8(0x6F)
495#define TOIE1   0
496#define OCIE1A  1
497#define OCIE1B  2
498#define ICIE1   5
499
500#define TIMSK2  _SFR_MEM8(0x70)
501#define TOIE2   0
502#define OCIE2A  1
503
504/* Reserved [0x71..0x72] */
505
506#define PCMSK3  _SFR_MEM8(0x73)
507#define PCINT24 0
508#define PCINT25 1
509#define PCINT26 2
510#define PCINT27 3
511#define PCINT28 4
512#define PCINT29 5
513#define PCINT30 6
514
515/* Reserved [0x74..0x77] */
516
517/* Combine ADCL and ADCH */
518#ifndef __ASSEMBLER__
519#define ADC     _SFR_MEM16(0x78)
520#endif
521#define ADCW    _SFR_MEM16(0x78)
522#define ADCL    _SFR_MEM8(0x78)
523#define ADCH    _SFR_MEM8(0x79)
524
525#define ADCSRA  _SFR_MEM8(0x7A)
526#define ADPS0   0
527#define ADPS1   1
528#define ADPS2   2
529#define ADIE    3
530#define ADIF    4
531#define ADATE   5
532#define ADSC    6
533#define ADEN    7
534
535#define ADCSRB  _SFR_MEM8(0x7B)
536#define ADTS0   0
537#define ADTS1   1
538#define ADTS2   2
539#define ACME    6
540
541#define ADMUX   _SFR_MEM8(0x7C)
542#define MUX0    0
543#define MUX1    1
544#define MUX2    2
545#define MUX3    3
546#define MUX4    4
547#define ADLAR   5
548#define REFS0   6
549#define REFS1   7
550
551/* Reserved [0x7D] */
552
553#define DIDR0   _SFR_MEM8(0x7E)
554#define ADC0D   0
555#define ADC1D   1
556#define ADC2D   2
557#define ADC3D   3
558#define ADC4D   4
559#define ADC5D   5
560#define ADC6D   6
561#define ADC7D   7
562
563#define DIDR1   _SFR_MEM8(0x7F)
564#define AIN0D   0
565#define AIN1D   1
566
567#define TCCR1A  _SFR_MEM8(0X80)
568#define WGM10   0
569#define WGM11   1
570#define COM1B0  4
571#define COM1B1  5
572#define COM1A0  6
573#define COM1A1  7
574
575#define TCCR1B  _SFR_MEM8(0X81)
576#define CS10    0
577#define CS11    1
578#define CS12    2
579#define WGM12   3
580#define WGM13   4
581#define ICES1   6
582#define ICNC1   7
583
584#define TCCR1C  _SFR_MEM8(0x82)
585#define FOC1B   6
586#define FOC1A   7
587
588/* Reserved [0x83] */
589
590/* Combine TCNT1L and TCNT1H */
591#define TCNT1   _SFR_MEM16(0x84)
592
593#define TCNT1L  _SFR_MEM8(0x84)
594#define TCNT1H  _SFR_MEM8(0x85)
595
596/* Combine ICR1L and ICR1H */
597#define ICR1    _SFR_MEM16(0x86)
598
599#define ICR1L   _SFR_MEM8(0x86)
600#define ICR1H   _SFR_MEM8(0x87)
601
602/* Combine OCR1AL and OCR1AH */
603#define OCR1A   _SFR_MEM16(0x88)
604
605#define OCR1AL  _SFR_MEM8(0x88)
606#define OCR1AH  _SFR_MEM8(0x89)
607
608/* Combine OCR1BL and OCR1BH */
609#define OCR1B   _SFR_MEM16(0x8A)
610
611#define OCR1BL  _SFR_MEM8(0x8A)
612#define OCR1BH  _SFR_MEM8(0x8B)
613
614/* Reserved [0x8C..0xAF] */
615
616#define TCCR2A  _SFR_MEM8(0xB0)
617#define CS20    0
618#define CS21    1
619#define CS22    2
620#define WGM21   3
621#define COM2A0  4
622#define COM2A1  5
623#define WGM20   6
624#define FOC2A   7
625
626/* Reserved [0xB1] */
627
628#define TCNT2   _SFR_MEM8(0xB2)
629
630#define OCR2A   _SFR_MEM8(0xB3)
631
632/* Reserved [0xB4..0xB5] */
633
634#define ASSR    _SFR_MEM8(0xB6)
635#define TCR2UB  0
636#define OCR2UB  1
637#define TCN2UB  2
638#define AS2     3
639#define EXCLK   4
640
641/* Reserved [0xB7] */
642
643#define USICR   _SFR_MEM8(0xB8)
644#define USITC   0
645#define USICLK  1
646#define USICS0  2
647#define USICS1  3
648#define USIWM0  4
649#define USIWM1  5
650#define USIOIE  6
651#define USISIE  7
652
653#define USISR   _SFR_MEM8(0xB9)
654#define USICNT0 0
655#define USICNT1 1
656#define USICNT2 2
657#define USICNT3 3
658#define USIDC   4
659#define USIPF   5
660#define USIOIF  6
661#define USISIF  7
662
663#define USIDR   _SFR_MEM8(0xBA)
664
665/* Reserved [0xBB..0xBF] */
666
667#define UCSR0A  _SFR_MEM8(0xC0)
668#define MPCM0   0
669#define U2X0    1
670#define UPE0    2
671#define DOR0    3
672#define FE0     4
673#define UDRE0   5
674#define TXC0    6
675#define RXC0    7
676
677#define UCSR0B  _SFR_MEM8(0XC1)
678#define TXB80   0
679#define RXB80   1
680#define UCSZ02  2
681#define TXEN0   3
682#define RXEN0   4
683#define UDRIE0  5
684#define TXCIE0  6
685#define RXCIE0  7
686
687#define UCSR0C  _SFR_MEM8(0xC2)
688#define UCPOL0  0
689#define UCSZ00  1
690#define UCSZ01  2
691#define USBS0   3
692#define UPM00   4
693#define UPM01   5
694#define UMSEL0  6
695
696/* Reserved [0xC3] */
697
698/* Combine UBRR0L and UBRR0H */
699#define UBRR0   _SFR_MEM16(0xC4)
700
701#define UBRR0L  _SFR_MEM8(0xC4)
702#define UBRR0H  _SFR_MEM8(0xC5)
703
704#define UDR0    _SFR_MEM8(0XC6)
705
706/* Reserved [0xC7..0xD7] */
707
708#define PINH    _SFR_MEM8(0xD8)
709#define PINH7   7
710#define PINH6   6
711#define PINH5   5
712#define PINH4   4
713#define PINH3   3
714#define PINH2   2
715#define PINH1   1
716#define PINH0   0
717
718#define DDRH    _SFR_MEM8(0xD9)
719#define DDH7    7
720#define DDH6    6
721#define DDH5    5
722#define DDH4    4
723#define DDH3    3
724#define DDH2    2
725#define DDH1    1
726#define DDH0    0
727
728#define PORTH   _SFR_MEM8(0xDA)
729#define PH7     7
730#define PH6     6
731#define PH5     5
732#define PH4     4
733#define PH3     3
734#define PH2     2
735#define PH1     1
736#define PH0     0
737
738#define PINJ    _SFR_MEM8(0xDB)
739#define PINJ6   6
740#define PINJ5   5
741#define PINJ4   4
742#define PINJ3   3
743#define PINJ2   2
744#define PINJ1   1
745#define PINJ0   0
746
747#define DDRJ    _SFR_MEM8(0xDC)
748#define DDJ6    6
749#define DDJ5    5
750#define DDJ4    4
751#define DDJ3    3
752#define DDJ2    2
753#define DDJ1    1
754#define DDJ0    0
755
756#define PORTJ   _SFR_MEM8(0xDD)
757#define PJ6     6
758#define PJ5     5
759#define PJ4     4
760#define PJ3     3
761#define PJ2     2
762#define PJ1     1
763#define PJ0     0
764
765/* Reserved [0xDE..0xFF] */
766
767
768/* Interrupt vectors */
769/* Vector 0 is the reset vector */
770/* External Interrupt Request 0 */
771#define INT0_vect                       _VECTOR(1)
772#define SIG_INTERRUPT0                  _VECTOR(1)
773
774/* Pin Change Interrupt Request 0 */
775#define PCINT0_vect                     _VECTOR(2)
776#define SIG_PIN_CHANGE0                 _VECTOR(2)
777
778/* Pin Change Interrupt Request 1 */
779#define PCINT1_vect                     _VECTOR(3)
780#define SIG_PIN_CHANGE1                 _VECTOR(3)
781
782/* Timer/Counter2 Compare Match */
783#define TIMER2_COMP_vect                _VECTOR(4)
784#define SIG_OUTPUT_COMPARE2             _VECTOR(4)
785
786/* Timer/Counter2 Overflow */
787#define TIMER2_OVF_vect                 _VECTOR(5)
788#define SIG_OVERFLOW2                   _VECTOR(5)
789
790/* Timer/Counter1 Capture Event */
791#define TIMER1_CAPT_vect                _VECTOR(6)
792#define SIG_INPUT_CAPTURE1              _VECTOR(6)
793
794/* Timer/Counter1 Compare Match A */
795#define TIMER1_COMPA_vect               _VECTOR(7)
796#define SIG_OUTPUT_COMPARE1A    _VECTOR(7)
797
798/* Timer/Counter Compare Match B */
799#define TIMER1_COMPB_vect               _VECTOR(8)
800#define SIG_OUTPUT_COMPARE1B    _VECTOR(8)
801
802/* Timer/Counter1 Overflow */
803#define TIMER1_OVF_vect                 _VECTOR(9)
804#define SIG_OVERFLOW1                   _VECTOR(9)
805
806/* Timer/Counter0 Compare Match */
807#define TIMER0_COMP_vect                _VECTOR(10)
808#define SIG_OUTPUT_COMPARE0             _VECTOR(10)
809
810/* Timer/Counter0 Overflow */
811#define TIMER0_OVF_vect                 _VECTOR(11)
812#define SIG_OVERFLOW0                   _VECTOR(11)
813
814/* SPI Serial Transfer Complete */
815#define SPI_STC_vect                    _VECTOR(12)
816#define SIG_SPI                             _VECTOR(12)
817
818/* USART, Rx Complete */
819#define USART_RX_vect                   _VECTOR(13)
820#define USART0_RX_vect                  _VECTOR(13)  /* Alias */
821#define SIG_UART_RECV                   _VECTOR(13)
822
823/* USART Data register Empty */
824#define USART_UDRE_vect                 _VECTOR(14)
825#define USART0_UDRE_vect                _VECTOR(14)  /* Alias */
826#define SIG_UART_DATA                   _VECTOR(14)
827
828/* USART0, Tx Complete */
829#define USART0_TX_vect                  _VECTOR(15)
830#define USART_TX_vect                   _VECTOR(15)  /* Alias */
831#define SIG_UART_TRANS                  _VECTOR(15)
832
833/* USI Start Condition */
834#define USI_START_vect                  _VECTOR(16)
835#define SIG_USI_START                   _VECTOR(16)
836
837/* USI Overflow */
838#define USI_OVERFLOW_vect               _VECTOR(17)
839#define SIG_USI_OVERFLOW                _VECTOR(17)
840
841/* Analog Comparator */
842#define ANALOG_COMP_vect                _VECTOR(18)
843#define SIG_COMPARATOR                  _VECTOR(18)
844
845/* ADC Conversion Complete */
846#define ADC_vect                        _VECTOR(19)
847#define SIG_ADC                         _VECTOR(19)
848
849/* EEPROM Ready */
850#define EE_READY_vect                   _VECTOR(20)
851#define SIG_EEPROM_READY                _VECTOR(20)
852
853/* Store Program Memory Read */
854#define SPM_READY_vect                  _VECTOR(21)
855#define SIG_SPM_READY                   _VECTOR(21)
856
857/* Pin Change Interrupt Request 2 */
858#define PCINT2_vect                     _VECTOR(23)
859#define SIG_PIN_CHANGE2                 _VECTOR(23)
860
861/* Pin Change Interrupt Request 3 */
862#define PCINT3_vect                     _VECTOR(24)
863#define SIG_PIN_CHANGE3                 _VECTOR(24)
864
865#define _VECTORS_SIZE 100
866
867
868/* Constants */
869#define SPM_PAGESIZE 256
870#define RAMEND       0x10FF
871#define XRAMEND      RAMEND
872#define E2END        0x7FF
873#define E2PAGESIZE   8
874#define FLASHEND     0xFFFF
875
876
877/* Fuses */
878
879#define FUSE_MEMORY_SIZE 3
880
881/* Low Fuse Byte */
882#define FUSE_CKSEL0      (unsigned char)~_BV(0)
883#define FUSE_CKSEL1      (unsigned char)~_BV(1)
884#define FUSE_CKSEL2      (unsigned char)~_BV(2)
885#define FUSE_CKSEL3      (unsigned char)~_BV(3)
886#define FUSE_SUT0        (unsigned char)~_BV(4)
887#define FUSE_SUT1        (unsigned char)~_BV(5)
888#define FUSE_CKOUT       (unsigned char)~_BV(6)
889#define FUSE_CKDIV8      (unsigned char)~_BV(7)
890#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
891
892/* High Fuse Byte */
893#define FUSE_BOOTRST     (unsigned char)~_BV(0)
894#define FUSE_BOOTSZ0     (unsigned char)~_BV(1)
895#define FUSE_BOOTSZ1     (unsigned char)~_BV(2)
896#define FUSE_EESAVE      (unsigned char)~_BV(3)
897#define FUSE_WDTON       (unsigned char)~_BV(4)
898#define FUSE_SPIEN       (unsigned char)~_BV(5)
899#define FUSE_JTAGEN      (unsigned char)~_BV(6)
900#define FUSE_OCDEN       (unsigned char)~_BV(7)
901#define HFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1 & FUSE_SPIEN & FUSE_JTAGEN)
902
903/* Extended Fuse Byte */
904#define FUSE_RSTDISBL    (unsigned char)~_BV(0)
905#define FUSE_BODLEVEL0   (unsigned char)~_BV(1)
906#define FUSE_BODLEVEL1   (unsigned char)~_BV(2)
907#define EFUSE_DEFAULT (0xFF)
908
909
910/* Lock Bits */
911#define __LOCK_BITS_EXIST
912#define __BOOT_LOCK_BITS_0_EXIST
913#define __BOOT_LOCK_BITS_1_EXIST
914
915
916/* Signature */
917#define SIGNATURE_0 0x1E
918#define SIGNATURE_1 0x96
919#define SIGNATURE_2 0x06
920
921/** @} */
922
923#endif /* _AVR_IOM6450_H_ */
Note: See TracBrowser for help on using the repository browser.