diff options
Diffstat (limited to 'unix/mphalport.h')
-rw-r--r-- | unix/mphalport.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/mphalport.h b/unix/mphalport.h index e440eafd4e..00e79ec17c 100644 --- a/unix/mphalport.h +++ b/unix/mphalport.h @@ -34,8 +34,11 @@ void mp_hal_set_interrupt_char(char c); void mp_hal_stdio_mode_raw(void); void mp_hal_stdio_mode_orig(void); +// TODO: POSIX et al. define usleep() as guaranteedly capable only of 1s sleep: +// "The useconds argument shall be less than one million." 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 mp_hal_ticks_cpu() 0 #define RAISE_ERRNO(err_flag, error_val) \ { if (err_flag == -1) \ |