diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-05-21 02:12:11 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-05-21 02:13:50 +0300 |
commit | 5a2a4e9452ef5325b111879e10d636fd0954e289 (patch) | |
tree | f00a211705f3f0d818c82def25fe665e9c4962a9 /py/mphal.h | |
parent | 0ab372585f57c80202a432bd757d52088de80850 (diff) |
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.
Diffstat (limited to 'py/mphal.h')
-rw-r--r-- | py/mphal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/py/mphal.h b/py/mphal.h index a0b642fc9..6215ab065 100644 --- a/py/mphal.h +++ b/py/mphal.h @@ -54,8 +54,16 @@ void mp_hal_stdout_tx_strn_cooked(const char *str, size_t len); void mp_hal_delay_ms(mp_uint_t ms); #endif +#ifndef mp_hal_delay_us +void mp_hal_delay_us(mp_uint_t us); +#endif + #ifndef mp_hal_ticks_ms mp_uint_t mp_hal_ticks_ms(void); #endif +#ifndef mp_hal_ticks_us +mp_uint_t mp_hal_ticks_us(void); +#endif + #endif // __MICROPY_INCLUDED_PY_MPHAL_H__ |