Hi i'm a newbie in nordic chip. Can someone please explain to me that how to enable and disable sleep in nrf51822 and what kind of setup need to be done?
Example in Arduino :
It actually makes sense. Whoever invented that "__SEV(); __WFE(); __WFE();" sequence was seriously confused about the purpose of WFE, IMHO. I mean, if there is a pending event already, why would you hide it by calling SEV? And if there is no pending event then single WFE works exactly as expected.