WFE vs WFI (Rak8211 - nRF52) #7266
Unanswered
espruino-discuss
asked this question in
Other Boards
Replies: 1 comment
-
Posted at 2018-12-18 by @gfwilliams It's just what 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 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-12-17 by Nadnerb
I was going through the Espruino Source code and noticed that the sleep uses WFE instead of WFI for the nrf52
It was my understanding that WFI is typically used for standby and WFE is used for spinlocks. Just wondering what the benefit of using WFE is in this instance, and if we can get more power savings by using WFI if we are sleeping for a long period of time with an Interrupt wake-up source?
Beta Was this translation helpful? Give feedback.
All reactions