summaryrefslogtreecommitdiff
path: root/app/boards/shields
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-12-12 23:13:49 -0500
committerPete Johanson <peter@peterjohanson.com>2020-12-28 10:16:24 -0500
commit4db5b169bff1f3de5353324baef5724be4f9a6a5 (patch)
treec690932524a26fb28e20528fe1d2b1745dae195a /app/boards/shields
parent842aa5a842e117b7b00e49258ca0bde44dc0c789 (diff)
refactor(splits): Ability to override split role.
* Move central/peripheral setting to Kconfig.defconfig files to allow left/right .conf files to override central/peripheral role for splits.
Diffstat (limited to 'app/boards/shields')
-rw-r--r--app/boards/shields/corne/Kconfig.defconfig7
-rw-r--r--app/boards/shields/corne/corne_left.conf2
-rw-r--r--app/boards/shields/corne/corne_right.conf2
-rw-r--r--app/boards/shields/cradio/Kconfig.defconfig10
-rw-r--r--app/boards/shields/cradio/cradio_left.conf3
-rw-r--r--app/boards/shields/cradio/cradio_right.conf2
-rw-r--r--app/boards/shields/iris/Kconfig.defconfig10
-rw-r--r--app/boards/shields/iris/iris_left.conf2
-rw-r--r--app/boards/shields/iris/iris_right.conf2
-rw-r--r--app/boards/shields/jian/Kconfig.defconfig4
-rw-r--r--app/boards/shields/jian/jian_left.conf2
-rw-r--r--app/boards/shields/jian/jian_right.conf2
-rw-r--r--app/boards/shields/jorne/Kconfig.defconfig3
-rw-r--r--app/boards/shields/jorne/jorne_left.conf2
-rw-r--r--app/boards/shields/jorne/jorne_right.conf2
-rw-r--r--app/boards/shields/kyria/Kconfig.defconfig3
-rw-r--r--app/boards/shields/kyria/kyria_left.conf2
-rw-r--r--app/boards/shields/kyria/kyria_right.conf2
-rw-r--r--app/boards/shields/lily58/Kconfig.defconfig7
-rw-r--r--app/boards/shields/lily58/lily58_left.conf3
-rw-r--r--app/boards/shields/lily58/lily58_right.conf3
-rw-r--r--app/boards/shields/microdox/Kconfig.defconfig3
-rw-r--r--app/boards/shields/microdox/microdox_left.conf2
-rw-r--r--app/boards/shields/microdox/microdox_right.conf2
-rw-r--r--app/boards/shields/quefrency/Kconfig.defconfig10
-rw-r--r--app/boards/shields/quefrency/quefrency_left.conf2
-rw-r--r--app/boards/shields/quefrency/quefrency_right.conf2
-rw-r--r--app/boards/shields/sofle/Kconfig.defconfig7
-rw-r--r--app/boards/shields/sofle/sofle_left.conf3
-rw-r--r--app/boards/shields/sofle/sofle_right.conf3
-rw-r--r--app/boards/shields/splitreus62/Kconfig.defconfig6
-rw-r--r--app/boards/shields/splitreus62/splitreus62_left.conf2
-rw-r--r--app/boards/shields/splitreus62/splitreus62_right.conf2
33 files changed, 67 insertions, 52 deletions
diff --git a/app/boards/shields/corne/Kconfig.defconfig b/app/boards/shields/corne/Kconfig.defconfig
index 0355c77..9e33e08 100644
--- a/app/boards/shields/corne/Kconfig.defconfig
+++ b/app/boards/shields/corne/Kconfig.defconfig
@@ -1,11 +1,12 @@
-
if SHIELD_CORNE_LEFT
config ZMK_KEYBOARD_NAME
- default "Corne Left"
+ default "Corne"
-endif
+config ZMK_SPLIT_BLE_ROLE_CENTRAL
+ default y
+endif
if SHIELD_CORNE_RIGHT
diff --git a/app/boards/shields/corne/corne_left.conf b/app/boards/shields/corne/corne_left.conf
index 1e028a7..e69de29 100644
--- a/app/boards/shields/corne/corne_left.conf
+++ b/app/boards/shields/corne/corne_left.conf
@@ -1,2 +0,0 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y
diff --git a/app/boards/shields/corne/corne_right.conf b/app/boards/shields/corne/corne_right.conf
index 990cf7c..e69de29 100644
--- a/app/boards/shields/corne/corne_right.conf
+++ b/app/boards/shields/corne/corne_right.conf
@@ -1,2 +0,0 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y
diff --git a/app/boards/shields/cradio/Kconfig.defconfig b/app/boards/shields/cradio/Kconfig.defconfig
index 81246ba..5e826bf 100644
--- a/app/boards/shields/cradio/Kconfig.defconfig
+++ b/app/boards/shields/cradio/Kconfig.defconfig
@@ -6,6 +6,9 @@ if SHIELD_CRADIO_LEFT
config ZMK_KEYBOARD_NAME
default "cradio left"
+config ZMK_SPLIT_BLE_ROLE_CENTRAL
+ default y
+
endif
if SHIELD_CRADIO_RIGHT
@@ -14,3 +17,10 @@ config ZMK_KEYBOARD_NAME
default "cradio right"
endif
+
+if SHIELD_CRADIO_LEFT || SHIELD_CRADIO_RIGHT
+
+config ZMK_SPLIT
+ default y
+
+endif \ No newline at end of file
diff --git a/app/boards/shields/cradio/cradio_left.conf b/app/boards/shields/cradio/cradio_left.conf
index 405f04d..c9f7988 100644
--- a/app/boards/shields/cradio/cradio_left.conf
+++ b/app/boards/shields/cradio/cradio_left.conf
@@ -1,5 +1,2 @@
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
-
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y
diff --git a/app/boards/shields/cradio/cradio_right.conf b/app/boards/shields/cradio/cradio_right.conf
index bd2c93b..80a6177 100644
--- a/app/boards/shields/cradio/cradio_right.conf
+++ b/app/boards/shields/cradio/cradio_right.conf
@@ -1,5 +1,3 @@
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y
diff --git a/app/boards/shields/iris/Kconfig.defconfig b/app/boards/shields/iris/Kconfig.defconfig
index 6439780..57b8c1e 100644
--- a/app/boards/shields/iris/Kconfig.defconfig
+++ b/app/boards/shields/iris/Kconfig.defconfig
@@ -6,6 +6,9 @@ if SHIELD_IRIS_LEFT
config ZMK_KEYBOARD_NAME
default "Iris Left"
+config ZMK_SPLIT_BLE_ROLE_CENTRAL
+ default y
+
endif
if SHIELD_IRIS_RIGHT
@@ -14,3 +17,10 @@ config ZMK_KEYBOARD_NAME
default "Iris Right"
endif
+
+if SHIELD_IRIS_LEFT || SHIELD_IRIS_RIGHT
+
+config ZMK_SPLIT
+ default y
+
+endif \ No newline at end of file
diff --git a/app/boards/shields/iris/iris_left.conf b/app/boards/shields/iris/iris_left.conf
index 1e028a7..e69de29 100644
--- a/app/boards/shields/iris/iris_left.conf
+++ b/app/boards/shields/iris/iris_left.conf
@@ -1,2 +0,0 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y
diff --git a/app/boards/shields/iris/iris_right.conf b/app/boards/shields/iris/iris_right.conf
index 990cf7c..e69de29 100644
--- a/app/boards/shields/iris/iris_right.conf
+++ b/app/boards/shields/iris/iris_right.conf
@@ -1,2 +0,0 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y
diff --git a/app/boards/shields/jian/Kconfig.defconfig b/app/boards/shields/jian/Kconfig.defconfig
index b743e7a..9e1da62 100644
--- a/app/boards/shields/jian/Kconfig.defconfig
+++ b/app/boards/shields/jian/Kconfig.defconfig
@@ -4,6 +4,9 @@ if SHIELD_JIAN_LEFT
config ZMK_KEYBOARD_NAME
default "Jian Left"
+config ZMK_SPLIT_BLE_ROLE_CENTRAL
+ default y
+
endif
@@ -18,6 +21,5 @@ if SHIELD_JIAN_LEFT || SHIELD_JIAN_RIGHT
config ZMK_SPLIT
default y
-
endif
diff --git a/app/boards/shields/jian/jian_left.conf b/app/boards/shields/jian/jian_left.conf
index 1e028a7..e69de29 100644
--- a/app/boards/shields/jian/jian_left.conf
+++ b/app/boards/shields/jian/jian_left.conf
@@ -1,2 +0,0 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y
diff --git a/app/boards/shields/jian/jian_right.conf b/app/boards/shields/jian/jian_right.conf
index 990cf7c..e69de29 100644
--- a/app/boards/shields/jian/jian_right.conf
+++ b/app/boards/shields/jian/jian_right.conf
@@ -1,2 +0,0 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y
diff --git a/app/boards/shields/jorne/Kconfig.defconfig b/app/boards/shields/jorne/Kconfig.defconfig
index c0df54b..5b0e0b9 100644
--- a/app/boards/shields/jorne/Kconfig.defconfig
+++ b/app/boards/shields/jorne/Kconfig.defconfig
@@ -4,6 +4,9 @@ if SHIELD_JORNE_LEFT
config ZMK_KEYBOARD_NAME
default "Jorne Left"
+config ZMK_SPLIT_BLE_ROLE_CENTRAL
+ default y
+
endif
diff --git a/app/boards/shields/jorne/jorne_left.conf b/app/boards/shields/jorne/jorne_left.conf
index 1e028a7..e69de29 100644
--- a/app/boards/shields/jorne/jorne_left.conf
+++ b/app/boards/shields/jorne/jorne_left.conf
@@ -1,2 +0,0 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y
diff --git a/app/boards/shields/jorne/jorne_right.conf b/app/boards/shields/jorne/jorne_right.conf
index 990cf7c..e69de29 100644
--- a/app/boards/shields/jorne/jorne_right.conf
+++ b/app/boards/shields/jorne/jorne_right.conf
@@ -1,2 +0,0 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y
diff --git a/app/boards/shields/kyria/Kconfig.defconfig b/app/boards/shields/kyria/Kconfig.defconfig
index 8d5fe81..99e47bf 100644
--- a/app/boards/shields/kyria/Kconfig.defconfig
+++ b/app/boards/shields/kyria/Kconfig.defconfig
@@ -4,6 +4,9 @@ if SHIELD_KYRIA_LEFT
config ZMK_KEYBOARD_NAME
default "Kyria Left"
+config ZMK_SPLIT_BLE_ROLE_CENTRAL
+ default y
+
endif
diff --git a/app/boards/shields/kyria/kyria_left.conf b/app/boards/shields/kyria/kyria_left.conf
index e51dee4..e69de29 100644
--- a/app/boards/shields/kyria/kyria_left.conf
+++ b/app/boards/shields/kyria/kyria_left.conf
@@ -1,2 +0,0 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y \ No newline at end of file
diff --git a/app/boards/shields/kyria/kyria_right.conf b/app/boards/shields/kyria/kyria_right.conf
index 990cf7c..e69de29 100644
--- a/app/boards/shields/kyria/kyria_right.conf
+++ b/app/boards/shields/kyria/kyria_right.conf
@@ -1,2 +0,0 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y
diff --git a/app/boards/shields/lily58/Kconfig.defconfig b/app/boards/shields/lily58/Kconfig.defconfig
index 81feefd..915cc70 100644
--- a/app/boards/shields/lily58/Kconfig.defconfig
+++ b/app/boards/shields/lily58/Kconfig.defconfig
@@ -4,6 +4,9 @@ if SHIELD_LILY58_LEFT
config ZMK_KEYBOARD_NAME
default "Lily58 Left"
+config ZMK_SPLIT_BLE_ROLE_CENTRAL
+ default y
+
endif
if SHIELD_LILY58_RIGHT
@@ -15,6 +18,9 @@ endif
if SHIELD_LILY58_LEFT || SHIELD_LILY58_RIGHT
+config ZMK_SPLIT
+ default y
+
if ZMK_DISPLAY
config I2C
@@ -52,3 +58,4 @@ endchoice
endif # LVGL
endif
+
diff --git a/app/boards/shields/lily58/lily58_left.conf b/app/boards/shields/lily58/lily58_left.conf
index 6ff95d5..24f8d77 100644
--- a/app/boards/shields/lily58/lily58_left.conf
+++ b/app/boards/shields/lily58/lily58_left.conf
@@ -1,6 +1,3 @@
# Uncomment to enable encoder
# CONFIG_EC11=y
# CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
-
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y \ No newline at end of file
diff --git a/app/boards/shields/lily58/lily58_right.conf b/app/boards/shields/lily58/lily58_right.conf
index 990cf7c..8b13789 100644
--- a/app/boards/shields/lily58/lily58_right.conf
+++ b/app/boards/shields/lily58/lily58_right.conf
@@ -1,2 +1 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y
+
diff --git a/app/boards/shields/microdox/Kconfig.defconfig b/app/boards/shields/microdox/Kconfig.defconfig
index 3f8b748..be39c9f 100644
--- a/app/boards/shields/microdox/Kconfig.defconfig
+++ b/app/boards/shields/microdox/Kconfig.defconfig
@@ -6,6 +6,9 @@ if SHIELD_MICRODOX_LEFT
config ZMK_KEYBOARD_NAME
default "Microdox Left"
+config ZMK_SPLIT_BLE_ROLE_CENTRAL
+ default y
+
endif
diff --git a/app/boards/shields/microdox/microdox_left.conf b/app/boards/shields/microdox/microdox_left.conf
index 1e028a7..e69de29 100644
--- a/app/boards/shields/microdox/microdox_left.conf
+++ b/app/boards/shields/microdox/microdox_left.conf
@@ -1,2 +0,0 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y
diff --git a/app/boards/shields/microdox/microdox_right.conf b/app/boards/shields/microdox/microdox_right.conf
index 990cf7c..e69de29 100644
--- a/app/boards/shields/microdox/microdox_right.conf
+++ b/app/boards/shields/microdox/microdox_right.conf
@@ -1,2 +0,0 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y
diff --git a/app/boards/shields/quefrency/Kconfig.defconfig b/app/boards/shields/quefrency/Kconfig.defconfig
index 2b00cb6..9c7e8b1 100644
--- a/app/boards/shields/quefrency/Kconfig.defconfig
+++ b/app/boards/shields/quefrency/Kconfig.defconfig
@@ -7,6 +7,9 @@ if SHIELD_QUEFRENCY_LEFT
config ZMK_KEYBOARD_NAME
default "Quefrency Left"
+config ZMK_SPLIT_BLE_ROLE_CENTRAL
+ default y
+
endif
if SHIELD_QUEFRENCY_RIGHT
@@ -15,3 +18,10 @@ config ZMK_KEYBOARD_NAME
default "Quefrency Right"
endif
+
+if SHIELD_QUEFRENCY_LEFT || SHIELD_QUEFRENCY_RIGHT
+
+config ZMK_SPLIT
+ default y
+
+endif \ No newline at end of file
diff --git a/app/boards/shields/quefrency/quefrency_left.conf b/app/boards/shields/quefrency/quefrency_left.conf
index 1e028a7..e69de29 100644
--- a/app/boards/shields/quefrency/quefrency_left.conf
+++ b/app/boards/shields/quefrency/quefrency_left.conf
@@ -1,2 +0,0 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y
diff --git a/app/boards/shields/quefrency/quefrency_right.conf b/app/boards/shields/quefrency/quefrency_right.conf
index 990cf7c..e69de29 100644
--- a/app/boards/shields/quefrency/quefrency_right.conf
+++ b/app/boards/shields/quefrency/quefrency_right.conf
@@ -1,2 +0,0 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y
diff --git a/app/boards/shields/sofle/Kconfig.defconfig b/app/boards/shields/sofle/Kconfig.defconfig
index 6a4f863..cde094a 100644
--- a/app/boards/shields/sofle/Kconfig.defconfig
+++ b/app/boards/shields/sofle/Kconfig.defconfig
@@ -5,6 +5,10 @@ if SHIELD_SOFLE_LEFT
config ZMK_KEYBOARD_NAME
default "Sofle Left"
+
+config ZMK_SPLIT_BLE_ROLE_CENTRAL
+ default y
+
endif
if SHIELD_SOFLE_RIGHT
@@ -15,6 +19,9 @@ endif
if SHIELD_SOFLE_LEFT || SHIELD_SOFLE_RIGHT
+config ZMK_SPLIT
+ default y
+
if ZMK_DISPLAY
config I2C
diff --git a/app/boards/shields/sofle/sofle_left.conf b/app/boards/shields/sofle/sofle_left.conf
index bbac735..e813720 100644
--- a/app/boards/shields/sofle/sofle_left.conf
+++ b/app/boards/shields/sofle/sofle_left.conf
@@ -1,5 +1,2 @@
# Copyright (c) 2020 Ryan Cross
# SPDX-License-Identifier: MIT
-
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y
diff --git a/app/boards/shields/sofle/sofle_right.conf b/app/boards/shields/sofle/sofle_right.conf
index ca5de38..e813720 100644
--- a/app/boards/shields/sofle/sofle_right.conf
+++ b/app/boards/shields/sofle/sofle_right.conf
@@ -1,5 +1,2 @@
# Copyright (c) 2020 Ryan Cross
# SPDX-License-Identifier: MIT
-
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y
diff --git a/app/boards/shields/splitreus62/Kconfig.defconfig b/app/boards/shields/splitreus62/Kconfig.defconfig
index a2464a7..06ac131 100644
--- a/app/boards/shields/splitreus62/Kconfig.defconfig
+++ b/app/boards/shields/splitreus62/Kconfig.defconfig
@@ -8,6 +8,9 @@ if SHIELD_SPLITREUS62_LEFT
config ZMK_KEYBOARD_NAME
default "Splitreus62 Left"
+config ZMK_SPLIT_BLE_ROLE_CENTRAL
+ default y
+
endif
if SHIELD_SPLITREUS62_RIGHT
@@ -19,4 +22,7 @@ endif
if SHIELD_SPLITREUS62_LEFT || SHIELD_SPLITREUS62_RIGHT
+config ZMK_SPLIT
+ default y
+
endif
diff --git a/app/boards/shields/splitreus62/splitreus62_left.conf b/app/boards/shields/splitreus62/splitreus62_left.conf
index e51dee4..e69de29 100644
--- a/app/boards/shields/splitreus62/splitreus62_left.conf
+++ b/app/boards/shields/splitreus62/splitreus62_left.conf
@@ -1,2 +0,0 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y \ No newline at end of file
diff --git a/app/boards/shields/splitreus62/splitreus62_right.conf b/app/boards/shields/splitreus62/splitreus62_right.conf
index a835adc..e69de29 100644
--- a/app/boards/shields/splitreus62/splitreus62_right.conf
+++ b/app/boards/shields/splitreus62/splitreus62_right.conf
@@ -1,2 +0,0 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y \ No newline at end of file