Fixed timer.c and timer.h.
This commit is contained in:
parent
4b4f451024
commit
5d550a0121
@ -31,7 +31,8 @@ void timer_reset(void)
|
||||
highBits64 = 0;
|
||||
}
|
||||
|
||||
ISR(TIMER1_OVF_vect)
|
||||
// ISR(TIMER1_OVF_vect)
|
||||
void timer_overflow(void)
|
||||
{
|
||||
highBits32 += 0x01000000;
|
||||
highBits64 += 0x0000000001000000;
|
||||
|
@ -7,8 +7,9 @@
|
||||
|
||||
void timer_init(void);
|
||||
void timer_reset(void);
|
||||
void timer_overflow(void);
|
||||
|
||||
ISR(TIMER1_OVF_vect);
|
||||
// ISR(TIMER1_OVF_vect);
|
||||
|
||||
uint32_t timer_now32(void);
|
||||
uint64_t timer_now64(void);
|
||||
|
@ -19,7 +19,7 @@
|
||||
| TCCRnA_COMnB_toggle \
|
||||
| TCCRnA_COMnB_low \
|
||||
| TCCRnA_COMnB_high )
|
||||
|
||||
#define TCCRnB_CSn_CLEAR ~ 0x07
|
||||
// Timer/CounterN Interrupt Mask Register
|
||||
#define TIMSKn_ENABLE_INTERRUPT_on_nothing 0x00
|
||||
#define TIMSKn_ENABLE_INTERRUPT_on_overflow 0x01
|
||||
|
Loading…
Reference in New Issue
Block a user