Skip to content

Commit

Permalink
unix/mphalport: Add mp_hal_delay_us() for consistency with other ports.
Browse files Browse the repository at this point in the history
  • Loading branch information
prusnak authored and Paul Sokolovsky committed May 7, 2016
1 parent 13d06a8 commit bc7ca7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unix/mphalport.h
Expand Up @@ -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) \
Expand Down

0 comments on commit bc7ca7c

Please sign in to comment.