From 898780a7c2b410793ca0dc60887b8e985b777b14 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Mon, 25 Nov 2019 17:02:50 +0100 Subject: timer added sleep, timer_set gets msec --- code/fe310/eos/timer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'code/fe310/eos/timer.h') diff --git a/code/fe310/eos/timer.h b/code/fe310/eos/timer.h index 0807d96..dff9b2b 100644 --- a/code/fe310/eos/timer.h +++ b/code/fe310/eos/timer.h @@ -9,6 +9,7 @@ typedef void (*eos_timer_fptr_t) (unsigned char); void eos_timer_init(void); uint64_t eos_timer_get(unsigned char evt); -void eos_timer_set(uint64_t tick, unsigned char evt, unsigned char b); +void eos_timer_set(uint32_t msec, unsigned char evt, unsigned char b); void eos_timer_clear(unsigned char evt); void eos_timer_set_handler(unsigned char evt, eos_timer_fptr_t handler, uint8_t flags); +void eos_timer_sleep(uint32_t msec); -- cgit v1.2.3