From bc7ca7ca01fc0e8b430e9094d846406f375b2a91 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Fri, 29 Apr 2016 14:26:25 +0200 Subject: [PATCH] unix/mphalport: Add mp_hal_delay_us() for consistency with other ports. --- unix/mphalport.h | 1 + 1 file changed, 1 insertion(+) diff --git a/unix/mphalport.h b/unix/mphalport.h index 57baf07d42..2a775d9828 100644 --- a/unix/mphalport.h +++ b/unix/mphalport.h @@ -35,6 +35,7 @@ void mp_hal_stdio_mode_raw(void); void mp_hal_stdio_mode_orig(void); static inline void mp_hal_delay_ms(mp_uint_t ms) { usleep((ms) * 1000); } +static inline void mp_hal_delay_us(mp_uint_t us) { usleep(us); } #define RAISE_ERRNO(err_flag, error_val) \ { if (err_flag == -1) \