Skip to content

Commit 5a2a4e9

Browse files
committed
py/mphal.h: Provide default prototypes for mp_hal_delay_us/mp_hal_ticks_us.
Similar to existing mp_hal_delay_ms/mp_hal_ticks_ms.
1 parent 0ab3725 commit 5a2a4e9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

py/mphal.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,16 @@ void mp_hal_stdout_tx_strn_cooked(const char *str, size_t len);
5454
void mp_hal_delay_ms(mp_uint_t ms);
5555
#endif
5656

57+
#ifndef mp_hal_delay_us
58+
void mp_hal_delay_us(mp_uint_t us);
59+
#endif
60+
5761
#ifndef mp_hal_ticks_ms
5862
mp_uint_t mp_hal_ticks_ms(void);
5963
#endif
6064

65+
#ifndef mp_hal_ticks_us
66+
mp_uint_t mp_hal_ticks_us(void);
67+
#endif
68+
6169
#endif // __MICROPY_INCLUDED_PY_MPHAL_H__

0 commit comments

Comments
 (0)