summaryrefslogtreecommitdiff
path: root/app/dts
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-06-29 00:37:11 -0400
committerPete Johanson <peter@peterjohanson.com>2020-07-17 22:43:40 -0400
commit3796f76c56d42ca9b4fd36edae7f6bf6656009b9 (patch)
tree367eaa4b9c7b80c1e0d8a5f196668c2c911a4137 /app/dts
parentf6110a632d0ddbc0a9ebd7bfd4997366f95facfd (diff)
Initial exploration of split BLE service.
* Service for split peripheral to report position state to split central. * Updated advertising info. * Behavior for split BT until we have a proper event system.
Diffstat (limited to 'app/dts')
-rw-r--r--app/dts/behaviors/split_bt.dtsi9
-rw-r--r--app/dts/bindings/behaviors/zmk,behavior-split-bt.yaml8
2 files changed, 17 insertions, 0 deletions
diff --git a/app/dts/behaviors/split_bt.dtsi b/app/dts/behaviors/split_bt.dtsi
new file mode 100644
index 0000000..c31d957
--- /dev/null
+++ b/app/dts/behaviors/split_bt.dtsi
@@ -0,0 +1,9 @@
+/ {
+ behaviors {
+ split_behavior: behavior_split_bt {
+ compatible = "zmk,behavior-split-bt", "zmk,behavior-global";
+ label = "SPLIT_BT";
+ #binding-cells = <0>;
+ };
+ };
+};
diff --git a/app/dts/bindings/behaviors/zmk,behavior-split-bt.yaml b/app/dts/bindings/behaviors/zmk,behavior-split-bt.yaml
new file mode 100644
index 0000000..66d9630
--- /dev/null
+++ b/app/dts/bindings/behaviors/zmk,behavior-split-bt.yaml
@@ -0,0 +1,8 @@
+# Copyright (c) 2020, Pete Johanson
+# SPDX-License-Identifier: MIT
+
+description: Split Bluetooth Behavior
+
+compatible: "zmk,behavior-split-bt"
+
+include: zero_param.yaml