Hello,
I am working on a firmware utilizing BLE stack based on a PXP_reporter (also SUOTA is needed) example from SDK 10.0.4.66.2.
I'd like to add a task that performs some time critical actions (DC motor steering using custom on/off profile so no easy use of HW PWM).
Is there a tutorial or guide regarding time and events management between tasks to learn proper way of handling time critical operations in a multi-task environment?
I assume BLE task consume some CPU power and it may have a higher priority than other tasks and I guess I will run into trouble trying just to use and rely on some software timers.
Thank you for any advices.
Device:
Hi ky3orr,
没有任何教程或tutorial demonstrating time and events management between tasks. The software timer timers have the highest priority than that other tasks. After the software timers, the BLE adapter has the highest priority, then the BLE manager and then the user’s tasks. The IDLE has the lowest priority. If your firmware requires critical operations, you could disable the global interrupts, and as soon as the operation is completed, you should enable them.
Thanks, PM_Dialog