Wait for interrupt

Hey guys,

while trying to get my LoRa device working (Autonomo), I am looking at some of Gabriels code to try to get my device to sleep and wakeup with a clock interrupt.

In some of Gabriels code, he uses the __WFI(); function, wich I assume is declared somehwere, however, I am unable to find the declaration of that function anywhere in the arduino15 directory.

Can someone please point me in the right direction?

Have a look in the following folder (in Windows, Linux or OSX will be similar):

There you will find the source code for the definitions of the low level functions and direct register access.

The specific instruction __WFI is defined in: