Timer not running when WLAN uninitialized
Posted: Thu Jun 18, 2015 4:41 am
Hi,
in this case the timer callback function is called. if i remark wlan_start() then the timer callback function never calls.
Any idea?
Code: Select all
void ICACHE_FLASH_ATTR user_init()
{
system_timer_reinit();
uart_init(BIT_RATE_9600, BIT_RATE_115200);
system_os_task(recvTask, recvTaskPrio, recvTaskQueue, recvTaskQueueLen);
os_delay_us(1000);
os_timer_disarm(&userTimer);
os_timer_setfn(&userTimer, userTimerCb, NULL);
os_timer_arm(&userTimer, 10, 1);
wifi_set_opmode(0x00);
wlan_start(); // Function to start WLAN
}
in this case the timer callback function is called. if i remark wlan_start() then the timer callback function never calls.
Any idea?