bccf9d3dcf
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.
11 lines
286 B
C
11 lines
286 B
C
#ifndef MICROPY_INCLUDED_ESP8266_ETS_ALT_TASK_H
|
|
#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);
|
|
|
|
#endif // MICROPY_INCLUDED_ESP8266_ETS_ALT_TASK_H
|