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

sd_mutex usage

I need to write to a variable when a particular characteristic is written (from my "on_write" function), and be able to read this variable from main context.

From the SoftDevice specification: "SoftDevice API functions can only be called from lower interrupt priority when compared to the SVC priority"

So my questions is, can I use sd_mutex.. for this?

Or will the interrupt priority level in functions called from my softdevice event handler (set by softdevice_ble_evt_handler_set() ) be too high?

Related