在non-OS SDK中用户可以通过创建 timer 和 call_back 函数代替 while(1) 循环。
如果某段代码连续执行时间必须超过3.2s,用户用下面的方式解决看门狗复位的问题。
- 在执行该代码段前调用systerm_soft_wdt_stop() 函数,从关闭 wdt 到硬 wdt 触发,有6s的时间。
- 在代码段里执行若干次喂狗操作 systerm_soft_wdt_feed()。
- 在代码段执行完毕后,调用 systerm_soft_wdt_restart() 函数。
Postby ESP_Luna » Tue Jul 28, 2015 12:55 pm
Users browsing this forum: No registered users and 125 guests
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.