Page 1 of 1

esp8266 timer

Posted: Tue Mar 31, 2015 2:25 pm
by AlonX
Hi, All

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: Select all

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);
}