Some code may require micro-second precision so update sched_from_ms() to use micro-seconds. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
13 lines
263 B
C
13 lines
263 B
C
#ifndef __AVR_TIMER_H
|
|
#define __AVR_TIMER_H
|
|
|
|
#include <stdint.h>
|
|
|
|
uint32_t timer_from_us(uint32_t us);
|
|
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
|