diff options
Diffstat (limited to 'fw/fe310/eos/timer.h')
-rw-r--r-- | fw/fe310/eos/timer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fw/fe310/eos/timer.h b/fw/fe310/eos/timer.h index e479483..0309454 100644 --- a/fw/fe310/eos/timer.h +++ b/fw/fe310/eos/timer.h @@ -6,7 +6,7 @@ #define EOS_TIMER_MAX_ETYPE 4 -#define EOS_TIMER_NONE 0xffffffff +#define EOS_TIMER_NONE -1 #define EOS_TIMER_RTC_FREQ 32768 typedef void (*eos_timer_handler_t) (unsigned char); @@ -15,9 +15,9 @@ int eos_timer_init(uint8_t wakeup_cause); void eos_timer_set_handler(unsigned char evt, eos_timer_handler_t handler); uint32_t eos_timer_get(unsigned char evt); -void eos_timer_set(uint32_t msec, unsigned char evt); +void eos_timer_set(unsigned char evt, uint32_t msec); void eos_timer_clear(unsigned char evt); void eos_time_sleep(uint32_t msec); uint64_t eos_time_get_tick(void); -uint32_t eos_time_since(uint32_t start); +uint32_t eos_time_delta_ms(uint32_t tick); |