a7496ab064
* 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.
21 lines
442 B
C
21 lines
442 B
C
/*
|
|
* Copyright (c) 2020 Peter Johanson <peter@peterjohanson.com>
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#define BT_CLR_CMD 0
|
|
#define BT_NXT_CMD 1
|
|
#define BT_PRV_CMD 2
|
|
#define BT_SEL_CMD 3
|
|
// #define BT_FULL_RESET_CMD 4
|
|
|
|
/*
|
|
Note: Some future commands will include additional parameters, so we
|
|
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
|