summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-04-21 15:30:29 +0100
committerDamien George <damien.p.george@gmail.com>2016-04-21 15:30:29 +0100
commitd4f4cb6a240a96391cc8b8e61b0726c5084099fb (patch)
tree0fcae3a233d35755307c9171d702e39f41dd0e04 /esp8266
parentc4e26dd19a6a9e27905e264a09432722ba10b9af (diff)
downloadmicropython-d4f4cb6a240a96391cc8b8e61b0726c5084099fb.tar.gz
micropython-d4f4cb6a240a96391cc8b8e61b0726c5084099fb.zip
esp8266/esp_mphal: Remove mp_hal_feed_watchdog.
It doesn't do anything and is not needed. ets_loop_iter/ets_event_poll now take care of feeding the WDT.
Diffstat (limited to 'esp8266')
-rw-r--r--esp8266/esp_mphal.c7
-rw-r--r--esp8266/esp_mphal.h1
2 files changed, 0 insertions, 8 deletions
diff --git a/esp8266/esp_mphal.c b/esp8266/esp_mphal.c
index 914097f9b5..0573f3d56c 100644
--- a/esp8266/esp_mphal.c
+++ b/esp8266/esp_mphal.c
@@ -51,12 +51,6 @@ void mp_hal_init(void) {
uart_init(UART_BIT_RATE_115200, UART_BIT_RATE_115200);
}
-void mp_hal_feed_watchdog(void) {
- //ets_wdt_disable(); // it's a pain while developing
- //WRITE_PERI_REG(0x60000914, 0x73);
- //wdt_feed(); // might also work
-}
-
void mp_hal_delay_us(uint32_t us) {
uint32_t start = system_get_time();
while (system_get_time() - start < us) {
@@ -71,7 +65,6 @@ int mp_hal_stdin_rx_chr(void) {
return c;
}
mp_hal_delay_us(1);
- mp_hal_feed_watchdog();
}
}
diff --git a/esp8266/esp_mphal.h b/esp8266/esp_mphal.h
index 6ce00fce41..82277ed5af 100644
--- a/esp8266/esp_mphal.h
+++ b/esp8266/esp_mphal.h
@@ -41,7 +41,6 @@ void mp_hal_signal_dupterm_input(void);
void mp_hal_init(void);
void mp_hal_rtc_init(void);
-void mp_hal_feed_watchdog(void);
uint32_t mp_hal_ticks_us(void);
void mp_hal_delay_us(uint32_t);