ESP8266 Developer Zone The Official ESP8266 Forum 2015-03-31T14:25:24+08:00 https://bbs.espressif.com:443/feed.php?f=15&t=316 2015-03-31T14:25:24+08:00 2015-03-31T14:25:24+08:00 https://bbs.espressif.com:443/viewtopic.php?t=316&p=1184#p1184 <![CDATA[esp8266 timer]]>
How many timers esp8266 support?

when i open two timer, as follows, it can not work, esp8266 will reset.

when i open only one timer, it can work well.

whether the ram lack of space or ohter reson?

Code:

void user_timer_init(void)
{
    os_timer_disarm(&check_ip_timer);
    os_timer_setfn(&check_ip_timer, (os_timer_func_t *)user_check_ip_cb, NULL);
    os_timer_arm(&check_ip_timer, 1000, 1);

    os_timer_disarm(&uart_timer);
    os_timer_setfn(&uart_timer, (os_timer_func_t *)user_uart_timer_cb, NULL);
    os_timer_arm(&uart_timer, 50, 1);
}

Statistics: Posted by AlonX — Tue Mar 31, 2015 2:25 pm


]]>