From 404dae80a9d5cb6315071fe6206b2a6026be0a09 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 27 Oct 2015 23:31:42 +0300 Subject: unix, stmhal: Introduce mp_hal_delay_ms(), mp_hal_ticks_ms(). These MPHAL functions are intended to replace previously used HAL_Delay(), HAL_GetTick() to provide better naming and MPHAL separation (they are fully equivalent otherwise). Also, refactor extmod/modlwip to use them. --- unix/unix_mphal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unix/unix_mphal.c') diff --git a/unix/unix_mphal.c b/unix/unix_mphal.c index 0974b6ad2..54a710a3b 100644 --- a/unix/unix_mphal.c +++ b/unix/unix_mphal.c @@ -119,7 +119,7 @@ void mp_hal_stdout_tx_str(const char *str) { mp_hal_stdout_tx_strn(str, strlen(str)); } -uint32_t HAL_GetTick(void) { +uint32_t mp_hal_ticks_ms(void) { struct timeval tv; gettimeofday(&tv, NULL); return tv.tv_sec * 1000 + tv.tv_usec / 1000; -- cgit v1.2.3