Hi everyone,
I have a sequencer which will schedule tasks in time, e.g run task0 every 50ms, task1 every 70ms and so on.
Is it possible to achieve this along with the BLE task (main_task) from nxp ble demos without compromising the mcu going into deep sleep of course?
What is the best way to achieve this?
I tried to create a seperate task using the OSA_TaskCreate but it seems to break the BLE task.
Any help is appreciated. Many thanks.
已解决! 转到解答。
Hi,
One easy way is to use timer to realize the function. Use TMR_StartLowPowerTimer to start the specified function. The ble demo has many tasks using the timer. If you want to use the os, you need to increase the os stack. The macro 'gTotalHeapSize_c' is defined in app_preinclude.h. But I recommend you use the timer.
Hi,
One easy way is to use timer to realize the function. Use TMR_StartLowPowerTimer to start the specified function. The ble demo has many tasks using the timer. If you want to use the os, you need to increase the os stack. The macro 'gTotalHeapSize_c' is defined in app_preinclude.h. But I recommend you use the timer.