diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-10-29 02:06:13 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-10-29 02:06:58 +0300 |
commit | 5699fc9d0e16b89b8052d29db9a3c5a349dab94a (patch) | |
tree | 304f7f7aedaa088c1a33be7504c5b6b25f8fb4d9 /esp8266/esp_mphal.c | |
parent | a2e0d92eeb7e07cbad06368ccce22cc5d360ae55 (diff) |
esp8266: Switch to standard mp_hal_delay_us() MPHAL function.
Diffstat (limited to 'esp8266/esp_mphal.c')
-rw-r--r-- | esp8266/esp_mphal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/esp8266/esp_mphal.c b/esp8266/esp_mphal.c index 736cf3b0a..5252e9ce8 100644 --- a/esp8266/esp_mphal.c +++ b/esp8266/esp_mphal.c @@ -46,7 +46,7 @@ void mp_hal_feed_watchdog(void) { //wdt_feed(); // might also work } -void mp_hal_udelay(uint32_t us) { +void mp_hal_delay_us(uint32_t us) { ets_delay_us(us); } @@ -56,7 +56,7 @@ int mp_hal_stdin_rx_chr(void) { if (c != -1) { return c; } - mp_hal_udelay(1); + mp_hal_delay_us(1); mp_hal_feed_watchdog(); } } @@ -87,7 +87,7 @@ uint32_t HAL_GetTick(void) { } void HAL_Delay(uint32_t Delay) { - mp_hal_udelay(Delay * 1000); + mp_hal_delay_us(Delay * 1000); } void mp_hal_set_interrupt_char(int c) { |