From 731f359292c0e2630873df1a19c5baac7287024f Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 30 Oct 2015 23:03:58 +0000 Subject: all: Add py/mphal.h and use it in all ports. py/mphal.h contains declarations for generic mp_hal_XXX functions, such as stdio and delay/ticks, which ports should provide definitions for. A port will also provide mphalport.h with further HAL declarations. --- unix/unix_mphal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unix/unix_mphal.c') diff --git a/unix/unix_mphal.c b/unix/unix_mphal.c index 54a710a3b..308349c60 100644 --- a/unix/unix_mphal.c +++ b/unix/unix_mphal.c @@ -30,7 +30,7 @@ #include #include "py/mpstate.h" -#include MICROPY_HAL_H +#include "py/mphal.h" #ifndef _WIN32 #include @@ -119,7 +119,7 @@ void mp_hal_stdout_tx_str(const char *str) { mp_hal_stdout_tx_strn(str, strlen(str)); } -uint32_t mp_hal_ticks_ms(void) { +mp_uint_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