diff options
Diffstat (limited to 'src/avr/timer.h')
-rw-r--r-- | src/avr/timer.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/avr/timer.h b/src/avr/timer.h new file mode 100644 index 00000000..2165fecd --- /dev/null +++ b/src/avr/timer.h @@ -0,0 +1,12 @@ +#ifndef __AVR_TIMER_H +#define __AVR_TIMER_H + +#include <stdint.h> + +uint32_t timer_from_ms(uint32_t ms); +void timer_periodic(void); +uint32_t timer_read_time(void); +uint8_t timer_set_next(uint32_t next); +uint8_t timer_try_set_next(uint32_t next); + +#endif // timer.h |