This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how can i synchronize these routines?

hi.I have a question about synchronization. In main loop, there is a function sd_app_event_wait() which blocks until ble event from softdevice call occurs, so I want to put all communication-related tasks after that fanction in order to make sure that those tasks can be processed immediately and efficiently. There is a RTC timer routine that is executed periodically to get some data from peripheral. So there are three priority level in execution: softdevice call is the first, RTC timer the second, and the main loop the last. Can I use disable_irq in low priority to achieve synchronization without degrading the ble performance? Or is there any other synchronization mechanism under the background of softdevice? thank you.

Parents Reply Children
No Data
Related