The includes and relevant (non wrapper) functions are borrowed from Zephyr 1.5.0
The implementation is still broken:
- an RTC driver is still missing, so no timed wakeup possible
- only the AON pins configured as LEVEL can wakeup the processor
on Arduino101, the only AON broken out is RESET button
Changing the main loop in CODK-A allows operating the button without triggering a reboot. However, the board doesn't wakeup from deep sleep (am I missing something maybe?)