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
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_32 3
70 #define TIMER2_PRESCALER_DIV_64 4
71 #define TIMER2_PRESCALER_DIV_128 5
72 #define TIMER2_PRESCALER_DIV_256 6
73 #define TIMER2_PRESCALER_DIV_1024 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 32
79 #define TIMER2_PRESCALER_REG_4 64
80 #define TIMER2_PRESCALER_REG_5 128
81 #define TIMER2_PRESCALER_REG_6 256
82 #define TIMER2_PRESCALER_REG_7 1024
85 /* available timers */
86 #define TIMER0_AVAILABLE
87 #define TIMER1_AVAILABLE
88 #define TIMER1A_AVAILABLE
89 #define TIMER1B_AVAILABLE
90 #define TIMER2_AVAILABLE
92 /* overflow interrupt number */
93 #define SIG_OVERFLOW0_NUM 0
94 #define SIG_OVERFLOW1_NUM 1
95 #define SIG_OVERFLOW2_NUM 2
96 #define SIG_OVERFLOW_TOTAL_NUM 3
98 /* output compare interrupt number */
99 #define SIG_OUTPUT_COMPARE0_NUM 0
100 #define SIG_OUTPUT_COMPARE1A_NUM 1
101 #define SIG_OUTPUT_COMPARE1B_NUM 2
102 #define SIG_OUTPUT_COMPARE2_NUM 3
103 #define SIG_OUTPUT_COMPARE_TOTAL_NUM 4
110 #define PWM_TOTAL_NUM 4
112 /* input capture interrupt number */
113 #define SIG_INPUT_CAPTURE1_NUM 0
114 #define SIG_INPUT_CAPTURE_TOTAL_NUM 1
118 #define WDP0_REG WDTCR
119 #define WDP1_REG WDTCR
120 #define WDP2_REG WDTCR
121 #define WDE_REG WDTCR
122 #define WDCE_REG WDTCR
125 #define ICR1H0_REG ICR1H
126 #define ICR1H1_REG ICR1H
127 #define ICR1H2_REG ICR1H
128 #define ICR1H3_REG ICR1H
129 #define ICR1H4_REG ICR1H
130 #define ICR1H5_REG ICR1H
131 #define ICR1H6_REG ICR1H
132 #define ICR1H7_REG ICR1H
135 #define MUX0_REG ADMUX
136 #define MUX1_REG ADMUX
137 #define MUX2_REG ADMUX
138 #define MUX3_REG ADMUX
139 #define MUX4_REG ADMUX
140 #define ADLAR_REG ADMUX
141 #define REFS0_REG ADMUX
142 #define REFS1_REG ADMUX
145 #define CS00_REG TCCR0
146 #define CS01_REG TCCR0
147 #define CS02_REG TCCR0
148 #define WGM01_REG TCCR0
149 #define COM00_REG TCCR0
150 #define COM01_REG TCCR0
151 #define WGM00_REG TCCR0
152 #define FOC0_REG TCCR0
165 #define DDB0_REG DDRB
166 #define DDB1_REG DDRB
167 #define DDB2_REG DDRB
168 #define DDB3_REG DDRB
169 #define DDB4_REG DDRB
170 #define DDB5_REG DDRB
171 #define DDB6_REG DDRB
172 #define DDB7_REG DDRB
175 #define IVCE_REG GICR
176 #define IVSEL_REG GICR
177 #define INT2_REG GICR
178 #define INT0_REG GICR
179 #define INT1_REG GICR
182 #define SPI2X_REG SPSR
183 #define WCOL_REG SPSR
184 #define SPIF_REG SPSR
187 #define TWD0_REG TWDR
188 #define TWD1_REG TWDR
189 #define TWD2_REG TWDR
190 #define TWD3_REG TWDR
191 #define TWD4_REG TWDR
192 #define TWD5_REG TWDR
193 #define TWD6_REG TWDR
194 #define TWD7_REG TWDR
197 #define EEDR0_REG EEDR
198 #define EEDR1_REG EEDR
199 #define EEDR2_REG EEDR
200 #define EEDR3_REG EEDR
201 #define EEDR4_REG EEDR
202 #define EEDR5_REG EEDR
203 #define EEDR6_REG EEDR
204 #define EEDR7_REG EEDR
207 #define DDC0_REG DDRC
208 #define DDC1_REG DDRC
209 #define DDC2_REG DDRC
210 #define DDC3_REG DDRC
211 #define DDC4_REG DDRC
212 #define DDC5_REG DDRC
213 #define DDC6_REG DDRC
214 #define DDC7_REG DDRC
217 #define DDA0_REG DDRA
218 #define DDA1_REG DDRA
219 #define DDA2_REG DDRA
220 #define DDA3_REG DDRA
221 #define DDA4_REG DDRA
222 #define DDA5_REG DDRA
223 #define DDA6_REG DDRA
224 #define DDA7_REG DDRA
227 #define WGM10_REG TCCR1A
228 #define WGM11_REG TCCR1A
229 #define FOC1B_REG TCCR1A
230 #define FOC1A_REG TCCR1A
231 #define COM1B0_REG TCCR1A
232 #define COM1B1_REG TCCR1A
233 #define COM1A0_REG TCCR1A
234 #define COM1A1_REG TCCR1A
237 #define DDD0_REG DDRD
238 #define DDD1_REG DDRD
239 #define DDD2_REG DDRD
240 #define DDD3_REG DDRD
241 #define DDD4_REG DDRD
242 #define DDD5_REG DDRD
243 #define DDD6_REG DDRD
244 #define DDD7_REG DDRD
247 #define CS10_REG TCCR1B
248 #define CS11_REG TCCR1B
249 #define CS12_REG TCCR1B
250 #define WGM12_REG TCCR1B
251 #define WGM13_REG TCCR1B
252 #define ICES1_REG TCCR1B
253 #define ICNC1_REG TCCR1B
256 #define INTF2_REG GIFR
257 #define INTF0_REG GIFR
258 #define INTF1_REG GIFR
261 #define TOIE0_REG TIMSK
262 #define OCIE0_REG TIMSK
263 #define TOIE1_REG TIMSK
264 #define OCIE1B_REG TIMSK
265 #define OCIE1A_REG TIMSK
266 #define TICIE1_REG TIMSK
267 #define TOIE2_REG TIMSK
268 #define OCIE2_REG TIMSK
271 #define ADPS0_REG ADCSRA
272 #define ADPS1_REG ADCSRA
273 #define ADPS2_REG ADCSRA
274 #define ADIE_REG ADCSRA
275 #define ADIF_REG ADCSRA
276 #define ADATE_REG ADCSRA
277 #define ADSC_REG ADCSRA
278 #define ADEN_REG ADCSRA
281 #define MPCM_REG UCSRA
282 #define U2X_REG UCSRA
283 #define UPE_REG UCSRA
284 #define DOR_REG UCSRA
286 #define UDRE_REG UCSRA
287 #define TXC_REG UCSRA
288 #define RXC_REG UCSRA
291 #define SPDR0_REG SPDR
292 #define SPDR1_REG SPDR
293 #define SPDR2_REG SPDR
294 #define SPDR3_REG SPDR
295 #define SPDR4_REG SPDR
296 #define SPDR5_REG SPDR
297 #define SPDR6_REG SPDR
298 #define SPDR7_REG SPDR
301 #define ADTS0_REG SFIOR
302 #define ADTS1_REG SFIOR
303 #define ADTS2_REG SFIOR
304 #define PSR10_REG SFIOR
305 #define PSR2_REG SFIOR
306 #define PUD_REG SFIOR
307 #define ACME_REG SFIOR
310 #define ACIS0_REG ACSR
311 #define ACIS1_REG ACSR
312 #define ACIC_REG ACSR
313 #define ACIE_REG ACSR
316 #define ACBG_REG ACSR
325 #define OCR1BL0_REG OCR1BL
326 #define OCR1BL1_REG OCR1BL
327 #define OCR1BL2_REG OCR1BL
328 #define OCR1BL3_REG OCR1BL
329 #define OCR1BL4_REG OCR1BL
330 #define OCR1BL5_REG OCR1BL
331 #define OCR1BL6_REG OCR1BL
332 #define OCR1BL7_REG OCR1BL
335 #define TXB8_REG UCSRB
336 #define RXB8_REG UCSRB
337 #define UCSZ2_REG UCSRB
338 #define TXEN_REG UCSRB
339 #define RXEN_REG UCSRB
340 #define UDRIE_REG UCSRB
341 #define TXCIE_REG UCSRB
342 #define RXCIE_REG UCSRB
345 #define UCPOL_REG UCSRC
346 #define UCSZ0_REG UCSRC
347 #define UCSZ1_REG UCSRC
348 #define USBS_REG UCSRC
349 #define UPM0_REG UCSRC
350 #define UPM1_REG UCSRC
351 #define UMSEL_REG UCSRC
352 /* #define URSEL_REG UCSRC */ /* dup in UBRRH */
365 #define OCR1BH0_REG OCR1BH
366 #define OCR1BH1_REG OCR1BH
367 #define OCR1BH2_REG OCR1BH
368 #define OCR1BH3_REG OCR1BH
369 #define OCR1BH4_REG OCR1BH
370 #define OCR1BH5_REG OCR1BH
371 #define OCR1BH6_REG OCR1BH
372 #define OCR1BH7_REG OCR1BH
385 #define PIND0_REG PIND
386 #define PIND1_REG PIND
387 #define PIND2_REG PIND
388 #define PIND3_REG PIND
389 #define PIND4_REG PIND
390 #define PIND5_REG PIND
391 #define PIND6_REG PIND
392 #define PIND7_REG PIND
395 #define SPMEN_REG SPMCR
396 #define PGERS_REG SPMCR
397 #define PGWRT_REG SPMCR
398 #define BLBSET_REG SPMCR
399 #define RWWSRE_REG SPMCR
400 #define RWWSB_REG SPMCR
401 #define SPMIE_REG SPMCR
404 #define UBRR8_REG UBRRH
405 #define UBRR9_REG UBRRH
406 #define UBRR10_REG UBRRH
407 #define UBRR11_REG UBRRH
408 /* #define URSEL_REG UBRRH */ /* dup in UCSRC */
411 #define TWBR0_REG TWBR
412 #define TWBR1_REG TWBR
413 #define TWBR2_REG TWBR
414 #define TWBR3_REG TWBR
415 #define TWBR4_REG TWBR
416 #define TWBR5_REG TWBR
417 #define TWBR6_REG TWBR
418 #define TWBR7_REG TWBR
421 #define ADCL0_REG ADCL
422 #define ADCL1_REG ADCL
423 #define ADCL2_REG ADCL
424 #define ADCL3_REG ADCL
425 #define ADCL4_REG ADCL
426 #define ADCL5_REG ADCL
427 #define ADCL6_REG ADCL
428 #define ADCL7_REG ADCL
431 #define UBRR0_REG UBRRL
432 #define UBRR1_REG UBRRL
433 #define UBRR2_REG UBRRL
434 #define UBRR3_REG UBRRL
435 #define UBRR4_REG UBRRL
436 #define UBRR5_REG UBRRL
437 #define UBRR6_REG UBRRL
438 #define UBRR7_REG UBRRL
441 #define EERE_REG EECR
442 #define EEWE_REG EECR
443 #define EEMWE_REG EECR
444 #define EERIE_REG EECR
447 #define CAL0_REG OSCCAL
448 #define CAL1_REG OSCCAL
449 #define CAL2_REG OSCCAL
450 #define CAL3_REG OSCCAL
451 #define CAL4_REG OSCCAL
452 #define CAL5_REG OSCCAL
453 #define CAL6_REG OSCCAL
454 #define CAL7_REG OSCCAL
457 #define TCNT1L0_REG TCNT1L
458 #define TCNT1L1_REG TCNT1L
459 #define TCNT1L2_REG TCNT1L
460 #define TCNT1L3_REG TCNT1L
461 #define TCNT1L4_REG TCNT1L
462 #define TCNT1L5_REG TCNT1L
463 #define TCNT1L6_REG TCNT1L
464 #define TCNT1L7_REG TCNT1L
467 #define PORTB0_REG PORTB
468 #define PORTB1_REG PORTB
469 #define PORTB2_REG PORTB
470 #define PORTB3_REG PORTB
471 #define PORTB4_REG PORTB
472 #define PORTB5_REG PORTB
473 #define PORTB6_REG PORTB
474 #define PORTB7_REG PORTB
477 #define PORTD0_REG PORTD
478 #define PORTD1_REG PORTD
479 #define PORTD2_REG PORTD
480 #define PORTD3_REG PORTD
481 #define PORTD4_REG PORTD
482 #define PORTD5_REG PORTD
483 #define PORTD6_REG PORTD
484 #define PORTD7_REG PORTD
487 #define TCNT1H0_REG TCNT1H
488 #define TCNT1H1_REG TCNT1H
489 #define TCNT1H2_REG TCNT1H
490 #define TCNT1H3_REG TCNT1H
491 #define TCNT1H4_REG TCNT1H
492 #define TCNT1H5_REG TCNT1H
493 #define TCNT1H6_REG TCNT1H
494 #define TCNT1H7_REG TCNT1H
497 #define PORTC0_REG PORTC
498 #define PORTC1_REG PORTC
499 #define PORTC2_REG PORTC
500 #define PORTC3_REG PORTC
501 #define PORTC4_REG PORTC
502 #define PORTC5_REG PORTC
503 #define PORTC6_REG PORTC
504 #define PORTC7_REG PORTC
507 #define ADCH0_REG ADCH
508 #define ADCH1_REG ADCH
509 #define ADCH2_REG ADCH
510 #define ADCH3_REG ADCH
511 #define ADCH4_REG ADCH
512 #define ADCH5_REG ADCH
513 #define ADCH6_REG ADCH
514 #define ADCH7_REG ADCH
517 #define PORTA0_REG PORTA
518 #define PORTA1_REG PORTA
519 #define PORTA2_REG PORTA
520 #define PORTA3_REG PORTA
521 #define PORTA4_REG PORTA
522 #define PORTA5_REG PORTA
523 #define PORTA6_REG PORTA
524 #define PORTA7_REG PORTA
527 #define TWIE_REG TWCR
528 #define TWEN_REG TWCR
529 #define TWWC_REG TWCR
530 #define TWSTO_REG TWCR
531 #define TWSTA_REG TWCR
532 #define TWEA_REG TWCR
533 #define TWINT_REG TWCR
536 #define TCNT0_0_REG TCNT0
537 #define TCNT0_1_REG TCNT0
538 #define TCNT0_2_REG TCNT0
539 #define TCNT0_3_REG TCNT0
540 #define TCNT0_4_REG TCNT0
541 #define TCNT0_5_REG TCNT0
542 #define TCNT0_6_REG TCNT0
543 #define TCNT0_7_REG TCNT0
546 #define ISC2_REG MCUCSR
547 #define PORF_REG MCUCSR
548 #define EXTRF_REG MCUCSR
549 #define BORF_REG MCUCSR
550 #define WDRF_REG MCUCSR
553 #define TWGCE_REG TWAR
554 #define TWA0_REG TWAR
555 #define TWA1_REG TWAR
556 #define TWA2_REG TWAR
557 #define TWA3_REG TWAR
558 #define TWA4_REG TWAR
559 #define TWA5_REG TWAR
560 #define TWA6_REG TWAR
563 #define CS20_REG TCCR2
564 #define CS21_REG TCCR2
565 #define CS22_REG TCCR2
566 #define WGM21_REG TCCR2
567 #define COM20_REG TCCR2
568 #define COM21_REG TCCR2
569 #define WGM20_REG TCCR2
570 #define FOC2_REG TCCR2
573 #define TOV0_REG TIFR
574 #define OCF0_REG TIFR
575 #define TOV1_REG TIFR
576 #define OCF1B_REG TIFR
577 #define OCF1A_REG TIFR
578 #define ICF1_REG TIFR
579 #define TOV2_REG TIFR
580 #define OCF2_REG TIFR
583 #define EEAR8_REG EEARH
586 #define TCNT2_0_REG TCNT2
587 #define TCNT2_1_REG TCNT2
588 #define TCNT2_2_REG TCNT2
589 #define TCNT2_3_REG TCNT2
590 #define TCNT2_4_REG TCNT2
591 #define TCNT2_5_REG TCNT2
592 #define TCNT2_6_REG TCNT2
593 #define TCNT2_7_REG TCNT2
596 #define EEAR0_REG EEARL
597 #define EEAR1_REG EEARL
598 #define EEAR2_REG EEARL
599 #define EEAR3_REG EEARL
600 #define EEAR4_REG EEARL
601 #define EEAR5_REG EEARL
602 #define EEAR6_REG EEARL
603 #define EEAR7_REG EEARL
606 #define TWPS0_REG TWSR
607 #define TWPS1_REG TWSR
608 #define TWS3_REG TWSR
609 #define TWS4_REG TWSR
610 #define TWS5_REG TWSR
611 #define TWS6_REG TWSR
612 #define TWS7_REG TWSR
615 #define PINC0_REG PINC
616 #define PINC1_REG PINC
617 #define PINC2_REG PINC
618 #define PINC3_REG PINC
619 #define PINC4_REG PINC
620 #define PINC5_REG PINC
621 #define PINC6_REG PINC
622 #define PINC7_REG PINC
625 #define PINB0_REG PINB
626 #define PINB1_REG PINB
627 #define PINB2_REG PINB
628 #define PINB3_REG PINB
629 #define PINB4_REG PINB
630 #define PINB5_REG PINB
631 #define PINB6_REG PINB
632 #define PINB7_REG PINB
635 #define PINA0_REG PINA
636 #define PINA1_REG PINA
637 #define PINA2_REG PINA
638 #define PINA3_REG PINA
639 #define PINA4_REG PINA
640 #define PINA5_REG PINA
641 #define PINA6_REG PINA
642 #define PINA7_REG PINA
645 #define ISC00_REG MCUCR
646 #define ISC01_REG MCUCR
647 #define ISC10_REG MCUCR
648 #define ISC11_REG MCUCR
649 #define SM0_REG MCUCR
650 #define SM1_REG MCUCR
652 #define SM2_REG MCUCR
655 #define OCR1AH0_REG OCR1AH
656 #define OCR1AH1_REG OCR1AH
657 #define OCR1AH2_REG OCR1AH
658 #define OCR1AH3_REG OCR1AH
659 #define OCR1AH4_REG OCR1AH
660 #define OCR1AH5_REG OCR1AH
661 #define OCR1AH6_REG OCR1AH
662 #define OCR1AH7_REG OCR1AH
665 #define OCR1AL0_REG OCR1AL
666 #define OCR1AL1_REG OCR1AL
667 #define OCR1AL2_REG OCR1AL
668 #define OCR1AL3_REG OCR1AL
669 #define OCR1AL4_REG OCR1AL
670 #define OCR1AL5_REG OCR1AL
671 #define OCR1AL6_REG OCR1AL
672 #define OCR1AL7_REG OCR1AL
675 #define SPR0_REG SPCR
676 #define SPR1_REG SPCR
677 #define CPHA_REG SPCR
678 #define CPOL_REG SPCR
679 #define MSTR_REG SPCR
680 #define DORD_REG SPCR
682 #define SPIE_REG SPCR
685 #define TCR2UB_REG ASSR
686 #define OCR2UB_REG ASSR
687 #define TCN2UB_REG ASSR
691 #define OCR0_0_REG OCR0
692 #define OCR0_1_REG OCR0
693 #define OCR0_2_REG OCR0
694 #define OCR0_3_REG OCR0
695 #define OCR0_4_REG OCR0
696 #define OCR0_5_REG OCR0
697 #define OCR0_6_REG OCR0
698 #define OCR0_7_REG OCR0
701 #define OCR2_0_REG OCR2
702 #define OCR2_1_REG OCR2
703 #define OCR2_2_REG OCR2
704 #define OCR2_3_REG OCR2
705 #define OCR2_4_REG OCR2
706 #define OCR2_5_REG OCR2
707 #define OCR2_6_REG OCR2
708 #define OCR2_7_REG OCR2
711 #define ICR1L0_REG ICR1L
712 #define ICR1L1_REG ICR1L
713 #define ICR1L2_REG ICR1L
714 #define ICR1L3_REG ICR1L
715 #define ICR1L4_REG ICR1L
716 #define ICR1L5_REG ICR1L
717 #define ICR1L6_REG ICR1L
718 #define ICR1L7_REG ICR1L
721 #define ADC0_PORT PORTA
724 #define ADC1_PORT PORTA
727 #define ADC2_PORT PORTA
730 #define ADC3_PORT PORTA
733 #define ADC4_PORT PORTA
736 #define ADc5_PORT PORTA
739 #define ADC6_PORT PORTA
742 #define ADC7_PORT PORTA
745 #define XCK_PORT PORTB
747 #define T0_PORT PORTB
750 #define T1_PORT PORTB
753 #define AIN0_PORT PORTB
755 #define INT2_PORT PORTB
758 #define AIN1_PORT PORTB
760 #define OC0_PORT PORTB
763 #define SS_PORT PORTB
766 #define MOSI_PORT PORTB
769 #define MISO_PORT PORTB
772 #define SCK_PORT PORTB
775 #define SCL_PORT PORTC
778 #define SDA_PORT PORTC
785 #define TOSC1_PORT PORTC
788 #define TOSC2_PORT PORTC
791 #define RXD_PORT PORTD
794 #define TXD_PORT PORTD
797 #define INT0_PORT PORTD
800 #define INT1_PORT PORTD
803 #define OC1B_PORT PORTD
806 #define OC1A_PORT PORTD
809 #define ICP_PORT PORTD
812 #define OC2_PORT PORTD