summaryrefslogtreecommitdiff
path: root/ecp/src/platform/fe310/time.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-05-19 15:29:21 +0200
committerUros Majstorovic <majstor@majstor.org>2022-05-19 15:29:21 +0200
commit67ff1e142a30bf4e799cc486ce2f6eee93c2e448 (patch)
tree6ea845f58db6ad9f689c4d7f5d68fabfd1ca11b8 /ecp/src/platform/fe310/time.c
parent412a8f99928beff605805807b0f07f6bf8d0a965 (diff)
fe310 update
Diffstat (limited to 'ecp/src/platform/fe310/time.c')
-rw-r--r--ecp/src/platform/fe310/time.c10
1 files changed, 5 insertions, 5 deletions
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 <tr.h>
#include <eos/eos.h>
-#include <eos/net.h>
#include <eos/event.h>
-#include <eos/timer.h>
+#include <eos/soc/timer.h>
+#include <eos/dev/net.h>
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);
}