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?
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.
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?