Rev | Author | Line No. | Line |
---|---|---|---|
2116 | paro | 1 | #include "timer.h" |
2 | |||
3 | #include <avr/io.h> |
||
4 | |||
5 | void Timer0_Init_Interrupt() { |
||
6 | TIMSK |= 0b0000001; // Enable overflow interrupt tim0 |
||
7 | TCCR0=0b00000010; //8 prescale,start timer |
||
8 | } |
||
9 | |||
10 | void Timer1_Init_Interrupt() { |
||
11 | TIMSK |= 0b00000100; // Enable overflow interrupt tim1 |
||
12 | TCCR1B=0b00000010; //8 prescale,start timer |
||
13 | } |
||
14 |