feat(power): Initial deep sleep work.

* New ZMK_SLEEP Kconfig symbol to enable the functionality.
* Switch to PORT events that allows wake from deep sleep.
* Initial basic power management policy, with idle ms,
  and ignoring deep sleep if we detect a USB connection.
This commit is contained in:
Pete Johanson
2020-10-02 02:09:38 -04:00
parent 9be566603e
commit a7496ab064
5 changed files with 121 additions and 29 deletions

View File

@@ -18,4 +18,4 @@ defines these aliases up front.
#define BT_CLR BT_CLR_CMD 0
#define BT_NXT BT_NXT_CMD 0
#define BT_PRV BT_PRV_CMD 0
#define BT_SEL BT_SEL_CMD
#define BT_SEL BT_SEL_CMD