source: rtems/cpukit/score/cpu/avr/avr/io90pwm2b.h @ 04a62dce

4.104.11
Last change on this file since 04a62dce was 04a62dce, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 6, 2009 at 2:52:07 PM

2009-08-05 Josh Switnicki <josh.switnicki@…>

  • Makefile.am: added AVR specific Header files to score/cpu/avr/avr. These are from avr-libc 1.6 and assumed to exist by AVR applications.
  • preinstall.am: Regenerated.
  • Property mode set to 100644
File size: 26.9 KB
RevLine 
[04a62dce]1/* Copyright (c) 2007 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/* $Id$ */
33
34/* avr/io90pwm2b.h - definitions for AT90PWM2B */
35
36/* This file should only be included from <avr/io.h>, never directly. */
37
38#ifndef _AVR_IO_H_
39#  error "Include <avr/io.h> instead of this file."
40#endif
41
42#ifndef _AVR_IOXXX_H_
43#  define _AVR_IOXXX_H_ "io90pwm2b.h"
44#else
45#  error "Attempt to include more than one <avr/ioXXX.h> file."
46#endif
47
48
49#ifndef _AVR_IO90PWM2B_H_
50#define _AVR_IO90PWM2B_H_ 1
51
52/* Registers and associated bit numbers */
53
54#define PINB _SFR_IO8(0x03)
55#define PINB0 0
56#define PINB1 1
57#define PINB2 2
58#define PINB3 3
59#define PINB4 4
60#define PINB5 5
61#define PINB6 6
62#define PINB7 7
63
64#define DDRB _SFR_IO8(0x04)
65#define DDB0 0
66#define DDB1 1
67#define DDB2 2
68#define DDB3 3
69#define DDB4 4
70#define DDB5 5
71#define DDB6 6
72#define DDB7 7
73
74#define PORTB _SFR_IO8(0x05)
75#define PORTB0 0
76#define PORTB1 1
77#define PORTB2 2
78#define PORTB3 3
79#define PORTB4 4
80#define PORTB5 5
81#define PORTB6 6
82#define PORTB7 7
83     
84#define PINC _SFR_IO8(0x06)
85#define PINC0 0
86#define PINC1 1
87#define PINC2 2
88#define PINC3 3
89#define PINC4 4
90#define PINC5 5
91#define PINC6 6
92#define PINC7 7
93
94#define DDRC _SFR_IO8(0x07)
95#define DDC0 0
96#define DDC1 1
97#define DDC2 2
98#define DDC3 3
99#define DDC4 4
100#define DDC5 5
101#define DDC6 6
102#define DDC7 7
103
104#define PORTC _SFR_IO8(0x08)
105#define PORTC0 0
106#define PORTC1 1
107#define PORTC2 2
108#define PORTC3 3
109#define PORTC4 4
110#define PORTC5 5
111#define PORTC6 6
112#define PORTC7 7
113
114#define PIND _SFR_IO8(0x09)
115#define PIND0 0
116#define PIND1 1
117#define PIND2 2
118#define PIND3 3
119#define PIND4 4
120#define PIND5 5
121#define PIND6 6
122#define PIND7 7
123
124#define DDRD _SFR_IO8(0x0A)
125#define DDD0 0
126#define DDD1 1
127#define DDD2 2
128#define DDD3 3
129#define DDD4 4
130#define DDD5 5
131#define DDD6 6
132#define DDD7 7
133
134#define PORTD _SFR_IO8(0x0B)
135#define PORTD0 0
136#define PORTD1 1
137#define PORTD2 2
138#define PORTD3 3
139#define PORTD4 4
140#define PORTD5 5
141#define PORTD6 6
142#define PORTD7 7
143
144#define PINE _SFR_IO8(0x0C)
145#define PINE0 0
146#define PINE1 1
147#define PINE2 2
148
149#define DDRE _SFR_IO8(0x0D)
150#define DDE0 0
151#define DDE1 1
152#define DDE2 2
153
154#define PORTE _SFR_IO8(0x0E)
155#define PORTE0 0
156#define PORTE1 1
157#define PORTE2 2
158
159#define TIFR0 _SFR_IO8(0x15)
160#define TOV0 0
161#define OCF0A 1
162#define OCF0B 2
163
164#define TIFR1 _SFR_IO8(0x16)
165#define TOV1 0
166#define OCF1A 1
167#define OCF1B 2
168#define ICF1 5
169
170#define GPIOR1 _SFR_IO8(0x19)
171#define GPIOR10 0
172#define GPIOR11 1
173#define GPIOR12 2
174#define GPIOR13 3
175#define GPIOR14 4
176#define GPIOR15 5
177#define GPIOR16 6
178#define GPIOR17 7
179
180#define GPIOR2 _SFR_IO8(0x1A)
181#define GPIOR20 0
182#define GPIOR21 1
183#define GPIOR22 2
184#define GPIOR23 3
185#define GPIOR24 4
186#define GPIOR25 5
187#define GPIOR26 6
188#define GPIOR27 7
189
190#define GPIOR3 _SFR_IO8(0x1B)
191#define GPIOR30 0
192#define GPIOR31 1
193#define GPIOR32 2
194#define GPIOR33 3
195#define GPIOR34 4
196#define GPIOR35 5
197#define GPIOR36 6
198#define GPIOR37 7
199
200#define EIFR _SFR_IO8(0x1C)
201#define INTF0 0
202#define INTF1 1
203#define INTF2 2
204#define INTF3 3
205
206#define EIMSK _SFR_IO8(0x1D)
207#define INT0 0
208#define INT1 1
209#define INT2 2
210#define INT3 3
211
212#define GPIOR0 _SFR_IO8(0x1E)
213#define GPIOR00 0
214#define GPIOR01 1
215#define GPIOR02 2
216#define GPIOR03 3
217#define GPIOR04 4
218#define GPIOR05 5
219#define GPIOR06 6
220#define GPIOR07 7
221
222#define EECR _SFR_IO8(0x1F)
223#define EERE 0
224#define EEWE 1
225#define EEMWE 2
226#define EERIE 3
227#define EEPM0 4
228#define EEPM1 5
229
230#define EEDR _SFR_IO8(0x20)
231#define EEDR0 0
232#define EEDR1 1
233#define EEDR2 2
234#define EEDR3 3
235#define EEDR4 4
236#define EEDR5 5
237#define EEDR6 6
238#define EEDR7 7
239
240#define EEAR _SFR_IO16(0x21)
241
242#define EEARL _SFR_IO8(0x21)
243#define EEARL0 0
244#define EEARL1 1
245#define EEARL2 2
246#define EEARL3 3
247#define EEARL4 4
248#define EEARL5 5
249#define EEARL6 6
250#define EEARL7 7
251
252#define EEARH _SFR_IO8(0x22)
253#define EEAR8 0
254#define EEAR9 1
255#define EEAR10 2
256#define EEAR11 3
257
258#define GTCCR _SFR_IO8(0x23)
259#define PSR10 0
260#define PSRSYNC 0
261#define ICPSEL1 2
262#define TSM 3
263
264#define TCCR0A _SFR_IO8(0x24)
265#define WGM00 0
266#define WGM01 1
267#define COM0B0 4
268#define COM0B1 5
269#define COM0A0 6
270#define COM0A1 7
271
272#define TCCR0B _SFR_IO8(0x25)
273#define CS00 0
274#define CS01 1
275#define CS02 2
276#define WGM02 3
277#define FOC0B 6
278#define FOC0A 7
279
280#define TCNT0 _SFR_IO8(0x26)
281#define TCNT0_0 0
282#define TCNT0_1 1
283#define TCNT0_2 2
284#define TCNT0_3 3
285#define TCNT0_4 4
286#define TCNT0_5 5
287#define TCNT0_6 6
288#define TCNT0_7 7
289
290#define OCR0A _SFR_IO8(0x27)
291#define OCR0A_0 0
292#define OCR0A_1 1
293#define OCR0A_2 2
294#define OCR0A_3 3
295#define OCR0A_4 4
296#define OCR0A_5 5
297#define OCR0A_6 6
298#define OCR0A_7 7
299
300#define OCR0B _SFR_IO8(0x28)
301#define OCR0B_0 0
302#define OCR0B_1 1
303#define OCR0B_2 2
304#define OCR0B_3 3
305#define OCR0B_4 4
306#define OCR0B_5 5
307#define OCR0B_6 6
308#define OCR0B_7 7
309
310#define OCR0_0 0    /* Deprecated */
311#define OCR0_1 1    /* Deprecated */
312#define OCR0_2 2    /* Deprecated */
313#define OCR0_3 3    /* Deprecated */
314#define OCR0_4 4    /* Deprecated */
315#define OCR0_5 5    /* Deprecated */
316#define OCR0_6 6    /* Deprecated */
317#define OCR0_7 7    /* Deprecated */
318
319#define PLLCSR _SFR_IO8(0x29)
320#define PLOCK 0
321#define PLLE 1
322#define PLLF 2
323
324#define SPCR _SFR_IO8(0x2C)
325#define SPR0 0
326#define SPR1 1
327#define CPHA 2
328#define CPOL 3
329#define MSTR 4
330#define DORD 5
331#define SPE 6
332#define SPIE 7
333
334#define SPSR _SFR_IO8(0x2D)
335#define SPI2X 0
336#define WCOL 6
337#define SPIF 7
338
339#define SPDR _SFR_IO8(0x2E)
340#define SPDR0 0
341#define SPDR1 1
342#define SPDR2 2
343#define SPDR3 3
344#define SPDR4 4
345#define SPDR5 5
346#define SPDR6 6
347#define SPDR7 7
348
349#define ACSR _SFR_IO8(0x30)
350#define AC0O 0
351#define AC1O 1
352#define AC2O 2
353#define AC0IF 4
354#define AC1IF 5
355#define AC2IF 6
356#define ACCKDIV 7
357
358#define SMCR _SFR_IO8(0x33)
359#define SE 0
360#define SM0 1
361#define SM1 2
362#define SM2 3
363
364#define MCUSR _SFR_IO8(0x34)
365#define PORF 0
366#define EXTRF 1
367#define BORF 2
368#define WDRF 3
369
370#define MCUCR _SFR_IO8(0x35)
371#define IVCE 0
372#define IVSEL 1
373#define PUD 4
374#define SPIPS 7
375
376#define SPMCSR _SFR_IO8(0x37)
377#define SPMEN 0
378#define PGERS 1
379#define PGWRT 2
380#define BLBSET 3
381#define RWWSRE 4
382#define RWWSB 6
383#define SPMIE 7
384
385#define WDTCSR _SFR_MEM8(0x60)
386#define WDP0 0
387#define WDP1 1
388#define WDP2 2
389#define WDE3 3
390#define WDCE 4
391#define WDP3 5
392#define WDIE 6
393#define WDIF 7
394
395#define CLKPR _SFR_MEM8(0x61)
396#define CLKPS0 0
397#define CLKPS1 1
398#define CLKPS2 2
399#define CLKPS3 3
400#define CLKPCE 7
401
402#define PRR _SFR_MEM8(0x64)
403#define PRADC 0
404#define PRUSART0 1
405#define PRSPI 2
406#define PRTIM0 3
407#define PRTIM1 4
408#define PRPSC0 5
409#define PRPSC1 6
410#define PRPSC2 7
411
412#define OSCCAL _SFR_MEM8(0x66)
413#define CAL0 0
414#define CAL1 1
415#define CAL2 2
416#define CAL3 3
417#define CAL4 4
418#define CAL5 5
419#define CAL6 6
420
421#define EICRA _SFR_MEM8(0x69)
422#define ISC00 0
423#define ISC01 1
424#define ISC10 2
425#define ISC11 3
426#define ISC20 4
427#define ISC21 5
428#define ISC30 6
429#define ISC31 7
430
431#define TIMSK0 _SFR_MEM8(0x6E)
432#define TOIE0 0
433#define OCIE0A 1
434#define OCIE0B 2
435
436#define TIMSK1 _SFR_MEM8(0x6F)
437#define TOIE1 0
438#define OCIE1A 1
439#define OCIE1B 2
440#define ICIE1 5
441
442#define AMP0CSR _SFR_MEM8(0x76)
443#define AMP0TS0 0
444#define AMP0TS1 1
445#define AMP0G0 4
446#define AMP0G1 5
447#define AMP0IS 6
448#define AMP0EN 7
449
450#define AMP1CSR _SFR_MEM8(0x77)
451#define AMP1TS0 0
452#define AMP1TS1 1
453#define AMP1G0 4
454#define AMP1G1 5
455#define AMP1IS 6
456#define AMP1EN 7
457
458#ifndef __ASSEMBLER__
459#define ADC     _SFR_MEM16(0x78)
460#endif
461#define ADCW    _SFR_MEM16(0x78)
462
463#define ADCL _SFR_MEM8(0x78)
464#define ADCL0 0
465#define ADCL1 1
466#define ADCL2 2
467#define ADCL3 3
468#define ADCL4 4
469#define ADCL5 5
470#define ADCL6 6
471#define ADCL7 7
472
473#define ADCH _SFR_MEM8(0x79)
474#define ADCH0 0
475#define ADCH1 1
476#define ADCH2 2
477#define ADCH3 3
478#define ADCH4 4
479#define ADCH5 5
480#define ADCH6 6
481#define ADCH7 7
482
483#define ADCSRA _SFR_MEM8(0x7A)
484#define ADPS0 0
485#define ADPS1 1
486#define ADPS2 2
487#define ADIE 3
488#define ADIF 4
489#define ADATE 5
490#define ADSC 6
491#define ADEN 7
492
493#define ADCSRB _SFR_MEM8(0x7B)
494#define ADTS0 0
495#define ADTS1 1
496#define ADTS2 2
497#define ADTS3 3
498#define ADASCR 4
499#define ADHSM 7
500
501#define ADMUX _SFR_MEM8(0x7C)
502#define MUX0 0
503#define MUX1 1
504#define MUX2 2
505#define MUX3 3
506#define ADLAR 5
507#define REFS0 6
508#define REFS1 7
509
510#define DIDR0 _SFR_MEM8(0x7E)
511#define ADC0D 0
512#define ADC1D 1
513#define ADC2D 2
514#define ADC3D 3
515#define ADC4D 4
516#define ADC5D 5
517#define ADC6D 6
518#define ADC7D 7
519
520#define DIDR1 _SFR_MEM8(0x7F)
521#define ADC8D 0
522#define ADC9D 1
523#define ADC10D 2
524#define AMP0ND 3
525#define AMP0PD 4
526#define ACMP0D 5
527
528#define TCCR1A _SFR_MEM8(0x80)
529#define WGM10 0
530#define WGM11 1
531#define COM1B0 4
532#define COM1B1 5
533#define COM1A0 6
534#define COM1A1 7
535
536#define TCCR1B _SFR_MEM8(0x81)
537#define CS10 0
538#define CS11 1
539#define CS12 2
540#define WGM12 3
541#define WGM13 4
542#define ICES1 6
543#define ICNC1 7
544
545#define TCCR1C _SFR_MEM8(0x82)
546#define FOC1B 6
547#define FOC1A 7
548
549#define TCNT1 _SFR_MEM16(0x84)
550
551#define TCNT1L _SFR_MEM8(0x84)
552#define TCNT1L0 0
553#define TCNT1L1 1
554#define TCNT1L2 2
555#define TCNT1L3 3
556#define TCNT1L4 4
557#define TCNT1L5 5
558#define TCNT1L6 6
559#define TCNT1L7 7
560
561#define TCNT1H _SFR_MEM8(0x85)
562#define TCNT1H0 0
563#define TCNT1H1 1
564#define TCNT1H2 2
565#define TCNT1H3 3
566#define TCNT1H4 4
567#define TCNT1H5 5
568#define TCNT1H6 6
569#define TCNT1H7 7
570
571#define ICR1 _SFR_MEM16(0x86)
572
573#define ICR1L _SFR_MEM8(0x86)
574#define ICR1L0 0
575#define ICR1L1 1
576#define ICR1L2 2
577#define ICR1L3 3
578#define ICR1L4 4
579#define ICR1L5 5
580#define ICR1L6 6
581#define ICR1L7 7
582
583#define ICR1H _SFR_MEM8(0x87)
584#define ICR1H0 0
585#define ICR1H1 1
586#define ICR1H2 2
587#define ICR1H3 3
588#define ICR1H4 4
589#define ICR1H5 5
590#define ICR1H6 6
591#define ICR1H7 7
592
593#define OCR1A _SFR_MEM16(0x88)
594
595#define OCR1AL _SFR_MEM8(0x88)
596#define OCR1AL0 0
597#define OCR1AL1 1
598#define OCR1AL2 2
599#define OCR1AL3 3
600#define OCR1AL4 4
601#define OCR1AL5 5
602#define OCR1AL6 6
603#define OCR1AL7 7
604
605#define OCR1AH _SFR_MEM8(0x89)
606#define OCR1AH0 0
607#define OCR1AH1 1
608#define OCR1AH2 2
609#define OCR1AH3 3
610#define OCR1AH4 4
611#define OCR1AH5 5
612#define OCR1AH6 6
613#define OCR1AH7 7
614
615#define OCR1B _SFR_MEM16(0x8A)
616
617#define OCR1BL _SFR_MEM8(0x8A)
618#define OCR1BL0 0
619#define OCR1BL1 1
620#define OCR1BL2 2
621#define OCR1BL3 3
622#define OCR1BL4 4
623#define OCR1BL5 5
624#define OCR1BL6 6
625#define OCR1BL7 7
626
627#define OCR1BH _SFR_MEM8(0x8B)
628#define OCR1BH0 0
629#define OCR1BH1 1
630#define OCR1BH2 2
631#define OCR1BH3 3
632#define OCR1BH4 4
633#define OCR1BH5 5
634#define OCR1BH6 6
635#define OCR1BH7 7
636
637#define PIFR0 _SFR_MEM8(0xA0)
638#define PEOP0 0
639#define PRN00 1
640#define PRN01 2
641#define PEV0A 3
642#define PEV0B 4
643#define PSEI0 5
644#define POAC0A 6
645#define POAC0B 7
646
647#define PIM0 _SFR_MEM8(0xA1)
648#define PEOPE0 0
649#define PEVE0A 3
650#define PEVE0B 4
651#define PSEIE0 5
652
653#define PIFR1 _SFR_MEM8(0xA2)
654#define PEOP1 0
655#define PRN10 1
656#define PRN11 2
657#define PEV1A 3
658#define PEV1B 4
659#define PSEI1 5
660#define POAC1A 6
661#define POAC1B 7
662
663#define PIM1 _SFR_MEM8(0xA3)
664#define PEOPE1 0
665#define PEVE1A 3
666#define PEVE1B 4
667#define PSEIE1 5
668
669#define PIFR2 _SFR_MEM8(0xA4)
670#define PEOP2 0
671#define PRN20 1
672#define PRN21 2
673#define PEV2A 3
674#define PEV2B 4
675#define PSEI2 5
676#define POAC2A 6
677#define POAC2B 7
678
679#define PIM2 _SFR_MEM8(0xA5)
680#define PEOPE2 0
681#define PEVE2A 3
682#define PEVE2B 4
683#define PSEIE2 5
684
685#define DACON _SFR_MEM8(0xAA)
686#define DAEN 0
687#define DAOE 1
688#define DALA 2
689#define DATS0 4
690#define DATS1 5
691#define DATS2 6
692#define DAATE 7
693
694#define DAC _SFR_MEM16(0xAB)
695
696#define DACL _SFR_MEM8(0xAB)
697#define DACL0 0
698#define DACL1 1
699#define DACL2 2
700#define DACL3 3
701#define DACL4 4
702#define DACL5 5
703#define DACL6 6
704#define DACL7 7
705
706#define DACH _SFR_MEM8(0xAC)
707#define DACH0 0
708#define DACH1 1
709#define DACH2 2
710#define DACH3 3
711#define DACH4 4
712#define DACH5 5
713#define DACH6 6
714#define DACH7 7
715
716#define AC0CON _SFR_MEM8(0xAD)
717#define AC0M0 0
718#define AC0M1 1
719#define AC0M2 2
720#define AC0IS0 4
721#define AC0IS1 5
722#define AC0IE 6
723#define AC0EN 7
724
725#define AC1CON _SFR_MEM8(0xAE)
726#define AC1M0 0
727#define AC1M1 1
728#define AC1M2 2
729#define AC1ICE 3
730#define AC1IS0 4
731#define AC1IS1 5
732#define AC1IE 6
733#define AC1EN 7
734
735#define AC2CON _SFR_MEM8(0xAF)
736#define AC2M0 0
737#define AC2M1 1
738#define AC2M2 2
739#define AC2IS0 4
740#define AC2IS1 5
741#define AC2IE 6
742#define AC2EN 7
743
744#define UCSRA _SFR_MEM8(0xC0)
745#define MPCM 0
746#define U2X 1
747#define UPE 2
748#define DOR 3
749#define FE 4
750#define UDRE 5
751#define TXC 6
752#define RXC 7
753
754#define UCSRB _SFR_MEM8(0xC1)
755#define TXB8 0
756#define RXB8 1
757#define UCSZ2 2
758#define TXEN 3
759#define RXEN 4
760#define UDRIE 5
761#define TXCIE 6
762#define RXCIE 7
763
764#define UCSRC _SFR_MEM8(0xC2)
765#define UCPOL 0
766#define UCSZ0 1
767#define UCSZ1 2
768#define USBS 3
769#define UPM0 4
770#define UPM1 5
771#define UMSEL0 6
772
773#define UBRR _SFR_MEM16(0xC4)
774
775#define UBRRL _SFR_MEM8(0xC4)
776#define UBRR0 0
777#define UBRR1 1
778#define UBRR2 2
779#define UBRR3 3
780#define UBRR4 4
781#define UBRR5 5
782#define UBRR6 6
783#define UBRR7 7
784
785#define UBRRH _SFR_MEM8(0xC5)
786#define UBRR8 0
787#define UBRR9 1
788#define UBRR10 2
789#define UBRR11 3
790
791#define UDR _SFR_MEM8(0xC6)
792#define UDR0 0
793#define UDR1 1
794#define UDR2 2
795#define UDR3 3
796#define UDR4 4
797#define UDR5 5
798#define UDR6 6
799#define UDR7 7
800
801#define EUCSRA _SFR_MEM8(0xC8)
802#define URxS0 0
803#define URxS1 1
804#define URxS2 2
805#define URxS3 3
806#define UTxS0 4
807#define UTxS1 5
808#define UTxS2 6
809#define UTxS3 7
810
811#define EUCSRB _SFR_MEM8(0xC9)
812#define BODR 0
813#define EMCH 1
814#define EUSBS 3
815#define EUSART 4
816
817#define EUCSRC _SFR_MEM8(0xCA)
818#define STP0 0
819#define STP1 1
820#define F1617 2
821#define FEM 3
822
823#define MUBRR _SFR_MEM16(0xCC)
824
825#define MUBRRL _SFR_MEM8(0xCC)
826#define MUBRR0 0
827#define MUBRR1 1
828#define MUBRR2 2
829#define MUBRR3 3
830#define MUBRR4 4
831#define MUBRR5 5
832#define MUBRR6 6
833#define MUBRR7 7
834
835#define MUBRRH _SFR_MEM8(0xCD)
836#define MUBRR8 0
837#define MUBRR9 1
838#define MUBRR10 2
839#define MUBRR11 3
840#define MUBRR12 4
841#define MUBRR13 5
842#define MUBRR14 6
843#define MUBRR15 7
844
845#define EUDR _SFR_MEM8(0xCE)
846#define EUDR0 0
847#define EUDR1 1
848#define EUDR2 2
849#define EUDR3 3
850#define EUDR4 4
851#define EUDR5 5
852#define EUDR6 6
853#define EUDR7 7
854
855#define PSOC0 _SFR_MEM8(0xD0)
856#define POEN0A 0
857#define POEN0B 2
858#define PSYNC00 4
859#define PSYNC01 5
860
861#define OCR0SA _SFR_MEM16(0xD2)
862
863#define OCR0SAL _SFR_MEM8(0xD2)
864#define OCR0SA_0 0
865#define OCR0SA_1 1
866#define OCR0SA_2 2
867#define OCR0SA_3 3
868#define OCR0SA_4 4
869#define OCR0SA_5 5
870#define OCR0SA_6 6
871#define OCR0SA_7 7
872
873#define OCR0SAH _SFR_MEM8(0xD3)
874#define OCR0SA_8 0
875#define OCR0SA_9 1
876#define OCR0SA_00 2
877#define OCR0SA_01 3
878
879#define OCR0RA _SFR_MEM16(0xD4)
880
881#define OCR0RAL _SFR_MEM8(0xD4)
882#define OCR0RA_0 0
883#define OCR0RA_1 1
884#define OCR0RA_2 2
885#define OCR0RA_3 3
886#define OCR0RA_4 4
887#define OCR0RA_5 5
888#define OCR0RA_6 6
889#define OCR0RA_7 7
890
891#define OCR0RAH _SFR_MEM8(0xD5)
892#define OCR0RA_8 0
893#define OCR0RA_9 1
894#define OCR0RA_00 2
895#define OCR0RA_01 3
896
897#define OCR0SB _SFR_MEM16(0xD6)
898
899#define OCR0SBL _SFR_MEM8(0xD6)
900#define OCR0SB_0 0
901#define OCR0SB_1 1
902#define OCR0SB_2 2
903#define OCR0SB_3 3
904#define OCR0SB_4 4
905#define OCR0SB_5 5
906#define OCR0SB_6 6
907#define OCR0SB_7 7
908
909#define OCR0SBH _SFR_MEM8(0xD7)
910#define OCR0SB_8 0
911#define OCR0SB_9 1
912#define OCR0SB_00 2
913#define OCR0SB_01 3
914
915#define OCR0RB _SFR_MEM16(0xD8)
916
917#define OCR0RBL _SFR_MEM8(0xD8)
918#define OCR0RB_0 0
919#define OCR0RB_1 1
920#define OCR0RB_2 2
921#define OCR0RB_3 3
922#define OCR0RB_4 4
923#define OCR0RB_5 5
924#define OCR0RB_6 6
925#define OCR0RB_7 7
926
927#define OCR0RBH _SFR_MEM8(0xD9)
928#define OCR0RB_8 0
929#define OCR0RB_9 1
930#define OCR0RB_00 2
931#define OCR0RB_01 3
932#define OCR0RB_02 4
933#define OCR0RB_03 5
934#define OCR0RB_04 6
935#define OCR0RB_05 7
936
937#define PCNF0 _SFR_MEM8(0xDA)
938#define PCLKSEL0 1
939#define POP0 2
940#define PMODE00 3
941#define PMODE01 4
942#define PLOCK0 5
943#define PALOCK0 6
944#define PFIFTY0 7
945
946#define PCTL0 _SFR_MEM8(0xDB)
947#define PRUN0 0
948#define PCCYC0 1
949#define PARUN0 2
950#define PAOC0A 3
951#define PAOC0B 4
952#define PBFM0 5
953#define PPRE00 6
954#define PPRE01 7
955
956#define PFRC0A _SFR_MEM8(0xDC)
957#define PRFM0A0 0
958#define PRFM0A1 1
959#define PRFM0A2 2
960#define PRFM0A3 3
961#define PFLTE0A 4
962#define PELEV0A 5
963#define PISEL0A 6
964#define PCAE0A 7
965
966#define PFRC0B _SFR_MEM8(0xDD)
967#define PRFM0B0 0
968#define PRFM0B1 1
969#define PRFM0B2 2
970#define PRFM0B3 3
971#define PFLTE0B 4
972#define PELEV0B 5
973#define PISEL0B 6
974#define PCAE0B 7
975
976#define PICR0 _SFR_MEM16(0xDE)
977
978#define PICR0L _SFR_MEM8(0xDE)
979#define PICR0_0 0
980#define PICR0_1 1
981#define PICR0_2 2
982#define PICR0_3 3
983#define PICR0_4 4
984#define PICR0_5 5
985#define PICR0_6 6
986#define PICR0_7 7
987
988#define PICR0H _SFR_MEM8(0xDF)
989#define PICR0_8 0
990#define PICR0_9 1
991#define PICR0_10 2
992#define PICR0_11 3
993#define PCST0 7
994
995#define PSOC1 _SFR_MEM8(0xE0)
996#define POEN1A 0
997#define POEN1B 2
998#define PSYNC1_0 4
999#define PSYNC1_1 5
1000
1001#define OCR1SA _SFR_MEM16(0xE2)
1002
1003#define OCR1SAL _SFR_MEM8(0xE2)
1004#define OCR1SA_0 0
1005#define OCR1SA_1 1
1006#define OCR1SA_2 2
1007#define OCR1SA_3 3
1008#define OCR1SA_4 4
1009#define OCR1SA_5 5
1010#define OCR1SA_6 6
1011#define OCR1SA_7 7
1012
1013#define OCR1SAH _SFR_MEM8(0xE3)
1014#define OCR1SA_8 0
1015#define OCR1SA_9 1
1016#define OCR1SA_10 2
1017#define OCR1SA_11 3
1018
1019#define OCR1RA _SFR_MEM16(0xE4)
1020
1021#define OCR1RAL _SFR_MEM8(0xE4)
1022#define OCR1RA_0 0
1023#define OCR1RA_1 1
1024#define OCR1RA_2 2
1025#define OCR1RA_3 3
1026#define OCR1RA_4 4
1027#define OCR1RA_5 5
1028#define OCR1RA_6 6
1029#define OCR1RA_7 7
1030
1031#define OCR1RAH _SFR_MEM8(0xE5)
1032#define OCR1RA_8 0
1033#define OCR1RA_9 1
1034#define OCR1RA_10 2
1035#define OCR1RA_11 3
1036
1037#define OCR1SB _SFR_MEM16(0xE6)
1038
1039#define OCR1SBL _SFR_MEM8(0xE6)
1040#define OCR1SB_0 0
1041#define OCR1SB_1 1
1042#define OCR1SB_2 2
1043#define OCR1SB_3 3
1044#define OCR1SB_4 4
1045#define OCR1SB_5 5
1046#define OCR1SB_6 6
1047#define OCR1SB_7 7
1048
1049#define OCR1SBH _SFR_MEM8(0xE7)
1050#define OCR1SB_8 0
1051#define OCR1SB_9 1
1052#define OCR1SB_10 2
1053#define OCR1SB_11 3
1054
1055#define OCR1RB _SFR_MEM16(0xE8)
1056
1057#define OCR1RBL _SFR_MEM8(0xE8)
1058#define OCR1RB_0 0
1059#define OCR1RB_1 1
1060#define OCR1RB_2 2
1061#define OCR1RB_3 3
1062#define OCR1RB_4 4
1063#define OCR1RB_5 5
1064#define OCR1RB_6 6
1065#define OCR1RB_7 7
1066
1067#define OCR1RBH _SFR_MEM8(0xE9)
1068#define OCR1RB_8 0
1069#define OCR1RB_9 1
1070#define OCR1RB_10 2
1071#define OCR1RB_11 3
1072#define OCR1RB_12 4
1073#define OCR1RB_13 5
1074#define OCR1RB_14 6
1075#define OCR1RB_15 7
1076
1077#define PCNF1 _SFR_MEM8(0xEA)
1078#define PCLKSEL1 1
1079#define POP1 2
1080#define PMODE10 3
1081#define PMODE11 4
1082#define PLOCK1 5
1083#define PALOCK1 6
1084#define PFIFTY1 7
1085
1086#define PCTL1 _SFR_MEM8(0xEB)
1087#define PRUN1 0
1088#define PCCYC1 1
1089#define PARUN1 2
1090#define PAOC1A 3
1091#define PAOC1B 4
1092#define PBFM1 5
1093#define PPRE10 6
1094#define PPRE11 7
1095
1096#define PFRC1A _SFR_MEM8(0xEC)
1097#define PRFM1A0 0
1098#define PRFM1A1 1
1099#define PRFM1A2 2
1100#define PRFM1A3 3
1101#define PFLTE1A 4
1102#define PELEV1A 5
1103#define PISEL1A 6
1104#define PCAE1A 7
1105
1106#define PFRC1B _SFR_MEM8(0xED)
1107#define PRFM1B0 0
1108#define PRFM1B1 1
1109#define PRFM1B2 2
1110#define PRFM1B3 3
1111#define PFLTE1B 4
1112#define PELEV1B 5
1113#define PISEL1B 6
1114#define PCAE1B 7
1115
1116#define PICR1 _SFR_MEM16(0xEE)
1117
1118#define PICR1L _SFR_MEM8(0xEE)
1119#define PICR1_0 0
1120#define PICR1_1 1
1121#define PICR1_2 2
1122#define PICR1_3 3
1123#define PICR1_4 4
1124#define PICR1_5 5
1125#define PICR1_6 6
1126#define PICR1_7 7
1127
1128#define PICR1H _SFR_MEM8(0xEF)
1129#define PICR1_8 0
1130#define PICR1_9 1
1131#define PICR1_10 2
1132#define PICR1_11 3
1133#define PCST1 7
1134
1135#define PSOC2 _SFR_MEM8(0xF0)
1136#define POEN2A 0
1137#define POEN2C 1
1138#define POEN2B 2
1139#define POEN2D 3
1140#define PSYNC2_0 4
1141#define PSYNC2_1 5
1142#define POS22 6
1143#define POS23 7
1144
1145#define POM2 _SFR_MEM8(0xF1)
1146#define POMV2A0 0
1147#define POMV2A1 1
1148#define POMV2A2 2
1149#define POMV2A3 3
1150#define POMV2B0 4
1151#define POMV2B1 5
1152#define POMV2B2 6
1153#define POMV2B3 7
1154
1155#define OCR2SA _SFR_MEM16(0xF2)
1156
1157#define OCR2SAL _SFR_MEM8(0xF2)
1158#define OCR2SA_0 0
1159#define OCR2SA_1 1
1160#define OCR2SA_2 2
1161#define OCR2SA_3 3
1162#define OCR2SA_4 4
1163#define OCR2SA_5 5
1164#define OCR2SA_6 6
1165#define OCR2SA_7 7
1166
1167#define OCR2SAH _SFR_MEM8(0xF3)
1168#define OCR2SA_8 0
1169#define OCR2SA_9 1
1170#define OCR2SA_10 2
1171#define OCR2SA_11 3
1172
1173#define OCR2RA _SFR_MEM16(0xF4)
1174
1175#define OCR2RAL _SFR_MEM8(0xF4)
1176#define OCR2RA_0 0
1177#define OCR2RA_1 1
1178#define OCR2RA_2 2
1179#define OCR2RA_3 3
1180#define OCR2RA_4 4
1181#define OCR2RA_5 5
1182#define OCR2RA_6 6
1183#define OCR2RA_7 7
1184
1185#define OCR2RAH _SFR_MEM8(0xF5)
1186#define OCR2RA_8 0
1187#define OCR2RA_9 1
1188#define OCR2RA_10 2
1189#define OCR2RA_11 3
1190
1191#define OCR2SB _SFR_MEM16(0xF6)
1192
1193#define OCR2SBL _SFR_MEM8(0xF6)
1194#define OCR2SB_0 0
1195#define OCR2SB_1 1
1196#define OCR2SB_2 2
1197#define OCR2SB_3 3
1198#define OCR2SB_4 4
1199#define OCR2SB_5 5
1200#define OCR2SB_6 6
1201#define OCR2SB_7 7
1202
1203#define OCR2SBH _SFR_MEM8(0xF7)
1204#define OCR2SB_8 0
1205#define OCR2SB_9 1
1206#define OCR2SB_10 2
1207#define OCR2SB_11 3
1208
1209#define OCR2RB _SFR_MEM16(0xF8)
1210
1211#define OCR2RBL _SFR_MEM8(0xF8)
1212#define OCR2RB_0 0
1213#define OCR2RB_1 1
1214#define OCR2RB_2 2
1215#define OCR2RB_3 3
1216#define OCR2RB_4 4
1217#define OCR2RB_5 5
1218#define OCR2RB_6 6
1219#define OCR2RB_7 7
1220
1221#define OCR2RBH _SFR_MEM8(0xF9)
1222#define OCR2RB_8 0
1223#define OCR2RB_9 1
1224#define OCR2RB_10 2
1225#define OCR2RB_11 3
1226#define OCR2RB_12 4
1227#define OCR2RB_13 5
1228#define OCR2RB_14 6
1229#define OCR2RB_15 7
1230
1231#define PCNF2 _SFR_MEM8(0xFA)
1232#define POME2 0
1233#define PCLKSEL2 1
1234#define POP2 2
1235#define PMODE20 3
1236#define PMODE21 4
1237#define PLOCK2 5
1238#define PALOCK2 6
1239#define PFIFTY2 7
1240
1241#define PCTL2 _SFR_MEM8(0xFB)
1242#define PRUN2 0
1243#define PCCYC2 1
1244#define PARUN2 2
1245#define PAOC2A 3
1246#define PAOC2B 4
1247#define PBFM2 5
1248#define PPRE20 6
1249#define PPRE21 7
1250
1251#define PFRC2A _SFR_MEM8(0xFC)
1252#define PRFM2A0 0
1253#define PRFM2A1 1
1254#define PRFM2A2 2
1255#define PRFM2A3 3
1256#define PFLTE2A 4
1257#define PELEV2A 5
1258#define PISEL2A 6
1259#define PCAE2A 7
1260
1261#define PFRC2B _SFR_MEM8(0xFD)
1262#define PRFM2B0 0
1263#define PRFM2B1 1
1264#define PRFM2B2 2
1265#define PRFM2B3 3
1266#define PFLTE2B 4
1267#define PELEV2B 5
1268#define PISEL2B 6
1269#define PCAE2B 7
1270
1271#define PICR2 _SFR_MEM16(0xFE)
1272
1273#define PICR2L _SFR_MEM8(0xFE)
1274#define PICR2_0 0
1275#define PICR2_1 1
1276#define PICR2_2 2
1277#define PICR2_3 3
1278#define PICR2_4 4
1279#define PICR2_5 5
1280#define PICR2_6 6
1281#define PICR2_7 7
1282
1283#define PICR2H _SFR_MEM8(0xFF)
1284#define PICR2_8 0
1285#define PICR2_9 1
1286#define PICR2_10 2
1287#define PICR2_11 3
1288#define PCST2 7
1289
1290
1291
1292/* Interrupt Vectors */
1293/* Interrupt vector 0 is the reset vector. */
1294#define PSC2_CAPT_vect      _VECTOR(1)   /* PSC2 Capture Event */
1295#define PSC2_EC_vect        _VECTOR(2)   /* PSC2 End Cycle */
1296#define PSC1_CAPT_vect      _VECTOR(3)   /* PSC1 Capture Event */
1297#define PSC1_EC_vect        _VECTOR(4)   /* PSC1 End Cycle */
1298#define PSC0_CAPT_vect      _VECTOR(5)   /* PSC0 Capture Event */
1299#define PSC0_EC_vect        _VECTOR(6)   /* PSC0 End Cycle */
1300#define ANALOG_COMP_0_vect  _VECTOR(7)   /* Analog Comparator 0 */
1301#define ANALOG_COMP_1_vect  _VECTOR(8)   /* Analog Comparator 1 */
1302#define ANALOG_COMP_2_vect  _VECTOR(9)   /* Analog Comparator 2 */
1303#define INT0_vect           _VECTOR(10)  /* External Interrupt Request 0 */
1304#define TIMER1_CAPT_vect    _VECTOR(11)  /* Timer/Counter1 Capture Event */
1305#define TIMER1_COMPA_vect   _VECTOR(12)  /* Timer/Counter1 Compare Match A */
1306#define TIMER1_COMPB_vect   _VECTOR(13)  /* Timer/Counter Compare Match B */
1307/* Vector 14, Reserved */
1308#define TIMER1_OVF_vect     _VECTOR(15)  /* Timer/Counter1 Overflow */
1309#define TIMER0_COMPA_vect   _VECTOR(16)  /* Timer/Counter0 Compare Match A */
1310#define TIMER0_OVF_vect     _VECTOR(17)  /* Timer/Counter0 Overflow */
1311#define ADC_vect            _VECTOR(18)  /* ADC Conversion Complete */
1312#define INT1_vect           _VECTOR(19)  /* External Interrupt Request 1 */
1313#define SPI_STC_vect        _VECTOR(20)  /* SPI Serial Transfer Complete */
1314#define USART_RX_vect       _VECTOR(21)  /* USART, Rx Complete */
1315#define USART_UDRE_vect     _VECTOR(22)  /* USART Data Register Empty */
1316#define USART_TX_vect       _VECTOR(23)  /* USART, Tx Complete */
1317#define INT2_vect           _VECTOR(24)  /* External Interrupt Request 2 */
1318#define WDT_vect            _VECTOR(25)  /* Watchdog Timeout Interrupt */
1319#define EE_READY_vect       _VECTOR(26)  /* EEPROM Ready */
1320#define TIMER0_COMPB_vect   _VECTOR(27)  /* Timer Counter 0 Compare Match B */
1321#define INT3_vect           _VECTOR(28)  /* External Interrupt Request 3 */
1322/* Vector 29, Reserved */
1323/* Vector 30, Reserved */
1324#define SPM_READY_vect      _VECTOR(31)  /* Store Program Memory Read */
1325
1326#define _VECTORS_SIZE 64
1327
1328
1329
1330/* Memory Sizes */
1331#define RAMEND         0x2FF
1332#define XRAMSIZE       0
1333#define XRAMEND        RAMEND
1334#define E2END          0x1FF
1335#define E2PAGESIZE     4
1336#define FLASHEND       0x1FFF
1337#define SPM_PAGESIZE   32
1338
1339
1340
1341/* Fuse Information */
1342
1343#define FUSE_MEMORY_SIZE 3
1344
1345/* Low Fuse Byte */
1346#define FUSE_CKSEL0  (unsigned char)~_BV(0)  /* Select Clock Source */
1347#define FUSE_CKSEL1  (unsigned char)~_BV(1)  /* Select Clock Source */
1348#define FUSE_CKSEL2  (unsigned char)~_BV(2)  /* Select Clock Source */
1349#define FUSE_CKSEL3  (unsigned char)~_BV(3)  /* Select Clock Source */
1350#define FUSE_SUT0    (unsigned char)~_BV(4)  /* Select start-up time */
1351#define FUSE_SUT1    (unsigned char)~_BV(5)  /* Select start-up time */
1352#define FUSE_CKOUT   (unsigned char)~_BV(6) /* Oscillator output option */
1353#define FUSE_CKDIV8  (unsigned char)~_BV(7)  /* Divide clock by 8 */
1354#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
1355
1356
1357/* High Fuse Byte */
1358#define FUSE_BODLEVEL0 (unsigned char)~_BV(0)  /* Brown-out Detector trigger level */
1359#define FUSE_BODLEVEL1 (unsigned char)~_BV(1)  /* Brown-out Detector trigger level */
1360#define FUSE_BODLEVEL2 (unsigned char)~_BV(2)  /* Brown out detector trigger level */
1361#define FUSE_EESAVE    (unsigned char)~_BV(3)  /* EEPROM memory is preserved through chip erase */
1362#define FUSE_WDTON     (unsigned char)~_BV(4)  /* Watchdog timer always on */
1363#define FUSE_SPIEN     (unsigned char)~_BV(5)  /* Enable Serial programming and Data Downloading */
1364#define FUSE_DWEN      (unsigned char)~_BV(6)  /* debugWIRE Enable */
1365#define FUSE_RSTDISBL  (unsigned char)~_BV(7)  /* External Reset Disable */
1366#define HFUSE_DEFAULT (FUSE_SPIEN)   
1367
1368
1369/* Extended Fuse Byte */
1370#define FUSE_BOOTRST (unsigned char)~_BV(0)  /* Select Reset Vector */
1371#define FUSE_BOOTSZ0 (unsigned char)~_BV(1)  /* Select Boot Size */
1372#define FUSE_BOOTSZ1 (unsigned char)~_BV(2)  /* Select Boot Size */
1373#define FUSE_PSCRV   (unsigned char)~_BV(4)  /* PSCOUT Reset Value */
1374#define FUSE_PSC0RB  (unsigned char)~_BV(5)  /* PSC0 Reset Behaviour */
1375#define FUSE_PSC1RB  (unsigned char)~_BV(6)  /* PSC1 Reset Behaviour */
1376#define FUSE_PSC2RB  (unsigned char)~_BV(7)  /* PSC2 Reset Behaviour */
1377#define EFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1)
1378
1379
1380/* Lock Bits */
1381#define __LOCK_BITS_EXIST
1382#define __BOOT_LOCK_BITS_0_EXIST
1383#define __BOOT_LOCK_BITS_1_EXIST
1384
1385
1386/* Signature */
1387#define SIGNATURE_0 0x1E
1388#define SIGNATURE_1 0x93
1389#define SIGNATURE_2 0x83
1390
1391
1392#endif /* _AVR_IO90PWM2B_H_ */
Note: See TracBrowser for help on using the repository browser.