Skip to content

Commit bc7ca7c

Browse files
prusnakpfalcon
authored andcommitted
unix/mphalport: Add mp_hal_delay_us() for consistency with other ports.
1 parent 13d06a8 commit bc7ca7c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

unix/mphalport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ void mp_hal_stdio_mode_raw(void);
3535
void mp_hal_stdio_mode_orig(void);
3636

3737
static inline void mp_hal_delay_ms(mp_uint_t ms) { usleep((ms) * 1000); }
38+
static inline void mp_hal_delay_us(mp_uint_t us) { usleep(us); }
3839

3940
#define RAISE_ERRNO(err_flag, error_val) \
4041
{ if (err_flag == -1) \

0 commit comments

Comments
 (0)