If my way of thinking is not wrong, I have to set SEVONPEND flag to wake up cpu from sd_app_evt_wait on pended event. How to set this flag? I cannot find any function/macro to do this - I don't want to mess up other flags that are stored in that register.
I want my application to wake up (only wakeup, no execution of IRQ handler) when ADC finishes sampling.