summaryrefslogtreecommitdiff
path: root/app/dts
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/dts
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/dts')
-rw-r--r--app/dts/behaviors.dtsi3
-rw-r--r--app/dts/behaviors/bluetooth.dtsi9
-rw-r--r--app/dts/bindings/behaviors/zmk,behavior-bluetooth.yaml8
3 files changed, 19 insertions, 1 deletions
diff --git a/app/dts/behaviors.dtsi b/app/dts/behaviors.dtsi
index ab70bcc..202202b 100644
--- a/app/dts/behaviors.dtsi
+++ b/app/dts/behaviors.dtsi
@@ -7,4 +7,5 @@
#include <behaviors/toggle_layer.dtsi>
#include <behaviors/reset.dtsi>
#include <behaviors/sensor_rotate_key_press.dtsi>
-#include <behaviors/rgb_underglow.dtsi> \ No newline at end of file
+#include <behaviors/rgb_underglow.dtsi>
+#include <behaviors/bluetooth.dtsi> \ No newline at end of file
diff --git a/app/dts/behaviors/bluetooth.dtsi b/app/dts/behaviors/bluetooth.dtsi
new file mode 100644
index 0000000..ea09f4a
--- /dev/null
+++ b/app/dts/behaviors/bluetooth.dtsi
@@ -0,0 +1,9 @@
+/ {
+ behaviors {
+ bt: behavior_bluetooth {
+ compatible = "zmk,behavior-bluetooth";
+ label = "BLUETOOTH";
+ #binding-cells = <2>;
+ };
+ };
+};
diff --git a/app/dts/bindings/behaviors/zmk,behavior-bluetooth.yaml b/app/dts/bindings/behaviors/zmk,behavior-bluetooth.yaml
new file mode 100644
index 0000000..127ebe0
--- /dev/null
+++ b/app/dts/bindings/behaviors/zmk,behavior-bluetooth.yaml
@@ -0,0 +1,8 @@
+# Copyright (c) 2020, Peter Johanson
+# SPDX-License-Identifier: MIT
+
+description: Bluetooth Behavior
+
+compatible: "zmk,behavior-bluetooth"
+
+include: two_param.yaml