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_64 3
32 #define TIMER0_PRESCALER_DIV_256 4
33 #define TIMER0_PRESCALER_DIV_1024 5
34 #define TIMER0_PRESCALER_DIV_FALL 6
35 #define TIMER0_PRESCALER_DIV_RISE 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 64
41 #define TIMER0_PRESCALER_REG_4 256
42 #define TIMER0_PRESCALER_REG_5 1024
43 #define TIMER0_PRESCALER_REG_6 -1
44 #define TIMER0_PRESCALER_REG_7 -2
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
66 /* available timers */
67 #define TIMER0_AVAILABLE
68 #define TIMER0B_AVAILABLE
69 #define TIMER1_AVAILABLE
70 #define TIMER1A_AVAILABLE
71 #define TIMER1B_AVAILABLE
73 /* overflow interrupt number */
74 #define SIG_OVERFLOW0_NUM 0
75 #define SIG_OVERFLOW1_NUM 1
76 #define SIG_OVERFLOW_TOTAL_NUM 2
78 /* output compare interrupt number */
79 #define SIG_OUTPUT_COMPARE0_NUM 0
80 #define SIG_OUTPUT_COMPARE0B_NUM 1
81 #define SIG_OUTPUT_COMPARE1A_NUM 2
82 #define SIG_OUTPUT_COMPARE1B_NUM 3
83 #define SIG_OUTPUT_COMPARE_TOTAL_NUM 4
90 #define PWM_TOTAL_NUM 4
92 /* input capture interrupt number */
93 #define SIG_INPUT_CAPTURE1_NUM 0
94 #define SIG_INPUT_CAPTURE_TOTAL_NUM 1
98 #define EUDR0_REG EUDR
99 #define EUDR1_REG EUDR
100 #define EUDR2_REG EUDR
101 #define EUDR3_REG EUDR
102 #define EUDR4_REG EUDR
103 #define EUDR5_REG EUDR
104 #define EUDR6_REG EUDR
105 #define EUDR7_REG EUDR
108 #define MUX0_REG ADMUX
109 #define MUX1_REG ADMUX
110 #define MUX2_REG ADMUX
111 #define MUX3_REG ADMUX
112 #define ADLAR_REG ADMUX
113 #define REFS0_REG ADMUX
114 #define REFS1_REG ADMUX
127 #define OCR2SB_8_REG OCR2SBH
128 #define OCR2SB_9_REG OCR2SBH
129 #define OCR2SB_10_REG OCR2SBH
130 #define OCR2SB_11_REG OCR2SBH
133 #define OCR2SB_0_REG OCR2SBL
134 #define OCR2SB_1_REG OCR2SBL
135 #define OCR2SB_2_REG OCR2SBL
136 #define OCR2SB_3_REG OCR2SBL
137 #define OCR2SB_4_REG OCR2SBL
138 #define OCR2SB_5_REG OCR2SBL
139 #define OCR2SB_6_REG OCR2SBL
140 #define OCR2SB_7_REG OCR2SBL
143 #define WDP0_REG WDTCSR
144 #define WDP1_REG WDTCSR
145 #define WDP2_REG WDTCSR
146 #define WDE_REG WDTCSR
147 #define WDCE_REG WDTCSR
148 #define WDP3_REG WDTCSR
149 #define WDIE_REG WDTCSR
150 #define WDIF_REG WDTCSR
153 #define EEDR0_REG EEDR
154 #define EEDR1_REG EEDR
155 #define EEDR2_REG EEDR
156 #define EEDR3_REG EEDR
157 #define EEDR4_REG EEDR
158 #define EEDR5_REG EEDR
159 #define EEDR6_REG EEDR
160 #define EEDR7_REG EEDR
163 /* #define OCR0_0_REG OCR0B */ /* dup in OCR0A */
164 /* #define OCR0_1_REG OCR0B */ /* dup in OCR0A */
165 /* #define OCR0_2_REG OCR0B */ /* dup in OCR0A */
166 /* #define OCR0_3_REG OCR0B */ /* dup in OCR0A */
167 /* #define OCR0_4_REG OCR0B */ /* dup in OCR0A */
168 /* #define OCR0_5_REG OCR0B */ /* dup in OCR0A */
169 /* #define OCR0_6_REG OCR0B */ /* dup in OCR0A */
170 /* #define OCR0_7_REG OCR0B */ /* dup in OCR0A */
173 #define SPDR0_REG SPDR
174 #define SPDR1_REG SPDR
175 #define SPDR2_REG SPDR
176 #define SPDR3_REG SPDR
177 #define SPDR4_REG SPDR
178 #define SPDR5_REG SPDR
179 #define SPDR6_REG SPDR
180 #define SPDR7_REG SPDR
183 #define SPI2X_REG SPSR
184 #define WCOL_REG SPSR
185 #define SPIF_REG SPSR
188 #define ICR1H0_REG ICR1H
189 #define ICR1H1_REG ICR1H
190 #define ICR1H2_REG ICR1H
191 #define ICR1H3_REG ICR1H
192 #define ICR1H4_REG ICR1H
193 #define ICR1H5_REG ICR1H
194 #define ICR1H6_REG ICR1H
195 #define ICR1H7_REG ICR1H
198 #define MPCM_REG UCSRA
199 #define U2X_REG UCSRA
200 #define UPE_REG UCSRA
201 #define DOR_REG UCSRA
203 #define UDRE_REG UCSRA
204 #define TXC_REG UCSRA
205 #define RXC_REG UCSRA
208 #define TXB8_REG UCSRB
209 #define RXB8_REG UCSRB
210 #define UCSZ2_REG UCSRB
211 #define TXEN_REG UCSRB
212 #define RXEN_REG UCSRB
213 #define UDRIE_REG UCSRB
214 #define TXCIE_REG UCSRB
215 #define RXCIE_REG UCSRB
218 #define UCPOL_REG UCSRC
219 #define UCSZ0_REG UCSRC
220 #define UCSZ1_REG UCSRC
221 #define USBS_REG UCSRC
222 #define UPM0_REG UCSRC
223 #define UPM1_REG UCSRC
224 #define UMSEL0_REG UCSRC
227 #define ICR1L0_REG ICR1L
228 #define ICR1L1_REG ICR1L
229 #define ICR1L2_REG ICR1L
230 #define ICR1L3_REG ICR1L
231 #define ICR1L4_REG ICR1L
232 #define ICR1L5_REG ICR1L
233 #define ICR1L6_REG ICR1L
234 #define ICR1L7_REG ICR1L
237 #define AC1M0_REG AC1CON
238 #define AC1M1_REG AC1CON
239 #define AC1M2_REG AC1CON
240 #define AC1ICE_REG AC1CON
241 #define AC1IS0_REG AC1CON
242 #define AC1IS1_REG AC1CON
243 #define AC1IE_REG AC1CON
244 #define AC1EN_REG AC1CON
247 #define PRADC_REG PRR
248 #define PRUSART0_REG PRR
249 #define PRSPI_REG PRR
250 #define PRTIM0_REG PRR
251 #define PRTIM1_REG PRR
252 #define PRPSC0_REG PRR
253 #define PRPSC1_REG PRR
254 #define PRPSC2_REG PRR
257 #define PCLKSEL0_REG PCNF0
258 #define POP0_REG PCNF0
259 #define PMODE00_REG PCNF0
260 #define PMODE01_REG PCNF0
261 #define PLOCK0_REG PCNF0
262 #define PALOCK0_REG PCNF0
263 #define PFIFTY0_REG PCNF0
266 #define PCLKSEL1_REG PCNF1
267 #define POP1_REG PCNF1
268 #define PMODE10_REG PCNF1
269 #define PMODE11_REG PCNF1
270 #define PLOCK1_REG PCNF1
271 #define PALOCK1_REG PCNF1
272 #define PFIFTY1_REG PCNF1
275 #define POME2_REG PCNF2
276 #define PCLKSEL2_REG PCNF2
277 #define POP2_REG PCNF2
278 #define PMODE20_REG PCNF2
279 #define PMODE21_REG PCNF2
280 #define PLOCK2_REG PCNF2
281 #define PALOCK2_REG PCNF2
282 #define PFIFTY2_REG PCNF2
285 #define TCNT1L0_REG TCNT1L
286 #define TCNT1L1_REG TCNT1L
287 #define TCNT1L2_REG TCNT1L
288 #define TCNT1L3_REG TCNT1L
289 #define TCNT1L4_REG TCNT1L
290 #define TCNT1L5_REG TCNT1L
291 #define TCNT1L6_REG TCNT1L
292 #define TCNT1L7_REG TCNT1L
295 #define PORTD0_REG PORTD
296 #define PORTD1_REG PORTD
297 #define PORTD2_REG PORTD
298 #define PORTD3_REG PORTD
299 #define PORTD4_REG PORTD
300 #define PORTD5_REG PORTD
301 #define PORTD6_REG PORTD
302 #define PORTD7_REG PORTD
305 #define PORTE0_REG PORTE
306 #define PORTE1_REG PORTE
307 #define PORTE2_REG PORTE
310 #define TCNT1H0_REG TCNT1H
311 #define TCNT1H1_REG TCNT1H
312 #define TCNT1H2_REG TCNT1H
313 #define TCNT1H3_REG TCNT1H
314 #define TCNT1H4_REG TCNT1H
315 #define TCNT1H5_REG TCNT1H
316 #define TCNT1H6_REG TCNT1H
317 #define TCNT1H7_REG TCNT1H
320 #define PORTC0_REG PORTC
321 #define PORTC1_REG PORTC
322 #define PORTC2_REG PORTC
323 #define PORTC3_REG PORTC
324 #define PORTC4_REG PORTC
325 #define PORTC5_REG PORTC
326 #define PORTC6_REG PORTC
327 #define PORTC7_REG PORTC
330 #define AMP1TS0_REG AMP1CSR
331 #define AMP1TS1_REG AMP1CSR
332 #define AMP1G0_REG AMP1CSR
333 #define AMP1G1_REG AMP1CSR
334 #define AMP1IS_REG AMP1CSR
335 #define AMP1EN_REG AMP1CSR
338 #define AC2M0_REG AC2CON
339 #define AC2M1_REG AC2CON
340 #define AC2M2_REG AC2CON
341 #define AC2IS0_REG AC2CON
342 #define AC2IS1_REG AC2CON
343 #define AC2IE_REG AC2CON
344 #define AC2EN_REG AC2CON
347 #define INT0_REG EIMSK
348 #define INT1_REG EIMSK
349 #define INT2_REG EIMSK
350 #define INT3_REG EIMSK
353 #define PRFM0A0_REG PFRC0A
354 #define PRFM0A1_REG PFRC0A
355 #define PRFM0A2_REG PFRC0A
356 #define PRFM0A3_REG PFRC0A
357 #define PFLTE0A_REG PFRC0A
358 #define PELEV0A_REG PFRC0A
359 #define PISEL0A_REG PFRC0A
360 #define PCAE0A_REG PFRC0A
363 #define PRFM0B0_REG PFRC0B
364 #define PRFM0B1_REG PFRC0B
365 #define PRFM0B2_REG PFRC0B
366 #define PRFM0B3_REG PFRC0B
367 #define PFLTE0B_REG PFRC0B
368 #define PELEV0B_REG PFRC0B
369 #define PISEL0B_REG PFRC0B
370 #define PCAE0B_REG PFRC0B
373 #define PICR1_8_REG PICR1H
374 #define PICR1_9_REG PICR1H
375 #define PICR1_10_REG PICR1H
376 #define PICR1_11_REG PICR1H
379 #define PICR1_0_REG PICR1L
380 #define PICR1_1_REG PICR1L
381 #define PICR1_2_REG PICR1L
382 #define PICR1_3_REG PICR1L
383 #define PICR1_4_REG PICR1L
384 #define PICR1_5_REG PICR1L
385 #define PICR1_6_REG PICR1L
386 #define PICR1_7_REG PICR1L
389 #define ISC00_REG EICRA
390 #define ISC01_REG EICRA
391 #define ISC10_REG EICRA
392 #define ISC11_REG EICRA
393 #define ISC20_REG EICRA
394 #define ISC21_REG EICRA
395 #define ISC30_REG EICRA
396 #define ISC31_REG EICRA
399 #define ADC0D_REG DIDR0
400 #define ADC1D_REG DIDR0
401 #define ADC2D_REG DIDR0
402 #define ADC3D_REG DIDR0
403 #define ADC4D_REG DIDR0
404 #define ADC5D_REG DIDR0
405 #define ADC6D_REG DIDR0
406 #define ADC7D_REG DIDR0
409 #define ADC8D_REG DIDR1
410 #define ADC9D_REG DIDR1
411 #define ADC10D_REG DIDR1
412 #define AMP0ND_REG DIDR1
413 #define AMP0PD_REG DIDR1
414 #define ACMP0D_REG DIDR1
417 #define OCR1RA_8_REG OCR1RAH
418 #define OCR1RA_9_REG OCR1RAH
419 #define OCR1RA_10_REG OCR1RAH
420 #define OCR1RA_11_REG OCR1RAH
423 #define OCR1RA_0_REG OCR1RAL
424 #define OCR1RA_1_REG OCR1RAL
425 #define OCR1RA_2_REG OCR1RAL
426 #define OCR1RA_3_REG OCR1RAL
427 #define OCR1RA_4_REG OCR1RAL
428 #define OCR1RA_5_REG OCR1RAL
429 #define OCR1RA_6_REG OCR1RAL
430 #define OCR1RA_7_REG OCR1RAL
433 #define CLKPS0_REG CLKPR
434 #define CLKPS1_REG CLKPR
435 #define CLKPS2_REG CLKPR
436 #define CLKPS3_REG CLKPR
437 #define CLKPCE_REG CLKPR
440 #define OCR0RB_8_REG OCR0RBH
441 #define OCR0RB_9_REG OCR0RBH
442 #define OCR0RB_00_REG OCR0RBH
443 #define OCR0RB_01_REG OCR0RBH
444 #define OCR0RB_02_REG OCR0RBH
445 #define OCR0RB_03_REG OCR0RBH
446 #define OCR0RB_04_REG OCR0RBH
447 #define OCR0RB_05_REG OCR0RBH
450 #define OCR0RB_0_REG OCR0RBL
451 #define OCR0RB_1_REG OCR0RBL
452 #define OCR0RB_2_REG OCR0RBL
453 #define OCR0RB_3_REG OCR0RBL
454 #define OCR0RB_4_REG OCR0RBL
455 #define OCR0RB_5_REG OCR0RBL
456 #define OCR0RB_6_REG OCR0RBL
457 #define OCR0RB_7_REG OCR0RBL
460 #define DDB0_REG DDRB
461 #define DDB1_REG DDRB
462 #define DDB2_REG DDRB
463 #define DDB3_REG DDRB
464 #define DDB4_REG DDRB
465 #define DDB5_REG DDRB
466 #define DDB6_REG DDRB
467 #define DDB7_REG DDRB
470 #define SPMEN_REG SPMCSR
471 #define PGERS_REG SPMCSR
472 #define PGWRT_REG SPMCSR
473 #define BLBSET_REG SPMCSR
474 #define RWWSRE_REG SPMCSR
475 #define RWWSB_REG SPMCSR
476 #define SPMIE_REG SPMCSR
479 #define WGM10_REG TCCR1A
480 #define WGM11_REG TCCR1A
481 #define COM1B0_REG TCCR1A
482 #define COM1B1_REG TCCR1A
483 #define COM1A0_REG TCCR1A
484 #define COM1A1_REG TCCR1A
487 #define FOC1B_REG TCCR1C
488 #define FOC1A_REG TCCR1C
491 #define CS10_REG TCCR1B
492 #define CS11_REG TCCR1B
493 #define CS12_REG TCCR1B
494 #define WGM12_REG TCCR1B
495 #define WGM13_REG TCCR1B
496 #define ICES1_REG TCCR1B
497 #define ICNC1_REG TCCR1B
500 #define CAL0_REG OSCCAL
501 #define CAL1_REG OSCCAL
502 #define CAL2_REG OSCCAL
503 #define CAL3_REG OSCCAL
504 #define CAL4_REG OSCCAL
505 #define CAL5_REG OSCCAL
506 #define CAL6_REG OSCCAL
509 #define OCR0RA_0_REG OCR0RAL
510 #define OCR0RA_1_REG OCR0RAL
511 #define OCR0RA_2_REG OCR0RAL
512 #define OCR0RA_3_REG OCR0RAL
513 #define OCR0RA_4_REG OCR0RAL
514 #define OCR0RA_5_REG OCR0RAL
515 #define OCR0RA_6_REG OCR0RAL
516 #define OCR0RA_7_REG OCR0RAL
519 #define DDD0_REG DDRD
520 #define DDD1_REG DDRD
521 #define DDD2_REG DDRD
522 #define DDD3_REG DDRD
523 #define DDD4_REG DDRD
524 #define DDD5_REG DDRD
525 #define DDD6_REG DDRD
526 #define DDD7_REG DDRD
529 #define GPIOR10_REG GPIOR1
530 #define GPIOR11_REG GPIOR1
531 #define GPIOR12_REG GPIOR1
532 #define GPIOR13_REG GPIOR1
533 #define GPIOR14_REG GPIOR1
534 #define GPIOR15_REG GPIOR1
535 #define GPIOR16_REG GPIOR1
536 #define GPIOR17_REG GPIOR1
539 #define GPIOR00_REG GPIOR0
540 #define GPIOR01_REG GPIOR0
541 #define GPIOR02_REG GPIOR0
542 #define GPIOR03_REG GPIOR0
543 #define GPIOR04_REG GPIOR0
544 #define GPIOR05_REG GPIOR0
545 #define GPIOR06_REG GPIOR0
546 #define GPIOR07_REG GPIOR0
549 #define GPIOR30_REG GPIOR3
550 #define GPIOR31_REG GPIOR3
551 #define GPIOR32_REG GPIOR3
552 #define GPIOR33_REG GPIOR3
553 #define GPIOR34_REG GPIOR3
554 #define GPIOR35_REG GPIOR3
555 #define GPIOR36_REG GPIOR3
556 #define GPIOR37_REG GPIOR3
559 #define GPIOR20_REG GPIOR2
560 #define GPIOR21_REG GPIOR2
561 #define GPIOR22_REG GPIOR2
562 #define GPIOR23_REG GPIOR2
563 #define GPIOR24_REG GPIOR2
564 #define GPIOR25_REG GPIOR2
565 #define GPIOR26_REG GPIOR2
566 #define GPIOR27_REG GPIOR2
569 #define ADCL0_REG ADCL
570 #define ADCL1_REG ADCL
571 #define ADCL2_REG ADCL
572 #define ADCL3_REG ADCL
573 #define ADCL4_REG ADCL
574 #define ADCL5_REG ADCL
575 #define ADCL6_REG ADCL
576 #define ADCL7_REG ADCL
579 #define DDE0_REG DDRE
580 #define DDE1_REG DDRE
581 #define DDE2_REG DDRE
584 #define TCNT0_0_REG TCNT0
585 #define TCNT0_1_REG TCNT0
586 #define TCNT0_2_REG TCNT0
587 #define TCNT0_3_REG TCNT0
588 #define TCNT0_4_REG TCNT0
589 #define TCNT0_5_REG TCNT0
590 #define TCNT0_6_REG TCNT0
591 #define TCNT0_7_REG TCNT0
594 #define CS00_REG TCCR0B
595 #define CS01_REG TCCR0B
596 #define CS02_REG TCCR0B
597 #define WGM02_REG TCCR0B
598 #define FOC0B_REG TCCR0B
599 #define FOC0A_REG TCCR0B
602 #define WGM00_REG TCCR0A
603 #define WGM01_REG TCCR0A
604 #define COM0B0_REG TCCR0A
605 #define COM0B1_REG TCCR0A
606 #define COM0A0_REG TCCR0A
607 #define COM0A1_REG TCCR0A
610 #define PRFM2B0_REG PFRC2B
611 #define PRFM2B1_REG PFRC2B
612 #define PRFM2B2_REG PFRC2B
613 #define PRFM2B3_REG PFRC2B
614 #define PFLTE2B_REG PFRC2B
615 #define PELEV2B_REG PFRC2B
616 #define PISEL2B_REG PFRC2B
617 #define PCAE2B_REG PFRC2B
620 #define PRFM2A0_REG PFRC2A
621 #define PRFM2A1_REG PFRC2A
622 #define PRFM2A2_REG PFRC2A
623 #define PRFM2A3_REG PFRC2A
624 #define PFLTE2A_REG PFRC2A
625 #define PELEV2A_REG PFRC2A
626 #define PISEL2A_REG PFRC2A
627 #define PCAE2A_REG PFRC2A
630 #define OCR2SA_0_REG OCR2SAL
631 #define OCR2SA_1_REG OCR2SAL
632 #define OCR2SA_2_REG OCR2SAL
633 #define OCR2SA_3_REG OCR2SAL
634 #define OCR2SA_4_REG OCR2SAL
635 #define OCR2SA_5_REG OCR2SAL
636 #define OCR2SA_6_REG OCR2SAL
637 #define OCR2SA_7_REG OCR2SAL
640 #define URxS0_REG EUCSRA
641 #define URxS1_REG EUCSRA
642 #define URxS2_REG EUCSRA
643 #define URxS3_REG EUCSRA
644 #define UTxS0_REG EUCSRA
645 #define UTxS1_REG EUCSRA
646 #define UTxS2_REG EUCSRA
647 #define UTxS3_REG EUCSRA
650 #define BODR_REG EUCSRB
651 #define EMCH_REG EUCSRB
652 #define EUSBS_REG EUCSRB
653 #define EUSART_REG EUCSRB
656 #define STP0_REG EUCSRC
657 #define STP1_REG EUCSRC
658 #define F1617_REG EUCSRC
659 #define FEM_REG EUCSRC
662 #define PRUN0_REG PCTL0
663 #define PCCYC0_REG PCTL0
664 #define PARUN0_REG PCTL0
665 #define PAOC0A_REG PCTL0
666 #define PAOC0B_REG PCTL0
667 #define PBFM0_REG PCTL0
668 #define PPRE00_REG PCTL0
669 #define PPRE01_REG PCTL0
672 #define PRUN1_REG PCTL1
673 #define PCCYC1_REG PCTL1
674 #define PARUN1_REG PCTL1
675 #define PAOC1A_REG PCTL1
676 #define PAOC1B_REG PCTL1
677 #define PBFM1_REG PCTL1
678 #define PPRE10_REG PCTL1
679 #define PPRE11_REG PCTL1
682 #define PRUN2_REG PCTL2
683 #define PCCYC2_REG PCTL2
684 #define PARUN2_REG PCTL2
685 #define PAOC2A_REG PCTL2
686 #define PAOC2B_REG PCTL2
687 #define PBFM2_REG PCTL2
688 #define PPRE20_REG PCTL2
689 #define PPRE21_REG PCTL2
692 #define SPR0_REG SPCR
693 #define SPR1_REG SPCR
694 #define CPHA_REG SPCR
695 #define CPOL_REG SPCR
696 #define MSTR_REG SPCR
697 #define DORD_REG SPCR
699 #define SPIE_REG SPCR
702 #define TOV1_REG TIFR1
703 #define OCF1A_REG TIFR1
704 #define OCF1B_REG TIFR1
705 #define ICF1_REG TIFR1
708 #define PSR10_REG GTCCR
709 #define ICPSEL1_REG GTCCR
710 #define TSM_REG GTCCR
711 #define PSRSYNC_REG GTCCR
724 #define POMV2A0_REG POM2
725 #define POMV2A1_REG POM2
726 #define POMV2A2_REG POM2
727 #define POMV2A3_REG POM2
728 #define POMV2B0_REG POM2
729 #define POMV2B1_REG POM2
730 #define POMV2B2_REG POM2
731 #define POMV2B3_REG POM2
734 #define OCR2RB_0_REG OCR2RBL
735 #define OCR2RB_1_REG OCR2RBL
736 #define OCR2RB_2_REG OCR2RBL
737 #define OCR2RB_3_REG OCR2RBL
738 #define OCR2RB_4_REG OCR2RBL
739 #define OCR2RB_5_REG OCR2RBL
740 #define OCR2RB_6_REG OCR2RBL
741 #define OCR2RB_7_REG OCR2RBL
744 #define PICR2_8_REG PICR2H
745 #define PICR2_9_REG PICR2H
746 #define PICR2_10_REG PICR2H
747 #define PICR2_11_REG PICR2H
750 #define OCR2RB_8_REG OCR2RBH
751 #define OCR2RB_9_REG OCR2RBH
752 #define OCR2RB_10_REG OCR2RBH
753 #define OCR2RB_11_REG OCR2RBH
754 #define OCR2RB_12_REG OCR2RBH
755 #define OCR2RB_13_REG OCR2RBH
756 #define OCR2RB_14_REG OCR2RBH
757 #define OCR2RB_15_REG OCR2RBH
760 #define PICR2_0_REG PICR2L
761 #define PICR2_1_REG PICR2L
762 #define PICR2_2_REG PICR2L
763 #define PICR2_3_REG PICR2L
764 #define PICR2_4_REG PICR2L
765 #define PICR2_5_REG PICR2L
766 #define PICR2_6_REG PICR2L
767 #define PICR2_7_REG PICR2L
770 #define OCR1BL0_REG OCR1BL
771 #define OCR1BL1_REG OCR1BL
772 #define OCR1BL2_REG OCR1BL
773 #define OCR1BL3_REG OCR1BL
774 #define OCR1BL4_REG OCR1BL
775 #define OCR1BL5_REG OCR1BL
776 #define OCR1BL6_REG OCR1BL
777 #define OCR1BL7_REG OCR1BL
780 #define OCR1BH0_REG OCR1BH
781 #define OCR1BH1_REG OCR1BH
782 #define OCR1BH2_REG OCR1BH
783 #define OCR1BH3_REG OCR1BH
784 #define OCR1BH4_REG OCR1BH
785 #define OCR1BH5_REG OCR1BH
786 #define OCR1BH6_REG OCR1BH
787 #define OCR1BH7_REG OCR1BH
800 #define PORF_REG MCUSR
801 #define EXTRF_REG MCUSR
802 #define BORF_REG MCUSR
803 #define WDRF_REG MCUSR
806 #define EERE_REG EECR
807 #define EEWE_REG EECR
808 #define EEMWE_REG EECR
809 #define EERIE_REG EECR
818 #define PLOCK_REG PLLCSR
819 #define PLLE_REG PLLCSR
820 #define PLLF_REG PLLCSR
823 #define OCR2RA_8_REG OCR2RAH
824 #define OCR2RA_9_REG OCR2RAH
825 #define OCR2RA_10_REG OCR2RAH
826 #define OCR2RA_11_REG OCR2RAH
829 #define OCR2RA_0_REG OCR2RAL
830 #define OCR2RA_1_REG OCR2RAL
831 #define OCR2RA_2_REG OCR2RAL
832 #define OCR2RA_3_REG OCR2RAL
833 #define OCR2RA_4_REG OCR2RAL
834 #define OCR2RA_5_REG OCR2RAL
835 #define OCR2RA_6_REG OCR2RAL
836 #define OCR2RA_7_REG OCR2RAL
839 #define OCR0SA_0_REG OCR0SAL
840 #define OCR0SA_1_REG OCR0SAL
841 #define OCR0SA_2_REG OCR0SAL
842 #define OCR0SA_3_REG OCR0SAL
843 #define OCR0SA_4_REG OCR0SAL
844 #define OCR0SA_5_REG OCR0SAL
845 #define OCR0SA_6_REG OCR0SAL
846 #define OCR0SA_7_REG OCR0SAL
849 #define OCR0SA_8_REG OCR0SAH
850 #define OCR0SA_9_REG OCR0SAH
851 #define OCR0SA_00_REG OCR0SAH
852 #define OCR0SA_01_REG OCR0SAH
855 #define EEAR8_REG EEARH
856 #define EEAR9_REG EEARH
857 #define EEAR10_REG EEARH
858 #define EEAR11_REG EEARH
861 #define EEARL0_REG EEARL
862 #define EEARL1_REG EEARL
863 #define EEARL2_REG EEARL
864 #define EEARL3_REG EEARL
865 #define EEARL4_REG EEARL
866 #define EEARL5_REG EEARL
867 #define EEARL6_REG EEARL
868 #define EEARL7_REG EEARL
871 #define IVCE_REG MCUCR
872 #define IVSEL_REG MCUCR
873 #define PUD_REG MCUCR
874 #define SPIPS_REG MCUCR
877 #define PICR0_8_REG PICR0H
878 #define PICR0_9_REG PICR0H
879 #define PICR0_10_REG PICR0H
880 #define PICR0_11_REG PICR0H
883 #define INTF0_REG EIFR
884 #define INTF1_REG EIFR
885 #define INTF2_REG EIFR
886 #define INTF3_REG EIFR
889 #define MUBRR0_REG MUBRRL
890 #define MUBRR1_REG MUBRRL
891 #define MUBRR2_REG MUBRRL
892 #define MUBRR3_REG MUBRRL
893 #define MUBRR4_REG MUBRRL
894 #define MUBRR5_REG MUBRRL
895 #define MUBRR6_REG MUBRRL
896 #define MUBRR7_REG MUBRRL
899 #define MUBRR8_REG MUBRRH
900 #define MUBRR9_REG MUBRRH
901 #define MUBRR10_REG MUBRRH
902 #define MUBRR11_REG MUBRRH
903 #define MUBRR12_REG MUBRRH
904 #define MUBRR13_REG MUBRRH
905 #define MUBRR14_REG MUBRRH
906 #define MUBRR15_REG MUBRRH
909 #define OCR2SA_8_REG OCR2SAH
910 #define OCR2SA_9_REG OCR2SAH
911 #define OCR2SA_10_REG OCR2SAH
912 #define OCR2SA_11_REG OCR2SAH
915 #define OCR0SB_0_REG OCR0SBL
916 #define OCR0SB_1_REG OCR0SBL
917 #define OCR0SB_2_REG OCR0SBL
918 #define OCR0SB_3_REG OCR0SBL
919 #define OCR0SB_4_REG OCR0SBL
920 #define OCR0SB_5_REG OCR0SBL
921 #define OCR0SB_6_REG OCR0SBL
922 #define OCR0SB_7_REG OCR0SBL
925 #define OCR0SB_8_REG OCR0SBH
926 #define OCR0SB_9_REG OCR0SBH
927 #define OCR0SB_00_REG OCR0SBH
928 #define OCR0SB_01_REG OCR0SBH
931 #define DDC0_REG DDRC
932 #define DDC1_REG DDRC
933 #define DDC2_REG DDRC
934 #define DDC3_REG DDRC
935 #define DDC4_REG DDRC
936 #define DDC5_REG DDRC
937 #define DDC6_REG DDRC
938 #define DDC7_REG DDRC
941 #define PRFM1B0_REG PFRC1B
942 #define PRFM1B1_REG PFRC1B
943 #define PRFM1B2_REG PFRC1B
944 #define PRFM1B3_REG PFRC1B
945 #define PFLTE1B_REG PFRC1B
946 #define PELEV1B_REG PFRC1B
947 #define PISEL1B_REG PFRC1B
948 #define PCAE1B_REG PFRC1B
951 #define PRFM1A0_REG PFRC1A
952 #define PRFM1A1_REG PFRC1A
953 #define PRFM1A2_REG PFRC1A
954 #define PRFM1A3_REG PFRC1A
955 #define PFLTE1A_REG PFRC1A
956 #define PELEV1A_REG PFRC1A
957 #define PISEL1A_REG PFRC1A
958 #define PCAE1A_REG PFRC1A
961 #define PICR0_0_REG PICR0L
962 #define PICR0_1_REG PICR0L
963 #define PICR0_2_REG PICR0L
964 #define PICR0_3_REG PICR0L
965 #define PICR0_4_REG PICR0L
966 #define PICR0_5_REG PICR0L
967 #define PICR0_6_REG PICR0L
968 #define PICR0_7_REG PICR0L
971 #define OCR1SA_0_REG OCR1SAL
972 #define OCR1SA_1_REG OCR1SAL
973 #define OCR1SA_2_REG OCR1SAL
974 #define OCR1SA_3_REG OCR1SAL
975 #define OCR1SA_4_REG OCR1SAL
976 #define OCR1SA_5_REG OCR1SAL
977 #define OCR1SA_6_REG OCR1SAL
978 #define OCR1SA_7_REG OCR1SAL
981 #define ADPS0_REG ADCSRA
982 #define ADPS1_REG ADCSRA
983 #define ADPS2_REG ADCSRA
984 #define ADIE_REG ADCSRA
985 #define ADIF_REG ADCSRA
986 #define ADATE_REG ADCSRA
987 #define ADSC_REG ADCSRA
988 #define ADEN_REG ADCSRA
991 #define POEN0A_REG PSOC0
992 #define POEN0B_REG PSOC0
993 #define PSYNC00_REG PSOC0
994 #define PSYNC01_REG PSOC0
997 #define POEN1A_REG PSOC1
998 #define POEN1B_REG PSOC1
999 #define PSYNC1_0_REG PSOC1
1000 #define PSYNC1_1_REG PSOC1
1003 /* #define OCR0_0_REG OCR0A */ /* dup in OCR0B */
1004 /* #define OCR0_1_REG OCR0A */ /* dup in OCR0B */
1005 /* #define OCR0_2_REG OCR0A */ /* dup in OCR0B */
1006 /* #define OCR0_3_REG OCR0A */ /* dup in OCR0B */
1007 /* #define OCR0_4_REG OCR0A */ /* dup in OCR0B */
1008 /* #define OCR0_5_REG OCR0A */ /* dup in OCR0B */
1009 /* #define OCR0_6_REG OCR0A */ /* dup in OCR0B */
1010 /* #define OCR0_7_REG OCR0A */ /* dup in OCR0B */
1013 #define AC0O_REG ACSR
1014 #define AC1O_REG ACSR
1015 #define AC2O_REG ACSR
1016 #define AC0IF_REG ACSR
1017 #define AC1IF_REG ACSR
1018 #define AC2IF_REG ACSR
1019 #define ACCKDIV_REG ACSR
1022 #define OCR1RB_0_REG OCR1RBL
1023 #define OCR1RB_1_REG OCR1RBL
1024 #define OCR1RB_2_REG OCR1RBL
1025 #define OCR1RB_3_REG OCR1RBL
1026 #define OCR1RB_4_REG OCR1RBL
1027 #define OCR1RB_5_REG OCR1RBL
1028 #define OCR1RB_6_REG OCR1RBL
1029 #define OCR1RB_7_REG OCR1RBL
1032 #define OCR1SB_8_REG OCR1SBH
1033 #define OCR1SB_9_REG OCR1SBH
1034 #define OCR1SB_10_REG OCR1SBH
1035 #define OCR1SB_11_REG OCR1SBH
1038 #define OCR1RB_8_REG OCR1RBH
1039 #define OCR1RB_9_REG OCR1RBH
1040 #define OCR1RB_10_REG OCR1RBH
1041 #define OCR1RB_11_REG OCR1RBH
1042 #define OCR1RB_12_REG OCR1RBH
1043 #define OCR1RB_13_REG OCR1RBH
1044 #define OCR1RB_14_REG OCR1RBH
1045 #define OCR1RB_15_REG OCR1RBH
1048 #define OCR1SB_0_REG OCR1SBL
1049 #define OCR1SB_1_REG OCR1SBL
1050 #define OCR1SB_2_REG OCR1SBL
1051 #define OCR1SB_3_REG OCR1SBL
1052 #define OCR1SB_4_REG OCR1SBL
1053 #define OCR1SB_5_REG OCR1SBL
1054 #define OCR1SB_6_REG OCR1SBL
1055 #define OCR1SB_7_REG OCR1SBL
1058 #define OCR1SA_8_REG OCR1SAH
1059 #define OCR1SA_9_REG OCR1SAH
1060 #define OCR1SA_10_REG OCR1SAH
1061 #define OCR1SA_11_REG OCR1SAH
1064 #define UBRR8_REG UBRRH
1065 #define UBRR9_REG UBRRH
1066 #define UBRR10_REG UBRRH
1067 #define UBRR11_REG UBRRH
1070 #define DACL0_REG DACL
1071 #define DACL1_REG DACL
1072 #define DACL2_REG DACL
1073 #define DACL3_REG DACL
1074 #define DACL4_REG DACL
1075 #define DACL5_REG DACL
1076 #define DACL6_REG DACL
1077 #define DACL7_REG DACL
1080 #define UBRR0_REG UBRRL
1081 #define UBRR1_REG UBRRL
1082 #define UBRR2_REG UBRRL
1083 #define UBRR3_REG UBRRL
1084 #define UBRR4_REG UBRRL
1085 #define UBRR5_REG UBRRL
1086 #define UBRR6_REG UBRRL
1087 #define UBRR7_REG UBRRL
1090 #define DACH0_REG DACH
1091 #define DACH1_REG DACH
1092 #define DACH2_REG DACH
1093 #define DACH3_REG DACH
1094 #define DACH4_REG DACH
1095 #define DACH5_REG DACH
1096 #define DACH6_REG DACH
1097 #define DACH7_REG DACH
1100 #define OCR0RA_8_REG OCR0RAH
1101 #define OCR0RA_9_REG OCR0RAH
1102 #define OCR0RA_00_REG OCR0RAH
1103 #define OCR0RA_01_REG OCR0RAH
1106 #define PEOPE2_REG PIM2
1107 #define PEVE2A_REG PIM2
1108 #define PEVE2B_REG PIM2
1109 #define PSEIE2_REG PIM2
1112 #define PEOPE0_REG PIM0
1113 #define PEVE0A_REG PIM0
1114 #define PEVE0B_REG PIM0
1115 #define PSEIE0_REG PIM0
1118 #define PEOPE1_REG PIM1
1119 #define PEVE1A_REG PIM1
1120 #define PEVE1B_REG PIM1
1121 #define PSEIE1_REG PIM1
1124 #define PEOP2_REG PIFR2
1125 #define PRN20_REG PIFR2
1126 #define PRN21_REG PIFR2
1127 #define PEV2A_REG PIFR2
1128 #define PEV2B_REG PIFR2
1129 #define PSEI2_REG PIFR2
1132 #define PORTB0_REG PORTB
1133 #define PORTB1_REG PORTB
1134 #define PORTB2_REG PORTB
1135 #define PORTB3_REG PORTB
1136 #define PORTB4_REG PORTB
1137 #define PORTB5_REG PORTB
1138 #define PORTB6_REG PORTB
1139 #define PORTB7_REG PORTB
1142 #define PEOP0_REG PIFR0
1143 #define PRN00_REG PIFR0
1144 #define PRN01_REG PIFR0
1145 #define PEV0A_REG PIFR0
1146 #define PEV0B_REG PIFR0
1147 #define PSEI0_REG PIFR0
1150 #define PEOP1_REG PIFR1
1151 #define PRN10_REG PIFR1
1152 #define PRN11_REG PIFR1
1153 #define PEV1A_REG PIFR1
1154 #define PEV1B_REG PIFR1
1155 #define PSEI1_REG PIFR1
1158 #define ADCH0_REG ADCH
1159 #define ADCH1_REG ADCH
1160 #define ADCH2_REG ADCH
1161 #define ADCH3_REG ADCH
1162 #define ADCH4_REG ADCH
1163 #define ADCH5_REG ADCH
1164 #define ADCH6_REG ADCH
1165 #define ADCH7_REG ADCH
1168 #define POEN2A_REG PSOC2
1169 #define POEN2C_REG PSOC2
1170 #define POEN2B_REG PSOC2
1171 #define POEN2D_REG PSOC2
1172 #define PSYNC2_0_REG PSOC2
1173 #define PSYNC2_1_REG PSOC2
1174 #define POS22_REG PSOC2
1175 #define POS23_REG PSOC2
1178 #define TOIE0_REG TIMSK0
1179 #define OCIE0A_REG TIMSK0
1180 #define OCIE0B_REG TIMSK0
1183 #define TOIE1_REG TIMSK1
1184 #define OCIE1A_REG TIMSK1
1185 #define OCIE1B_REG TIMSK1
1186 #define ICIE1_REG TIMSK1
1189 #define AMP0TS0_REG AMP0CSR
1190 #define AMP0TS1_REG AMP0CSR
1191 #define AMP0G0_REG AMP0CSR
1192 #define AMP0G1_REG AMP0CSR
1193 #define AMP0IS_REG AMP0CSR
1194 #define AMP0EN_REG AMP0CSR
1197 #define UDR0_REG UDR
1198 #define UDR1_REG UDR
1199 #define UDR2_REG UDR
1200 #define UDR3_REG UDR
1201 #define UDR4_REG UDR
1202 #define UDR5_REG UDR
1203 #define UDR6_REG UDR
1204 #define UDR7_REG UDR
1207 #define DAEN_REG DACON
1208 #define DALA_REG DACON
1209 #define DATS0_REG DACON
1210 #define DATS1_REG DACON
1211 #define DATS2_REG DACON
1212 #define DAATE_REG DACON
1215 #define PINC0_REG PINC
1216 #define PINC1_REG PINC
1217 #define PINC2_REG PINC
1218 #define PINC3_REG PINC
1219 #define PINC4_REG PINC
1220 #define PINC5_REG PINC
1221 #define PINC6_REG PINC
1222 #define PINC7_REG PINC
1225 #define PINB0_REG PINB
1226 #define PINB1_REG PINB
1227 #define PINB2_REG PINB
1228 #define PINB3_REG PINB
1229 #define PINB4_REG PINB
1230 #define PINB5_REG PINB
1231 #define PINB6_REG PINB
1232 #define PINB7_REG PINB
1235 #define AC0M0_REG AC0CON
1236 #define AC0M1_REG AC0CON
1237 #define AC0M2_REG AC0CON
1238 #define AC0IS0_REG AC0CON
1239 #define AC0IS1_REG AC0CON
1240 #define AC0IE_REG AC0CON
1241 #define AC0EN_REG AC0CON
1244 #define ADTS0_REG ADCSRB
1245 #define ADTS1_REG ADCSRB
1246 #define ADTS2_REG ADCSRB
1247 #define ADTS3_REG ADCSRB
1248 #define ADASCR_REG ADCSRB
1249 #define ADHSM_REG ADCSRB
1252 #define PINE0_REG PINE
1253 #define PINE1_REG PINE
1254 #define PINE2_REG PINE
1257 #define PIND0_REG PIND
1258 #define PIND1_REG PIND
1259 #define PIND2_REG PIND
1260 #define PIND3_REG PIND
1261 #define PIND4_REG PIND
1262 #define PIND5_REG PIND
1263 #define PIND6_REG PIND
1264 #define PIND7_REG PIND
1267 #define OCR1AH0_REG OCR1AH
1268 #define OCR1AH1_REG OCR1AH
1269 #define OCR1AH2_REG OCR1AH
1270 #define OCR1AH3_REG OCR1AH
1271 #define OCR1AH4_REG OCR1AH
1272 #define OCR1AH5_REG OCR1AH
1273 #define OCR1AH6_REG OCR1AH
1274 #define OCR1AH7_REG OCR1AH
1277 #define OCR1AL0_REG OCR1AL
1278 #define OCR1AL1_REG OCR1AL
1279 #define OCR1AL2_REG OCR1AL
1280 #define OCR1AL3_REG OCR1AL
1281 #define OCR1AL4_REG OCR1AL
1282 #define OCR1AL5_REG OCR1AL
1283 #define OCR1AL6_REG OCR1AL
1284 #define OCR1AL7_REG OCR1AL
1287 #define TOV0_REG TIFR0
1288 #define OCF0A_REG TIFR0
1289 #define OCF0B_REG TIFR0
1292 #define MISO_PORT PORTB
1294 #define PSCOUT20_PORT PORTB
1295 #define PSCOUT20_BIT 0
1297 #define MOSI_PORT PORTB
1299 #define PSCOUT21_PORT PORTB
1300 #define PSCOUT21_BIT 1
1302 #define ADC5_PORT PORTB
1304 #define INT1_PORT PORTB
1307 #define AMP0-_PORT PORTB
1310 #define AMP0+_PORT PORTB
1313 #define ADC6_PORT PORTB
1315 #define INT2_PORT PORTB
1318 #define ADC7_PORT PORTB
1320 #define PSCOUT11_PORT PORTB
1321 #define PSCOUT11_BIT 6
1322 #define ICP1B_PORT PORTB
1325 #define ADC4_PORT PORTB
1327 #define PSCOUT01_PORT PORTB
1328 #define PSCOUT01_BIT 7
1329 #define SCK_PORT PORTB
1332 #define INT3_PORT PORTC
1334 #define PSCOUT10_PORT PORTC
1335 #define PSCOUT10_BIT 0
1337 #define PSCIN1_PORT PORTC
1338 #define PSCIN1_BIT 1
1339 #define OC1B_PORT PORTC
1342 #define T0_PORT PORTC
1344 #define PSCOUT22_PORT PORTC
1345 #define PSCOUT22_BIT 2
1347 #define T1_PORT PORTC
1349 #define PSCOUT23_PORT PORTC
1350 #define PSCOUT23_BIT 3
1352 #define ADC8_PORT PORTC
1354 #define AMP1-_PORT PORTC
1357 #define ADC9_PORT PORTC
1359 #define AMP1+_PORT PORTC
1362 #define ADC10_PORT PORTC
1364 #define ACMP1_PORT PORTC
1367 #define D2A_PORT PORTC
1370 #define PSCOUT00_PORT PORTD
1371 #define PSCOUT00_BIT 0
1372 #define XCK_PORT PORTD
1374 #define SSA_PORT PORTD
1377 #define PSCIN0_PORT PORTD
1378 #define PSCIN0_BIT 1
1379 #define CLK0_PORT PORTD
1382 #define PSCIN2_PORT PORTD
1383 #define PSCIN2_BIT 2
1384 #define OC1A_PORT PORTD
1386 #define MISO_A_PORT PORTD
1387 #define MISO_A_BIT 2
1389 #define TXD_PORT PORTD
1391 #define DALI_PORT PORTD
1393 #define OC0A_PORT PORTD
1395 #define SS_PORT PORTD
1397 #define MOSI_A_PORT PORTD
1398 #define MOSI_A_BIT 3
1400 #define ADC1_PORT PORTD
1402 #define RXD_PORT PORTD
1404 #define DALI_PORT PORTD
1406 #define ICP1_PORT PORTD
1408 #define SCK_A_PORT PORTD
1411 #define ADC2_PORT PORTD
1413 #define ACOMP2_PORT PORTD
1414 #define ACOMP2_BIT 5
1416 #define ADC3_PORT PORTD
1418 #define ACMPM_PORT PORTD
1420 #define INT0_PORT PORTD
1423 #define ACMP0_PORT PORTD
1426 #define RESET_PORT PORTE
1428 #define OCD_PORT PORTE
1431 #define OC0B_PORT PORTE
1433 #define XTAL1_PORT PORTE
1436 #define ADC0_PORT PORTE
1438 #define XTAL2_PORT PORTE