summaryrefslogtreecommitdiff
path: root/app/include/dt-bindings/zmk
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-08-28 14:15:16 -0400
committerPete Johanson <peter@peterjohanson.com>2020-09-13 22:33:05 -0400
commitcf970efb98c5af97955bfffbcebb3b065b16edc4 (patch)
treea44d5b05e62bf7bdd00d4e4bae38617a411a89f5 /app/include/dt-bindings/zmk
parent304603240f7ba16f67912a0031c64fb9ae4e8279 (diff)
feat(bluetooth): Proper bond management, identity support for non-splits
* Add `bt` behavior that can be used to perform certain actions, such as next/prev identity, reset identity, etc. NOTE: Multiple identities is only supported for non-split shields, due to missing Zephyr identity functionality for dual central/peripheral devices. * Proper bond reset tied to action, that honors peripheral bonds, so folks can reset and pair to other hosts, without breaking bonds between splt halves.
Diffstat (limited to 'app/include/dt-bindings/zmk')
-rw-r--r--app/include/dt-bindings/zmk/bt.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/include/dt-bindings/zmk/bt.h b/app/include/dt-bindings/zmk/bt.h
new file mode 100644
index 0000000..6b05ff0
--- /dev/null
+++ b/app/include/dt-bindings/zmk/bt.h
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2020 Peter Johanson <peter@peterjohanson.com>
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+#define BT_RST_CMD 0
+#define BT_IDENT_NEXT_CMD 1
+#define BT_IDENT_PREV_CMD 2
+#define BT_IDENT_SEL_CMD 3
+#define BT_IDENT_CLR_CMD 4
+
+#define BT_RST BT_RST_CMD 0
+#define BT_IDENT_NEXT BT_IDENT_NEXT_CMD 0
+#define BT_IDENT_PREV BT_IDENT_PREV_CMD 0
+#define BT_IDENT_SEL BT_IDENT_SEL_CMD
+#define BT_IDENT_CLR BT_IDENT_CLR_CMD 0 \ No newline at end of file