diff options
author | Pavol Rusnak <stick@gk2.sk> | 2016-04-29 14:26:25 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-05-07 21:18:44 +0300 |
commit | bc7ca7ca01fc0e8b430e9094d846406f375b2a91 (patch) | |
tree | 16ca12a6813e058708de1a9b3dae749e42009ad1 | |
parent | 13d06a83e1c1f79bc9b1d627e7c0b02c59791304 (diff) |
unix/mphalport: Add mp_hal_delay_us() for consistency with other ports.
-rw-r--r-- | unix/mphalport.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/mphalport.h b/unix/mphalport.h index 57baf07d4..2a775d982 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) \ |