diff options
Diffstat (limited to 'fw/fe310/eos/soc/timer.h')
| -rw-r--r-- | fw/fe310/eos/soc/timer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fw/fe310/eos/soc/timer.h b/fw/fe310/eos/soc/timer.h index f5c7b4e..ef4005c 100644 --- a/fw/fe310/eos/soc/timer.h +++ b/fw/fe310/eos/soc/timer.h @@ -1,5 +1,7 @@ #include <stdint.h> +#include "../event.h" + #define EOS_TIMER_ETYPE_UI 1 #define EOS_TIMER_ETYPE_EVE 2 #define EOS_TIMER_ETYPE_ECP 3 @@ -10,10 +12,8 @@ #define EOS_TIMER_NONE -1 #define EOS_TIMER_RTC_FREQ 32768 -typedef void (*eos_timer_handler_t) (unsigned char); - int eos_timer_init(void); -void eos_timer_set_handler(unsigned char evt, eos_timer_handler_t handler); +void eos_timer_set_handler(unsigned char evt, eos_evt_simple_handler_t handler); uint32_t eos_timer_get(unsigned char evt); void eos_timer_set(unsigned char evt, uint32_t msec); |
