From 8755ad4c0b0652f16d3505ed72ed3d8310a35c6f Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 15 Mar 2018 21:37:11 +0100 Subject: removed *IFace from context --- code/ecp/posix/time.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'code/ecp/posix/time.c') diff --git a/code/ecp/posix/time.c b/code/ecp/posix/time.c index c7a238a..45d827e 100644 --- a/code/ecp/posix/time.c +++ b/code/ecp/posix/time.c @@ -2,8 +2,9 @@ #include #include +#include -static ecp_cts_t t_abstime_ms(ecp_cts_t msec) { +ecp_cts_t ecp_tm_abstime_ms(ecp_cts_t msec) { struct timeval tv; ecp_cts_t ms_now; @@ -12,13 +13,8 @@ static ecp_cts_t t_abstime_ms(ecp_cts_t msec) { return ms_now + msec; } -static void t_sleep_ms(ecp_cts_t msec) { +void ecp_tm_sleep_ms(ecp_cts_t msec) { usleep(msec*1000); } -int ecp_time_init(ECPTimeIface *t) { - t->init = 1; - t->abstime_ms = t_abstime_ms; - t->sleep_ms = t_sleep_ms; - return 0; -} +void ecp_tm_timer_set(ecp_cts_t next) {} \ No newline at end of file -- cgit v1.2.3