diff --git a/build.yaml b/build.yaml index 695bab9cd..9281c614d 100644 --- a/build.yaml +++ b/build.yaml @@ -3,5 +3,7 @@ include: shield: totem_left - board: seeeduino_xiao_ble shield: totem_right + - board: seeeduino_xiao_ble + shield: totem_dongle - board: seeeduino_xiao_ble shield: settings_reset diff --git a/config/boards/shields/totem/Kconfig.defconfig b/config/boards/shields/totem/Kconfig.defconfig index 8a4becc7c..6316944e9 100644 --- a/config/boards/shields/totem/Kconfig.defconfig +++ b/config/boards/shields/totem/Kconfig.defconfig @@ -1,7 +1,7 @@ # Copyright (c) 2022 The ZMK Contributors # SPDX-License-Identifier: MIT -if SHIELD_TOTEM_LEFT +if SHIELD_TOTEM_DONGLE config ZMK_KEYBOARD_NAME default "TOTEM" @@ -9,11 +9,18 @@ config ZMK_KEYBOARD_NAME config ZMK_SPLIT_ROLE_CENTRAL default y +config ZMK_USB + default y + endif -if SHIELD_TOTEM_LEFT || SHIELD_TOTEM_RIGHT + +if SHIELD_TOTEM_LEFT || SHIELD_TOTEM_RIGHT || SHIELD_TOTEM_DONGLE config ZMK_SPLIT default y -endif \ No newline at end of file +config ZMK_BLE + default y + +endif diff --git a/config/boards/shields/totem/Kconfig.shield b/config/boards/shields/totem/Kconfig.shield index 436ef3578..87672ebc2 100644 --- a/config/boards/shields/totem/Kconfig.shield +++ b/config/boards/shields/totem/Kconfig.shield @@ -5,4 +5,7 @@ config SHIELD_TOTEM_LEFT def_bool $(shields_list_contains,totem_left) config SHIELD_TOTEM_RIGHT - def_bool $(shields_list_contains,totem_right) \ No newline at end of file + def_bool $(shields_list_contains,totem_right) + +config SHIELD_TOTEM_DONGLE + def_bool $(shields_list_contains,totem_dongle) diff --git a/config/boards/shields/totem/totem_dongle.conf b/config/boards/shields/totem/totem_dongle.conf new file mode 100644 index 000000000..964a32310 --- /dev/null +++ b/config/boards/shields/totem/totem_dongle.conf @@ -0,0 +1,11 @@ +CONFIG_ZMK_SPLIT_BLE_CENTRAL_PERIPHERALS=2 +CONFIG_ZMK_SLEEP=n +# CONFIG_PM_DEVICE=n +CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000 +CONFIG_ZMK_EXT_POWER=y +CONFIG_ZMK_USB_LOGGING=y +CONFIG_LOG_MODE_IMMEDIATE=n +CONFIG_LOG_TIMESTAMP_64BIT=y +CONFIG_LOG_PROCESS_THREAD_STARTUP_DELAY_MS=2000 +CONFIG_ZMK_LOG_LEVEL_DBG=y +CONFIG_KSCAN_LOG_LEVEL_INF=y diff --git a/config/boards/shields/totem/totem_dongle.overlay b/config/boards/shields/totem/totem_dongle.overlay new file mode 100644 index 000000000..f8ebd00ce --- /dev/null +++ b/config/boards/shields/totem/totem_dongle.overlay @@ -0,0 +1,15 @@ +/* + * Copyright (c) 2022 The ZMK Contributors + * + * SPDX-License-Identifier: MIT + */ + #include "totem.dtsi" + &kscan0 { + col-gpios + = <&xiao_d 8 GPIO_ACTIVE_HIGH> + , <&xiao_d 9 GPIO_ACTIVE_HIGH> + , <&xiao_d 10 GPIO_ACTIVE_HIGH> + , <&xiao_d 5 GPIO_ACTIVE_HIGH> + , <&xiao_d 4 GPIO_ACTIVE_HIGH> + ; + };