From 1e6da97af1c10c10e8b4022f89f23f4ccfe32d0f Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 30 Apr 2025 22:06:55 +0200 Subject: fixed fe310 platform --- ecp/src/platform/fe310/time.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ecp/src/platform/fe310/time.c') diff --git a/ecp/src/platform/fe310/time.c b/ecp/src/platform/fe310/time.c index 4bf530c..5f92d7f 100644 --- a/ecp/src/platform/fe310/time.c +++ b/ecp/src/platform/fe310/time.c @@ -24,15 +24,15 @@ int ecp_tm_init(ECPContext *ctx) { } ecp_sts_t ecp_tm_get_s(void) { - return eos_time_get_tick() / EOS_TIMER_RTC_FREQ; + return eos_get_tick() / EOS_TIMER_RTC_FREQ; } ecp_sts_t ecp_tm_get_ms(void) { - return eos_time_get_tick() * 1000 / EOS_TIMER_RTC_FREQ; + return eos_get_tick() * 1000 / EOS_TIMER_RTC_FREQ; } void ecp_tm_sleep(ecp_sts_t msec) { - eos_time_sleep(msec); + eos_sleep(msec); } void ecp_tm_timer_set(ecp_sts_t next) { -- cgit v1.2.3