Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
111 | mikeljo | 1 | #ifndef timer_h |
2 | #define timer_h |
||
3 | |||
4 | volatile uint8_t timer; |
||
5 | volatile uint8_t counter, counter2; |
||
6 | volatile uint8_t key; |
||
7 | volatile uint8_t rs232_timer; |
||
8 | |||
9 | void timer_init (void); |
||
10 | |||
11 | #endif |
||
12 | |||
13 | #if defined (__AVR_ATmega32__) |
||
14 | |||
15 | #endif |
||
16 | |||
17 | #if defined (__AVR_ATmega644__) |
||
18 | #define TCCR0 TCCR0A |
||
19 | #define OCR0 OCR0A |
||
20 | #define TIMSK TIMSK0 |
||
21 | #define OCIE0 OCIE0A |
||
22 | |||
23 | #define INT_VEC_TX SIG_USART_TRANS |
||
24 | |||
25 | #define SIG_OUTPUT_COMPARE0 SIG_OUTPUT_COMPARE0A |
||
26 | #endif |