diff options
| author | Damien George | 2019-03-12 15:46:44 +1100 |
|---|---|---|
| committer | Damien George | 2019-03-12 15:46:44 +1100 |
| commit | 297092a76a6be2d5f5da32524e91f768e95937f4 (patch) | |
| tree | e16722da722a2bd6b95b44d82cf7f00103787270 /ports/esp32/mphalport.h | |
| parent | fcace26d87a99a23e74461e0b59f740de9f40365 (diff) | |
esp32/mphalport: Use ets_delay_us for mp_hal_delay_us_fast.
The system provided one is in ROM and is more accurate.
Diffstat (limited to 'ports/esp32/mphalport.h')
| -rw-r--r-- | ports/esp32/mphalport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32/mphalport.h b/ports/esp32/mphalport.h index b82962779..ff39b7aa1 100644 --- a/ports/esp32/mphalport.h +++ b/ports/esp32/mphalport.h @@ -47,7 +47,7 @@ __attribute__((always_inline)) static inline uint32_t mp_hal_ticks_cpu(void) { } void mp_hal_delay_us(uint32_t); -void mp_hal_delay_us_fast(uint32_t); +#define mp_hal_delay_us_fast(us) ets_delay_us(us) void mp_hal_set_interrupt_char(int c); uint32_t mp_hal_get_cpu_freq(void); |
