diff options
author | Uros Majstorovic <majstor@majstor.org> | 2025-04-30 22:06:55 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2025-04-30 22:06:55 +0200 |
commit | 1e6da97af1c10c10e8b4022f89f23f4ccfe32d0f (patch) | |
tree | 0db3893cb76b4f89ca6152c41736e5b8b65f38bd /ecp/src/platform/fe310/time.c | |
parent | fc19aca65dc9b4481cbae2dce7e3d4c152b7eb69 (diff) |
fixed fe310 platform
Diffstat (limited to 'ecp/src/platform/fe310/time.c')
-rw-r--r-- | ecp/src/platform/fe310/time.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |