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.
This commit is contained in:
Paul Sokolovsky 2016-05-21 02:12:11 +03:00
parent 0ab372585f
commit 5a2a4e9452
1 changed files with 8 additions and 0 deletions

View File

@ -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__