Skip to content

Commit d4f4cb6

Browse files
committed
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.
1 parent c4e26dd commit d4f4cb6

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

esp8266/esp_mphal.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ void mp_hal_init(void) {
5151
uart_init(UART_BIT_RATE_115200, UART_BIT_RATE_115200);
5252
}
5353

54-
void mp_hal_feed_watchdog(void) {
55-
//ets_wdt_disable(); // it's a pain while developing
56-
//WRITE_PERI_REG(0x60000914, 0x73);
57-
//wdt_feed(); // might also work
58-
}
59-
6054
void mp_hal_delay_us(uint32_t us) {
6155
uint32_t start = system_get_time();
6256
while (system_get_time() - start < us) {
@@ -71,7 +65,6 @@ int mp_hal_stdin_rx_chr(void) {
7165
return c;
7266
}
7367
mp_hal_delay_us(1);
74-
mp_hal_feed_watchdog();
7568
}
7669
}
7770

esp8266/esp_mphal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ void mp_hal_signal_dupterm_input(void);
4141

4242
void mp_hal_init(void);
4343
void mp_hal_rtc_init(void);
44-
void mp_hal_feed_watchdog(void);
4544

4645
uint32_t mp_hal_ticks_us(void);
4746
void mp_hal_delay_us(uint32_t);

0 commit comments

Comments
 (0)