2 * Copyright Droids Corporation, Microb Technology, Eirbot (2009)
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 /* WARNING : this file is automatically generated by scripts.
23 * You should not edit it. If you find something wrong in it,
24 * write to zer0@droids-corp.org */
27 /* prescalers timer 0 */
28 #define TIMER0_PRESCALER_DIV_0 0
29 #define TIMER0_PRESCALER_DIV_1 1
30 #define TIMER0_PRESCALER_DIV_8 2
31 #define TIMER0_PRESCALER_DIV_32 3
32 #define TIMER0_PRESCALER_DIV_64 4
33 #define TIMER0_PRESCALER_DIV_128 5
34 #define TIMER0_PRESCALER_DIV_256 6
35 #define TIMER0_PRESCALER_DIV_1024 7
37 #define TIMER0_PRESCALER_REG_0 0
38 #define TIMER0_PRESCALER_REG_1 1
39 #define TIMER0_PRESCALER_REG_2 8
40 #define TIMER0_PRESCALER_REG_3 32
41 #define TIMER0_PRESCALER_REG_4 64
42 #define TIMER0_PRESCALER_REG_5 128
43 #define TIMER0_PRESCALER_REG_6 256
44 #define TIMER0_PRESCALER_REG_7 1024
46 /* prescalers timer 1 */
47 #define TIMER1_PRESCALER_DIV_0 0
48 #define TIMER1_PRESCALER_DIV_1 1
49 #define TIMER1_PRESCALER_DIV_8 2
50 #define TIMER1_PRESCALER_DIV_64 3
51 #define TIMER1_PRESCALER_DIV_256 4
52 #define TIMER1_PRESCALER_DIV_1024 5
53 #define TIMER1_PRESCALER_DIV_FALL 6
54 #define TIMER1_PRESCALER_DIV_RISE 7
56 #define TIMER1_PRESCALER_REG_0 0
57 #define TIMER1_PRESCALER_REG_1 1
58 #define TIMER1_PRESCALER_REG_2 8
59 #define TIMER1_PRESCALER_REG_3 64
60 #define TIMER1_PRESCALER_REG_4 256
61 #define TIMER1_PRESCALER_REG_5 1024
62 #define TIMER1_PRESCALER_REG_6 -1
63 #define TIMER1_PRESCALER_REG_7 -2
65 /* prescalers timer 2 */
66 #define TIMER2_PRESCALER_DIV_0 0
67 #define TIMER2_PRESCALER_DIV_1 1
68 #define TIMER2_PRESCALER_DIV_8 2
69 #define TIMER2_PRESCALER_DIV_64 3
70 #define TIMER2_PRESCALER_DIV_256 4
71 #define TIMER2_PRESCALER_DIV_1024 5
72 #define TIMER2_PRESCALER_DIV_FALL 6
73 #define TIMER2_PRESCALER_DIV_RISE 7
75 #define TIMER2_PRESCALER_REG_0 0
76 #define TIMER2_PRESCALER_REG_1 1
77 #define TIMER2_PRESCALER_REG_2 8
78 #define TIMER2_PRESCALER_REG_3 64
79 #define TIMER2_PRESCALER_REG_4 256
80 #define TIMER2_PRESCALER_REG_5 1024
81 #define TIMER2_PRESCALER_REG_6 -1
82 #define TIMER2_PRESCALER_REG_7 -2
84 /* prescalers timer 3 */
85 #define TIMER3_PRESCALER_DIV_0 0
86 #define TIMER3_PRESCALER_DIV_1 1
87 #define TIMER3_PRESCALER_DIV_8 2
88 #define TIMER3_PRESCALER_DIV_64 3
89 #define TIMER3_PRESCALER_DIV_256 4
90 #define TIMER3_PRESCALER_DIV_1024 5
91 #define TIMER3_PRESCALER_DIV_FALL 6
92 #define TIMER3_PRESCALER_DIV_RISE 7
94 #define TIMER3_PRESCALER_REG_0 0
95 #define TIMER3_PRESCALER_REG_1 1
96 #define TIMER3_PRESCALER_REG_2 8
97 #define TIMER3_PRESCALER_REG_3 64
98 #define TIMER3_PRESCALER_REG_4 256
99 #define TIMER3_PRESCALER_REG_5 1024
100 #define TIMER3_PRESCALER_REG_6 -1
101 #define TIMER3_PRESCALER_REG_7 -2
104 /* available timers */
105 #define TIMER0_AVAILABLE
106 #define TIMER1_AVAILABLE
107 #define TIMER1A_AVAILABLE
108 #define TIMER1B_AVAILABLE
109 #define TIMER1C_AVAILABLE
110 #define TIMER2_AVAILABLE
111 #define TIMER3_AVAILABLE
112 #define TIMER3A_AVAILABLE
113 #define TIMER3B_AVAILABLE
114 #define TIMER3C_AVAILABLE
116 /* overflow interrupt number */
117 #define SIG_OVERFLOW0_NUM 0
118 #define SIG_OVERFLOW1_NUM 1
119 #define SIG_OVERFLOW2_NUM 2
120 #define SIG_OVERFLOW3_NUM 3
121 #define SIG_OVERFLOW_TOTAL_NUM 4
123 /* output compare interrupt number */
124 #define SIG_OUTPUT_COMPARE0_NUM 0
125 #define SIG_OUTPUT_COMPARE1A_NUM 1
126 #define SIG_OUTPUT_COMPARE1B_NUM 2
127 #define SIG_OUTPUT_COMPARE1C_NUM 3
128 #define SIG_OUTPUT_COMPARE2_NUM 4
129 #define SIG_OUTPUT_COMPARE3A_NUM 5
130 #define SIG_OUTPUT_COMPARE3B_NUM 6
131 #define SIG_OUTPUT_COMPARE3C_NUM 7
132 #define SIG_OUTPUT_COMPARE_TOTAL_NUM 8
143 #define PWM_TOTAL_NUM 8
145 /* input capture interrupt number */
146 #define SIG_INPUT_CAPTURE1_NUM 0
147 #define SIG_INPUT_CAPTURE3_NUM 1
148 #define SIG_INPUT_CAPTURE_TOTAL_NUM 2
152 #define WDP0_REG WDTCR
153 #define WDP1_REG WDTCR
154 #define WDP2_REG WDTCR
155 #define WDE_REG WDTCR
156 #define WDCE_REG WDTCR
159 #define MUX0_REG ADMUX
160 #define MUX1_REG ADMUX
161 #define MUX2_REG ADMUX
162 #define MUX3_REG ADMUX
163 #define MUX4_REG ADMUX
164 #define ADLAR_REG ADMUX
165 #define REFS0_REG ADMUX
166 #define REFS1_REG ADMUX
169 #define EEDR0_REG EEDR
170 #define EEDR1_REG EEDR
171 #define EEDR2_REG EEDR
172 #define EEDR3_REG EEDR
173 #define EEDR4_REG EEDR
174 #define EEDR5_REG EEDR
175 #define EEDR6_REG EEDR
176 #define EEDR7_REG EEDR
179 #define SPDR0_REG SPDR
180 #define SPDR1_REG SPDR
181 #define SPDR2_REG SPDR
182 #define SPDR3_REG SPDR
183 #define SPDR4_REG SPDR
184 #define SPDR5_REG SPDR
185 #define SPDR6_REG SPDR
186 #define SPDR7_REG SPDR
189 #define SPI2X_REG SPSR
190 #define WCOL_REG SPSR
191 #define SPIF_REG SPSR
194 #define ICR1H0_REG ICR1H
195 #define ICR1H1_REG ICR1H
196 #define ICR1H2_REG ICR1H
197 #define ICR1H3_REG ICR1H
198 #define ICR1H4_REG ICR1H
199 #define ICR1H5_REG ICR1H
200 #define ICR1H6_REG ICR1H
201 #define ICR1H7_REG ICR1H
214 #define DDD0_REG DDRD
215 #define DDD1_REG DDRD
216 #define DDD2_REG DDRD
217 #define DDD3_REG DDRD
218 #define DDD4_REG DDRD
219 #define DDD5_REG DDRD
220 #define DDD6_REG DDRD
221 #define DDD7_REG DDRD
224 #define TWPS0_REG TWSR
225 #define TWPS1_REG TWSR
226 #define TWS3_REG TWSR
227 #define TWS4_REG TWSR
228 #define TWS5_REG TWSR
229 #define TWS6_REG TWSR
230 #define TWS7_REG TWSR
233 #define TCNT1L0_REG TCNT1L
234 #define TCNT1L1_REG TCNT1L
235 #define TCNT1L2_REG TCNT1L
236 #define TCNT1L3_REG TCNT1L
237 #define TCNT1L4_REG TCNT1L
238 #define TCNT1L5_REG TCNT1L
239 #define TCNT1L6_REG TCNT1L
240 #define TCNT1L7_REG TCNT1L
243 #define PORTG0_REG PORTG
244 #define PORTG1_REG PORTG
245 #define PORTG2_REG PORTG
246 #define PORTG3_REG PORTG
247 #define PORTG4_REG PORTG
250 #define UCPOL0_REG UCSR0C
251 #define UCSZ00_REG UCSR0C
252 #define UCSZ01_REG UCSR0C
253 #define USBS0_REG UCSR0C
254 #define UPM00_REG UCSR0C
255 #define UPM01_REG UCSR0C
256 #define UMSEL0_REG UCSR0C
259 #define TXB80_REG UCSR0B
260 #define RXB80_REG UCSR0B
261 #define UCSZ02_REG UCSR0B
262 #define TXEN0_REG UCSR0B
263 #define RXEN0_REG UCSR0B
264 #define UDRIE0_REG UCSR0B
265 #define TXCIE0_REG UCSR0B
266 #define RXCIE0_REG UCSR0B
269 #define PORTB0_REG PORTB
270 #define PORTB1_REG PORTB
271 #define PORTB2_REG PORTB
272 #define PORTB3_REG PORTB
273 #define PORTB4_REG PORTB
274 #define PORTB5_REG PORTB
275 #define PORTB6_REG PORTB
276 #define PORTB7_REG PORTB
279 #define PORTC0_REG PORTC
280 #define PORTC1_REG PORTC
281 #define PORTC2_REG PORTC
282 #define PORTC3_REG PORTC
283 #define PORTC4_REG PORTC
284 #define PORTC5_REG PORTC
285 #define PORTC6_REG PORTC
286 #define PORTC7_REG PORTC
289 #define PORTA0_REG PORTA
290 #define PORTA1_REG PORTA
291 #define PORTA2_REG PORTA
292 #define PORTA3_REG PORTA
293 #define PORTA4_REG PORTA
294 #define PORTA5_REG PORTA
295 #define PORTA6_REG PORTA
296 #define PORTA7_REG PORTA
299 #define UDR10_REG UDR1
300 #define UDR11_REG UDR1
301 #define UDR12_REG UDR1
302 #define UDR13_REG UDR1
303 #define UDR14_REG UDR1
304 #define UDR15_REG UDR1
305 #define UDR16_REG UDR1
306 #define UDR17_REG UDR1
309 #define UDR00_REG UDR0
310 #define UDR01_REG UDR0
311 #define UDR02_REG UDR0
312 #define UDR03_REG UDR0
313 #define UDR04_REG UDR0
314 #define UDR05_REG UDR0
315 #define UDR06_REG UDR0
316 #define UDR07_REG UDR0
319 #define ISC40_REG EICRB
320 #define ISC41_REG EICRB
321 #define ISC50_REG EICRB
322 #define ISC51_REG EICRB
323 #define ISC60_REG EICRB
324 #define ISC61_REG EICRB
325 #define ISC70_REG EICRB
326 #define ISC71_REG EICRB
329 #define ISC00_REG EICRA
330 #define ISC01_REG EICRA
331 #define ISC10_REG EICRA
332 #define ISC11_REG EICRA
333 #define ISC20_REG EICRA
334 #define ISC21_REG EICRA
335 #define ISC30_REG EICRA
336 #define ISC31_REG EICRA
339 #define TCR0UB_REG ASSR
340 #define OCR0UB_REG ASSR
341 #define TCN0UB_REG ASSR
355 /* #define UBRR0_REG UBRR1L */ /* dup in UBRR0L */
356 /* #define UBRR1_REG UBRR1L */ /* dup in UBRR0L */
357 /* #define UBRR2_REG UBRR1L */ /* dup in UBRR0L */
358 /* #define UBRR3_REG UBRR1L */ /* dup in UBRR0L */
359 /* #define UBRR4_REG UBRR1L */ /* dup in UBRR0L */
360 /* #define UBRR5_REG UBRR1L */ /* dup in UBRR0L */
361 /* #define UBRR6_REG UBRR1L */ /* dup in UBRR0L */
362 /* #define UBRR7_REG UBRR1L */ /* dup in UBRR0L */
365 #define DDC0_REG DDRC
366 #define DDC1_REG DDRC
367 #define DDC2_REG DDRC
368 #define DDC3_REG DDRC
369 #define DDC4_REG DDRC
370 #define DDC5_REG DDRC
371 #define DDC6_REG DDRC
372 #define DDC7_REG DDRC
375 #define OCR3AL0_REG OCR3AL
376 #define OCR3AL1_REG OCR3AL
377 #define OCR3AL2_REG OCR3AL
378 #define OCR3AL3_REG OCR3AL
379 #define OCR3AL4_REG OCR3AL
380 #define OCR3AL5_REG OCR3AL
381 #define OCR3AL6_REG OCR3AL
382 #define OCR3AL7_REG OCR3AL
385 #define DDA0_REG DDRA
386 #define DDA1_REG DDRA
387 #define DDA2_REG DDRA
388 #define DDA3_REG DDRA
389 #define DDA4_REG DDRA
390 #define DDA5_REG DDRA
391 #define DDA6_REG DDRA
392 #define DDA7_REG DDRA
395 #define DDF0_REG DDRF
396 #define DDF1_REG DDRF
397 #define DDF2_REG DDRF
398 #define DDF3_REG DDRF
399 #define DDF4_REG DDRF
400 #define DDF5_REG DDRF
401 #define DDF6_REG DDRF
402 #define DDF7_REG DDRF
405 #define DDG0_REG DDRG
406 #define DDG1_REG DDRG
407 #define DDG2_REG DDRG
408 #define DDG3_REG DDRG
409 #define DDG4_REG DDRG
412 #define OCR3AH0_REG OCR3AH
413 #define OCR3AH1_REG OCR3AH
414 #define OCR3AH2_REG OCR3AH
415 #define OCR3AH3_REG OCR3AH
416 #define OCR3AH4_REG OCR3AH
417 #define OCR3AH5_REG OCR3AH
418 #define OCR3AH6_REG OCR3AH
419 #define OCR3AH7_REG OCR3AH
422 #define CS10_REG TCCR1B
423 #define CS11_REG TCCR1B
424 #define CS12_REG TCCR1B
425 #define WGM12_REG TCCR1B
426 #define WGM13_REG TCCR1B
427 #define ICES1_REG TCCR1B
428 #define ICNC1_REG TCCR1B
431 #define CAL0_REG OSCCAL
432 #define CAL1_REG OSCCAL
433 #define CAL2_REG OSCCAL
434 #define CAL3_REG OSCCAL
435 #define CAL4_REG OSCCAL
436 #define CAL5_REG OSCCAL
437 #define CAL6_REG OSCCAL
438 #define CAL7_REG OSCCAL
441 #define ACME_REG SFIOR
442 #define PSR321_REG SFIOR
443 #define PSR0_REG SFIOR
444 #define PUD_REG SFIOR
445 #define TSM_REG SFIOR
448 #define TCNT2_0_REG TCNT2
449 #define TCNT2_1_REG TCNT2
450 #define TCNT2_2_REG TCNT2
451 #define TCNT2_3_REG TCNT2
452 #define TCNT2_4_REG TCNT2
453 #define TCNT2_5_REG TCNT2
454 #define TCNT2_6_REG TCNT2
455 #define TCNT2_7_REG TCNT2
458 /* #define UBRR8_REG UBRR1H */ /* dup in UBRR0H */
459 /* #define UBRR9_REG UBRR1H */ /* dup in UBRR0H */
460 /* #define UBRR10_REG UBRR1H */ /* dup in UBRR0H */
461 /* #define UBRR11_REG UBRR1H */ /* dup in UBRR0H */
464 #define TWGCE_REG TWAR
465 #define TWA0_REG TWAR
466 #define TWA1_REG TWAR
467 #define TWA2_REG TWAR
468 #define TWA3_REG TWAR
469 #define TWA4_REG TWAR
470 #define TWA5_REG TWAR
471 #define TWA6_REG TWAR
474 #define TOV0_REG TIFR
475 #define OCF0_REG TIFR
476 #define TOV1_REG TIFR
477 #define OCF1B_REG TIFR
478 #define OCF1A_REG TIFR
479 #define ICF1_REG TIFR
480 #define TOV2_REG TIFR
481 #define OCF2_REG TIFR
484 #define TCNT0_0_REG TCNT0
485 #define TCNT0_1_REG TCNT0
486 #define TCNT0_2_REG TCNT0
487 #define TCNT0_3_REG TCNT0
488 #define TCNT0_4_REG TCNT0
489 #define TCNT0_5_REG TCNT0
490 #define TCNT0_6_REG TCNT0
491 #define TCNT0_7_REG TCNT0
494 #define OCF1C_REG ETIFR
495 #define OCF3C_REG ETIFR
496 #define TOV3_REG ETIFR
497 #define OCF3B_REG ETIFR
498 #define OCF3A_REG ETIFR
499 #define ICF3_REG ETIFR
502 #define SPR0_REG SPCR
503 #define SPR1_REG SPCR
504 #define CPHA_REG SPCR
505 #define CPOL_REG SPCR
506 #define MSTR_REG SPCR
507 #define DORD_REG SPCR
509 #define SPIE_REG SPCR
512 #define XDIV0_REG XDIV
513 #define XDIV1_REG XDIV
514 #define XDIV2_REG XDIV
515 #define XDIV3_REG XDIV
516 #define XDIV4_REG XDIV
517 #define XDIV5_REG XDIV
518 #define XDIV6_REG XDIV
519 #define XDIVEN_REG XDIV
522 #define OCR3CH0_REG OCR3CH
523 #define OCR3CH1_REG OCR3CH
524 #define OCR3CH2_REG OCR3CH
525 #define OCR3CH3_REG OCR3CH
526 #define OCR3CH4_REG OCR3CH
527 #define OCR3CH5_REG OCR3CH
528 #define OCR3CH6_REG OCR3CH
529 #define OCR3CH7_REG OCR3CH
532 #define OCIE1C_REG ETIMSK
533 #define OCIE3C_REG ETIMSK
534 #define TOIE3_REG ETIMSK
535 #define OCIE3B_REG ETIMSK
536 #define OCIE3A_REG ETIMSK
537 #define TICIE3_REG ETIMSK
540 #define OCR3CL0_REG OCR3CL
541 #define OCR3CL1_REG OCR3CL
542 #define OCR3CL2_REG OCR3CL
543 #define OCR3CL3_REG OCR3CL
544 #define OCR3CL4_REG OCR3CL
545 #define OCR3CL5_REG OCR3CL
546 #define OCR3CL6_REG OCR3CL
547 #define OCR3CL7_REG OCR3CL
550 #define TWBR0_REG TWBR
551 #define TWBR1_REG TWBR
552 #define TWBR2_REG TWBR
553 #define TWBR3_REG TWBR
554 #define TWBR4_REG TWBR
555 #define TWBR5_REG TWBR
556 #define TWBR6_REG TWBR
557 #define TWBR7_REG TWBR
570 #define FOC3C_REG TCCR3C
571 #define FOC3B_REG TCCR3C
572 #define FOC3A_REG TCCR3C
575 #define CS30_REG TCCR3B
576 #define CS31_REG TCCR3B
577 #define CS32_REG TCCR3B
578 #define WGM32_REG TCCR3B
579 #define WGM33_REG TCCR3B
580 #define ICES3_REG TCCR3B
581 #define ICNC3_REG TCCR3B
584 #define WGM30_REG TCCR3A
585 #define WGM31_REG TCCR3A
586 #define COM3C0_REG TCCR3A
587 #define COM3C1_REG TCCR3A
588 #define COM3B0_REG TCCR3A
589 #define COM3B1_REG TCCR3A
590 #define COM3A0_REG TCCR3A
591 #define COM3A1_REG TCCR3A
594 #define OCR1BL0_REG OCR1BL
595 #define OCR1BL1_REG OCR1BL
596 #define OCR1BL2_REG OCR1BL
597 #define OCR1BL3_REG OCR1BL
598 #define OCR1BL4_REG OCR1BL
599 #define OCR1BL5_REG OCR1BL
600 #define OCR1BL6_REG OCR1BL
601 #define OCR1BL7_REG OCR1BL
604 #define TCNT3H0_REG TCNT3H
605 #define TCNT3H1_REG TCNT3H
606 #define TCNT3H2_REG TCNT3H
607 #define TCNT3H3_REG TCNT3H
608 #define TCNT3H4_REG TCNT3H
609 #define TCNT3H5_REG TCNT3H
610 #define TCNT3H6_REG TCNT3H
611 #define TCNT3H7_REG TCNT3H
614 #define OCR1BH0_REG OCR1BH
615 #define OCR1BH1_REG OCR1BH
616 #define OCR1BH2_REG OCR1BH
617 #define OCR1BH3_REG OCR1BH
618 #define OCR1BH4_REG OCR1BH
619 #define OCR1BH5_REG OCR1BH
620 #define OCR1BH6_REG OCR1BH
621 #define OCR1BH7_REG OCR1BH
624 #define TCN3L0_REG TCNT3L
625 #define TCN3L1_REG TCNT3L
626 #define TCN3L2_REG TCNT3L
627 #define TCN3L3_REG TCNT3L
628 #define TCN3L4_REG TCNT3L
629 #define TCN3L5_REG TCNT3L
630 #define TCN3L6_REG TCNT3L
631 #define TCN3L7_REG TCNT3L
634 #define ICR1L0_REG ICR1L
635 #define ICR1L1_REG ICR1L
636 #define ICR1L2_REG ICR1L
637 #define ICR1L3_REG ICR1L
638 #define ICR1L4_REG ICR1L
639 #define ICR1L5_REG ICR1L
640 #define ICR1L6_REG ICR1L
641 #define ICR1L7_REG ICR1L
644 #define EERE_REG EECR
645 #define EEWE_REG EECR
646 #define EEMWE_REG EECR
647 #define EERIE_REG EECR
650 #define TWIE_REG TWCR
651 #define TWEN_REG TWCR
652 #define TWWC_REG TWCR
653 #define TWSTO_REG TWCR
654 #define TWSTA_REG TWCR
655 #define TWEA_REG TWCR
656 #define TWINT_REG TWCR
659 #define PORF_REG MCUCSR
660 #define EXTRF_REG MCUCSR
661 #define BORF_REG MCUCSR
662 #define WDRF_REG MCUCSR
663 #define JTRF_REG MCUCSR
664 #define JTD_REG MCUCSR
667 #define MPCM0_REG UCSR0A
668 #define U2X0_REG UCSR0A
669 #define UPE0_REG UCSR0A
670 #define DOR0_REG UCSR0A
671 #define FE0_REG UCSR0A
672 #define UDRE0_REG UCSR0A
673 #define TXC0_REG UCSR0A
674 #define RXC0_REG UCSR0A
677 /* #define UBRR8_REG UBRR0H */ /* dup in UBRR1H */
678 /* #define UBRR9_REG UBRR0H */ /* dup in UBRR1H */
679 /* #define UBRR10_REG UBRR0H */ /* dup in UBRR1H */
680 /* #define UBRR11_REG UBRR0H */ /* dup in UBRR1H */
683 /* #define UBRR0_REG UBRR0L */ /* dup in UBRR1L */
684 /* #define UBRR1_REG UBRR0L */ /* dup in UBRR1L */
685 /* #define UBRR2_REG UBRR0L */ /* dup in UBRR1L */
686 /* #define UBRR3_REG UBRR0L */ /* dup in UBRR1L */
687 /* #define UBRR4_REG UBRR0L */ /* dup in UBRR1L */
688 /* #define UBRR5_REG UBRR0L */ /* dup in UBRR1L */
689 /* #define UBRR6_REG UBRR0L */ /* dup in UBRR1L */
690 /* #define UBRR7_REG UBRR0L */ /* dup in UBRR1L */
693 #define EEAR8_REG EEARH
694 #define EEAR9_REG EEARH
695 #define EEAR10_REG EEARH
698 #define EEARL0_REG EEARL
699 #define EEARL1_REG EEARL
700 #define EEARL2_REG EEARL
701 #define EEARL3_REG EEARL
702 #define EEARL4_REG EEARL
703 #define EEARL5_REG EEARL
704 #define EEARL6_REG EEARL
705 #define EEARL7_REG EEARL
708 #define IVCE_REG MCUCR
709 #define IVSEL_REG MCUCR
710 #define SM2_REG MCUCR
711 #define SM0_REG MCUCR
712 #define SM1_REG MCUCR
714 #define SRW10_REG MCUCR
715 #define SRE_REG MCUCR
718 #define OCR1CL0_REG OCR1CL
719 #define OCR1CL1_REG OCR1CL
720 #define OCR1CL2_REG OCR1CL
721 #define OCR1CL3_REG OCR1CL
722 #define OCR1CL4_REG OCR1CL
723 #define OCR1CL5_REG OCR1CL
724 #define OCR1CL6_REG OCR1CL
725 #define OCR1CL7_REG OCR1CL
728 #define OCR1CH0_REG OCR1CH
729 #define OCR1CH1_REG OCR1CH
730 #define OCR1CH2_REG OCR1CH
731 #define OCR1CH3_REG OCR1CH
732 #define OCR1CH4_REG OCR1CH
733 #define OCR1CH5_REG OCR1CH
734 #define OCR1CH6_REG OCR1CH
735 #define OCR1CH7_REG OCR1CH
738 #define OCDR0_REG OCDR
739 #define OCDR1_REG OCDR
740 #define OCDR2_REG OCDR
741 #define OCDR3_REG OCDR
742 #define OCDR4_REG OCDR
743 #define OCDR5_REG OCDR
744 #define OCDR6_REG OCDR
745 #define OCDR7_REG OCDR
748 #define INTF0_REG EIFR
749 #define INTF1_REG EIFR
750 #define INTF2_REG EIFR
751 #define INTF3_REG EIFR
752 #define INTF4_REG EIFR
753 #define INTF5_REG EIFR
754 #define INTF6_REG EIFR
755 #define INTF7_REG EIFR
758 #define TXB81_REG UCSR1B
759 #define RXB81_REG UCSR1B
760 #define UCSZ12_REG UCSR1B
761 #define TXEN1_REG UCSR1B
762 #define RXEN1_REG UCSR1B
763 #define UDRIE1_REG UCSR1B
764 #define TXCIE1_REG UCSR1B
765 #define RXCIE1_REG UCSR1B
768 #define UCPOL1_REG UCSR1C
769 #define UCSZ10_REG UCSR1C
770 #define UCSZ11_REG UCSR1C
771 #define USBS1_REG UCSR1C
772 #define UPM10_REG UCSR1C
773 #define UPM11_REG UCSR1C
774 #define UMSEL1_REG UCSR1C
777 #define MPCM1_REG UCSR1A
778 #define U2X1_REG UCSR1A
779 #define UPE1_REG UCSR1A
780 #define DOR1_REG UCSR1A
781 #define FE1_REG UCSR1A
782 #define UDRE1_REG UCSR1A
783 #define TXC1_REG UCSR1A
784 #define RXC1_REG UCSR1A
787 #define CS00_REG TCCR0
788 #define CS01_REG TCCR0
789 #define CS02_REG TCCR0
790 #define WGM01_REG TCCR0
791 #define COM00_REG TCCR0
792 #define COM01_REG TCCR0
793 #define WGM00_REG TCCR0
794 #define FOC0_REG TCCR0
797 #define CS20_REG TCCR2
798 #define CS21_REG TCCR2
799 #define CS22_REG TCCR2
800 #define WGM21_REG TCCR2
801 #define COM20_REG TCCR2
802 #define COM21_REG TCCR2
803 #define WGM20_REG TCCR2
804 #define FOC2_REG TCCR2
807 #define DDB0_REG DDRB
808 #define DDB1_REG DDRB
809 #define DDB2_REG DDRB
810 #define DDB3_REG DDRB
811 #define DDB4_REG DDRB
812 #define DDB5_REG DDRB
813 #define DDB6_REG DDRB
814 #define DDB7_REG DDRB
817 #define TWD0_REG TWDR
818 #define TWD1_REG TWDR
819 #define TWD2_REG TWDR
820 #define TWD3_REG TWDR
821 #define TWD4_REG TWDR
822 #define TWD5_REG TWDR
823 #define TWD6_REG TWDR
824 #define TWD7_REG TWDR
827 #define TOIE0_REG TIMSK
828 #define OCIE0_REG TIMSK
829 #define TOIE1_REG TIMSK
830 #define OCIE1B_REG TIMSK
831 #define OCIE1A_REG TIMSK
832 #define TICIE1_REG TIMSK
833 #define TOIE2_REG TIMSK
834 #define OCIE2_REG TIMSK
837 #define INT0_REG EIMSK
838 #define INT1_REG EIMSK
839 #define INT2_REG EIMSK
840 #define INT3_REG EIMSK
841 #define INT4_REG EIMSK
842 #define INT5_REG EIMSK
843 #define INT6_REG EIMSK
844 #define INT7_REG EIMSK
847 #define ADTS0_REG ADCSRB
848 #define ADTS1_REG ADCSRB
849 #define ADTS2_REG ADCSRB
852 #define WGM10_REG TCCR1A
853 #define WGM11_REG TCCR1A
854 #define COM1C0_REG TCCR1A
855 #define COM1C1_REG TCCR1A
856 #define COM1B0_REG TCCR1A
857 #define COM1B1_REG TCCR1A
858 #define COM1A0_REG TCCR1A
859 #define COM1A1_REG TCCR1A
862 #define ACIS0_REG ACSR
863 #define ACIS1_REG ACSR
864 #define ACIC_REG ACSR
865 #define ACIE_REG ACSR
868 #define ACBG_REG ACSR
872 #define PORTF0_REG PORTF
873 #define PORTF1_REG PORTF
874 #define PORTF2_REG PORTF
875 #define PORTF3_REG PORTF
876 #define PORTF4_REG PORTF
877 #define PORTF5_REG PORTF
878 #define PORTF6_REG PORTF
879 #define PORTF7_REG PORTF
882 #define FOC1C_REG TCCR1C
883 #define FOC1B_REG TCCR1C
884 #define FOC1A_REG TCCR1C
887 #define ICR3H0_REG ICR3H
888 #define ICR3H1_REG ICR3H
889 #define ICR3H2_REG ICR3H
890 #define ICR3H3_REG ICR3H
891 #define ICR3H4_REG ICR3H
892 #define ICR3H5_REG ICR3H
893 #define ICR3H6_REG ICR3H
894 #define ICR3H7_REG ICR3H
897 #define DDE0_REG DDRE
898 #define DDE1_REG DDRE
899 #define DDE2_REG DDRE
900 #define DDE3_REG DDRE
901 #define DDE4_REG DDRE
902 #define DDE5_REG DDRE
903 #define DDE6_REG DDRE
904 #define DDE7_REG DDRE
907 #define PORTD0_REG PORTD
908 #define PORTD1_REG PORTD
909 #define PORTD2_REG PORTD
910 #define PORTD3_REG PORTD
911 #define PORTD4_REG PORTD
912 #define PORTD5_REG PORTD
913 #define PORTD6_REG PORTD
914 #define PORTD7_REG PORTD
917 #define ICR3L0_REG ICR3L
918 #define ICR3L1_REG ICR3L
919 #define ICR3L2_REG ICR3L
920 #define ICR3L3_REG ICR3L
921 #define ICR3L4_REG ICR3L
922 #define ICR3L5_REG ICR3L
923 #define ICR3L6_REG ICR3L
924 #define ICR3L7_REG ICR3L
927 #define PORTE0_REG PORTE
928 #define PORTE1_REG PORTE
929 #define PORTE2_REG PORTE
930 #define PORTE3_REG PORTE
931 #define PORTE4_REG PORTE
932 #define PORTE5_REG PORTE
933 #define PORTE6_REG PORTE
934 #define PORTE7_REG PORTE
937 #define SPMEN_REG SPMCSR
938 #define PGERS_REG SPMCSR
939 #define PGWRT_REG SPMCSR
940 #define BLBSET_REG SPMCSR
941 #define RWWSRE_REG SPMCSR
942 #define RWWSB_REG SPMCSR
943 #define SPMIE_REG SPMCSR
946 #define TCNT1H0_REG TCNT1H
947 #define TCNT1H1_REG TCNT1H
948 #define TCNT1H2_REG TCNT1H
949 #define TCNT1H3_REG TCNT1H
950 #define TCNT1H4_REG TCNT1H
951 #define TCNT1H5_REG TCNT1H
952 #define TCNT1H6_REG TCNT1H
953 #define TCNT1H7_REG TCNT1H
956 #define ADCL0_REG ADCL
957 #define ADCL1_REG ADCL
958 #define ADCL2_REG ADCL
959 #define ADCL3_REG ADCL
960 #define ADCL4_REG ADCL
961 #define ADCL5_REG ADCL
962 #define ADCL6_REG ADCL
963 #define ADCL7_REG ADCL
966 #define ADCH0_REG ADCH
967 #define ADCH1_REG ADCH
968 #define ADCH2_REG ADCH
969 #define ADCH3_REG ADCH
970 #define ADCH4_REG ADCH
971 #define ADCH5_REG ADCH
972 #define ADCH6_REG ADCH
973 #define ADCH7_REG ADCH
976 #define OCR3BL0_REG OCR3BL
977 #define OCR3BL1_REG OCR3BL
978 #define OCR3BL2_REG OCR3BL
979 #define OCR3BL3_REG OCR3BL
980 #define OCR3BL4_REG OCR3BL
981 #define OCR3BL5_REG OCR3BL
982 #define OCR3BL6_REG OCR3BL
983 #define OCR3BL7_REG OCR3BL
986 #define OCR3BH0_REG OCR3BH
987 #define OCR3BH1_REG OCR3BH
988 #define OCR3BH2_REG OCR3BH
989 #define OCR3BH3_REG OCR3BH
990 #define OCR3BH4_REG OCR3BH
991 #define OCR3BH5_REG OCR3BH
992 #define OCR3BH6_REG OCR3BH
993 #define OCR3BH7_REG OCR3BH
996 #define ADPS0_REG ADCSRA
997 #define ADPS1_REG ADCSRA
998 #define ADPS2_REG ADCSRA
999 #define ADIE_REG ADCSRA
1000 #define ADIF_REG ADCSRA
1001 #define ADATE_REG ADCSRA
1002 #define ADSC_REG ADCSRA
1003 #define ADEN_REG ADCSRA
1006 #define XMM0_REG XMCRB
1007 #define XMM1_REG XMCRB
1008 #define XMM2_REG XMCRB
1009 #define XMBK_REG XMCRB
1012 #define SRW11_REG XMCRA
1013 #define SRW00_REG XMCRA
1014 #define SRW01_REG XMCRA
1015 #define SRL0_REG XMCRA
1016 #define SRL1_REG XMCRA
1017 #define SRL2_REG XMCRA
1020 #define PINC0_REG PINC
1021 #define PINC1_REG PINC
1022 #define PINC2_REG PINC
1023 #define PINC3_REG PINC
1024 #define PINC4_REG PINC
1025 #define PINC5_REG PINC
1026 #define PINC6_REG PINC
1027 #define PINC7_REG PINC
1030 #define PINB0_REG PINB
1031 #define PINB1_REG PINB
1032 #define PINB2_REG PINB
1033 #define PINB3_REG PINB
1034 #define PINB4_REG PINB
1035 #define PINB5_REG PINB
1036 #define PINB6_REG PINB
1037 #define PINB7_REG PINB
1040 #define PINA0_REG PINA
1041 #define PINA1_REG PINA
1042 #define PINA2_REG PINA
1043 #define PINA3_REG PINA
1044 #define PINA4_REG PINA
1045 #define PINA5_REG PINA
1046 #define PINA6_REG PINA
1047 #define PINA7_REG PINA
1050 #define PING0_REG PING
1051 #define PING1_REG PING
1052 #define PING2_REG PING
1053 #define PING3_REG PING
1054 #define PING4_REG PING
1057 #define PINF0_REG PINF
1058 #define PINF1_REG PINF
1059 #define PINF2_REG PINF
1060 #define PINF3_REG PINF
1061 #define PINF4_REG PINF
1062 #define PINF5_REG PINF
1063 #define PINF6_REG PINF
1064 #define PINF7_REG PINF
1067 #define PINE0_REG PINE
1068 #define PINE1_REG PINE
1069 #define PINE2_REG PINE
1070 #define PINE3_REG PINE
1071 #define PINE4_REG PINE
1072 #define PINE5_REG PINE
1073 #define PINE6_REG PINE
1074 #define PINE7_REG PINE
1077 #define PIND0_REG PIND
1078 #define PIND1_REG PIND
1079 #define PIND2_REG PIND
1080 #define PIND3_REG PIND
1081 #define PIND4_REG PIND
1082 #define PIND5_REG PIND
1083 #define PIND6_REG PIND
1084 #define PIND7_REG PIND
1087 #define OCR1AH0_REG OCR1AH
1088 #define OCR1AH1_REG OCR1AH
1089 #define OCR1AH2_REG OCR1AH
1090 #define OCR1AH3_REG OCR1AH
1091 #define OCR1AH4_REG OCR1AH
1092 #define OCR1AH5_REG OCR1AH
1093 #define OCR1AH6_REG OCR1AH
1094 #define OCR1AH7_REG OCR1AH
1097 #define OCR1AL0_REG OCR1AL
1098 #define OCR1AL1_REG OCR1AL
1099 #define OCR1AL2_REG OCR1AL
1100 #define OCR1AL3_REG OCR1AL
1101 #define OCR1AL4_REG OCR1AL
1102 #define OCR1AL5_REG OCR1AL
1103 #define OCR1AL6_REG OCR1AL
1104 #define OCR1AL7_REG OCR1AL
1107 #define OCR0_0_REG OCR0
1108 #define OCR0_1_REG OCR0
1109 #define OCR0_2_REG OCR0
1110 #define OCR0_3_REG OCR0
1111 #define OCR0_4_REG OCR0
1112 #define OCR0_5_REG OCR0
1113 #define OCR0_6_REG OCR0
1114 #define OCR0_7_REG OCR0
1117 #define OCR2_0_REG OCR2
1118 #define OCR2_1_REG OCR2
1119 #define OCR2_2_REG OCR2
1120 #define OCR2_3_REG OCR2
1121 #define OCR2_4_REG OCR2
1122 #define OCR2_5_REG OCR2
1123 #define OCR2_6_REG OCR2
1124 #define OCR2_7_REG OCR2
1127 #define AD0_PORT PORTA
1130 #define AD1_PORT PORTA
1133 #define AD2_PORT PORTA
1136 #define AD3_PORT PORTA
1139 #define AD4_PORT PORTA
1142 #define AD5_PORT PORTA
1145 #define AD6_PORT PORTA
1148 #define AD7_PORT PORTA
1151 #define SS_PORT PORTB
1154 #define SCK_PORT PORTB
1157 #define MOSI_PORT PORTB
1160 #define MISO_PORT PORTB
1163 #define OC0_PORT PORTB
1165 #define PWM0_PORT PORTB
1168 #define OC1A_PORT PORTB
1170 #define PWM1A_PORT PORTB
1173 #define OC1B_PORT PORTB
1175 #define PWM1B_PORT PORTB
1178 #define OC2_PORT PORTB
1180 #define PWM2_PORT PORTB
1182 #define OC1C_PORT PORTB
1185 #define A8_PORT PORTC
1188 #define A9_PORT PORTC
1191 #define A10_PORT PORTC
1194 #define A11_PORT PORTC
1197 #define A12_PORT PORTC
1200 #define A13_PORT PORTC
1203 #define A14_PORT PORTC
1206 #define A15_PORT PORTC
1209 #define SCL_PORT PORTD
1211 #define INT0_PORT PORTD
1214 #define SDA_PORT PORTD
1216 #define INT1_PORT PORTD
1219 #define RXD1_PORT PORTD
1221 #define INT2_PORT PORTD
1224 #define TXD1_PORT PORTD
1226 #define INT3_PORT PORTD
1229 #define IC1_PORT PORTD
1232 #define XCK1_PORT PORTD
1235 #define T1_PORT PORTD
1238 #define T2_PORT PORTD
1241 #define RXD0_PORT PORTE
1243 #define PDI_PORT PORTE
1246 #define TXD0_PORT PORTE
1248 #define PDO_PORT PORTE
1251 #define XCK0_PORT PORTE
1253 #define AIN0_PORT PORTE
1256 #define OC3A_PORT PORTE
1258 #define AIN1_PORT PORTE
1261 #define OC3B_PORT PORTE
1263 #define INT4_PORT PORTE
1266 #define OC3C_PORT PORTE
1268 #define INT5_PORT PORTE
1271 #define T3_PORT PORTE
1273 #define INT6_PORT PORTE
1276 #define IC3_PORT PORTE
1278 #define INT7_PORT PORTE
1281 #define ADC0_PORT PORTF
1284 #define ADC1_PORT PORTF
1287 #define ADC2_PORT PORTF
1290 #define ADC3_PORT PORTF
1293 #define ADC4_PORT PORTF
1295 #define TCK_PORT PORTF
1298 #define ADC5_PORT PORTF
1300 #define TMS_PORT PORTF
1303 #define ADC6_PORT PORTF
1305 #define TD0_PORT PORTF
1308 #define ADC7_PORT PORTF
1310 #define TDI_PORT PORTF
1313 #define WR_PORT PORTG
1316 #define RD_PORT PORTG
1319 #define ALE_PORT PORTG
1322 #define TOSC2_PORT PORTG
1325 #define TOSC1_PORT PORTG