3. Power off the module, and change it to operation mode; then power on the module and
run the program.
Result:
rtc_time:1613921
cal:6.406
3.2.11. How to Port Apps from Non-OS SDK to RTOS SDK
1. Codes for setting the timer do not need to be revised.
2. Codes for executing callback functions do not need to be revised.
3. The method of creating a new task should be revised. When creating a new task, RTOS
SDK uses xTaskCreate, a self-contained interface owned by freeRTOS.
Non-OS SDK: creating a new task
#defineQ_NUM(10)
ETSEventtest_q[Q_NUM];
voidtest_task(ETSEvent*e)
{
switch(e->sig)
{
case1:
func1(e->par);
break;
case2:
func2();
break;
case3:
func3();
break;
default:
break;
}
}
voidfunc_send_Sig(void)
{
ETSSignalsig=2;
system_os_post(2,sig,0);
}
voidtask_ini(void)
{
system_os_task(test_task,2,test_q,Q_NUM);