ESP8266 Developer Zone The Official ESP8266 Forum 2015-05-29T10:06:16+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=514 2015-05-29T10:06:16+08:00 2015-05-29T10:06:16+08:00 https://bbs.espressif.com:443/viewtopic.php?t=514&p=1948#p1948 <![CDATA[Re: 看门狗不断复位?]]>
使用 timer,需要调用 os_timer_setfn 设置 timer 到时的回调函数。否则会引起异常。

您可以参考这个帖子 http://bbs.espressif.com/viewtopic.php?f=10&t=323

感谢您对 ESP8266 的关注!

Statistics: Posted by ESP_Faye — Fri May 29, 2015 10:06 am


]]>
2015-05-29T04:01:38+08:00 2015-05-29T04:01:38+08:00 https://bbs.espressif.com:443/viewtopic.php?t=514&p=1946#p1946 <![CDATA[看门狗不断复位?]]>

Code:

static ETSTimer testTimer1;

void user_init(void)
{
   // Configure the UART
   uart_init(BIT_RATE_115200, BIT_RATE_115200);

   os_timer_disarm(&testTimer1);
   os_timer_arm(&testTimer1, 1000, 1);
}


为什么这样会影响底层喂看门狗?

谢谢!

Statistics: Posted by xiaodong — Fri May 29, 2015 4:01 am


]]>