It's just what sd_app_evt_wait uses, which is what Nordic use in their SDK.
My understanding is that with the Nordic Softdevice you have to use WFE - at least that's what I found mentioned on Nordic Devzone. I could be wrong though?
You'll see there's some code around there to go back to sleep immediately if nothing has come in for Espruino - but I believe that a lot of the time IRQs get fired in the softdevice to handle the radio side of things
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
It's just what
sd_app_evt_wait
uses, which is what Nordic use in their SDK.My understanding is that with the Nordic Softdevice you have to use WFE - at least that's what I found mentioned on Nordic Devzone. I could be wrong though?
You'll see there's some code around there to go back to sleep immediately if nothing has come in for Espruino - but I believe that a lot of the time IRQs get fired in the softdevice to handle the radio side of things