From 67ff1e142a30bf4e799cc486ce2f6eee93c2e448 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 19 May 2022 15:29:21 +0200 Subject: fe310 update --- ecp/src/platform/fe310/time.c | 10 +++++----- ecp/src/platform/fe310/transport.c | 2 +- ecp/src/platform/fe310/transport.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'ecp/src/platform/fe310') diff --git a/ecp/src/platform/fe310/time.c b/ecp/src/platform/fe310/time.c index 1e5eb17..5e4bc26 100644 --- a/ecp/src/platform/fe310/time.c +++ b/ecp/src/platform/fe310/time.c @@ -4,9 +4,9 @@ #include #include -#include #include -#include +#include +#include extern ECPSocket *_ecp_tr_sock; @@ -23,11 +23,11 @@ int ecp_tm_init(ECPContext *ctx) { return ECP_OK; } -ecp_sts_t ecp_tm_abstime_ms(ecp_sts_t msec) { - return eos_time_get_tick() * 1000 / EOS_TIMER_RTC_FREQ + msec; +ecp_sts_t ecp_tm_get_tick(void) { + return eos_time_get_tick() * 1000 / EOS_TIMER_RTC_FREQ; } -void ecp_tm_sleep_ms(ecp_sts_t msec) { +void ecp_tm_sleep(ecp_sts_t msec) { eos_time_sleep(msec); } diff --git a/ecp/src/platform/fe310/transport.c b/ecp/src/platform/fe310/transport.c index 2640ecf..c359bd1 100644 --- a/ecp/src/platform/fe310/transport.c +++ b/ecp/src/platform/fe310/transport.c @@ -6,7 +6,7 @@ #include #include -#include +#include ECPSocket *_ecp_tr_sock = NULL; unsigned char pld_buf[ECP_MAX_PLD]; diff --git a/ecp/src/platform/fe310/transport.h b/ecp/src/platform/fe310/transport.h index 1e0c526..52ece15 100644 --- a/ecp/src/platform/fe310/transport.h +++ b/ecp/src/platform/fe310/transport.h @@ -1,4 +1,4 @@ -#include +#include typedef struct EOSNetAddr ecp_tr_addr_t; typedef int ecp_tr_sock_t; -- cgit v1.2.3