Skip to content
Snippets Groups Projects
Commit 7261f17b authored by Damien George's avatar Damien George Committed by Paul Sokolovsky
Browse files

esp8266: Feed WDT in ets_loop_iter().

parent 97c26289
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include "os_type.h" #include "os_type.h"
#include "ets_sys.h" #include "ets_sys.h"
#include "etshal.h" #include "etshal.h"
#include "user_interface.h"
// Use standard ets_task or alternative impl // Use standard ets_task or alternative impl
#define USE_ETS_TASK 0 #define USE_ETS_TASK 0
...@@ -103,6 +104,7 @@ bool ets_loop_iter(void) { ...@@ -103,6 +104,7 @@ bool ets_loop_iter(void) {
//static unsigned cnt; //static unsigned cnt;
bool progress = false; bool progress = false;
for (volatile struct task_entry *t = emu_tasks; t < &emu_tasks[MP_ARRAY_SIZE(emu_tasks)]; t++) { for (volatile struct task_entry *t = emu_tasks; t < &emu_tasks[MP_ARRAY_SIZE(emu_tasks)]; t++) {
system_soft_wdt_feed();
ets_intr_lock(); ets_intr_lock();
//printf("etc_loop_iter: "); dump_task(t - emu_tasks + FIRST_PRIO, t); //printf("etc_loop_iter: "); dump_task(t - emu_tasks + FIRST_PRIO, t);
if (t->i_get != t->i_put) { if (t->i_get != t->i_put) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment