forked from things-nyc/arduino-lmic
-
Notifications
You must be signed in to change notification settings - Fork 224
Open
Labels
Description
I am using LMIC on nRF52 platform. I have successfully ported hal.cpp and now I want to switch to using interrupts. Mainly I want to sleep while waiting for RX as that's the majority of time the library spends busy-waiting. I have started by looking around the code base and noticed this place:
arduino-lmic/src/lmic/oslmic.c
Line 153 in 8d378ea
hal_sleep(); // wake by irq (timer already restarted) |
System is being put to sleep with interrupts disabled. If so, how will it wake-up from the sleep? Isn't this a bug?