mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
esp8266: Let machine.WDT trigger the software WDT if obj is not fed.
This patch allows scripts to have more control over the software WDT. If an instance of machine.WDT is created then the underlying OS is prevented from feeding the software WDT, and it is up to the user script to feed it instead via WDT.feed(). The timeout for this WDT is currently fixed and will be between 1.6 and 3.2 seconds.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define MICROPY_INCLUDED_ESP8266_ETS_ALT_TASK_H
|
||||
|
||||
extern int ets_loop_iter_disable;
|
||||
extern int ets_loop_dont_feed_sw_wdt;
|
||||
extern uint32_t system_time_high_word;
|
||||
|
||||
bool ets_loop_iter(void);
|
||||
|
||||
Reference in New Issue
Block a user