2020-05-01 20:10:11 -07:00
|
|
|
mainmenu "ZMK Firmware"
|
|
|
|
|
2020-05-28 21:15:57 -07:00
|
|
|
config ZMK_KEYBOARD_NAME
|
|
|
|
string "Keyboard Name"
|
|
|
|
|
|
|
|
config USB_DEVICE_PRODUCT
|
|
|
|
default ZMK_KEYBOARD_NAME
|
|
|
|
|
|
|
|
config BT_DEVICE_NAME
|
|
|
|
default ZMK_KEYBOARD_NAME
|
|
|
|
|
2020-05-01 20:10:11 -07:00
|
|
|
config ZMK_KSCAN_EVENT_QUEUE_SIZE
|
|
|
|
int "Size of the event queue for KSCAN events to buffer events"
|
|
|
|
default 4
|
|
|
|
|
2020-05-28 21:15:57 -07:00
|
|
|
menu "HID Output Types"
|
|
|
|
|
2020-07-07 07:20:23 -07:00
|
|
|
menuconfig ZMK_USB
|
2020-05-28 21:15:57 -07:00
|
|
|
bool "USB"
|
|
|
|
select USB
|
|
|
|
select USB_DEVICE_STACK
|
|
|
|
select USB_DEVICE_HID
|
|
|
|
|
2020-07-07 07:20:23 -07:00
|
|
|
if ZMK_USB
|
|
|
|
|
|
|
|
config ZMK_USB_INIT_PRIORITY
|
|
|
|
int "Init Priority"
|
|
|
|
default 50
|
|
|
|
|
2020-07-14 07:12:25 -07:00
|
|
|
config USB_NUMOF_EP_WRITE_RETRIES
|
|
|
|
default 10
|
|
|
|
|
2020-07-07 07:20:23 -07:00
|
|
|
endif
|
|
|
|
|
2020-05-28 21:15:57 -07:00
|
|
|
menuconfig ZMK_BLE
|
|
|
|
bool "BLE (HID over GATT)"
|
2020-05-18 06:11:46 -07:00
|
|
|
select BT
|
|
|
|
select BT_SMP
|
|
|
|
select BT_SMP_SC_PAIR_ONLY
|
|
|
|
select BT_PERIPHERAL
|
|
|
|
select BT_GATT_DIS
|
|
|
|
select BT_GATT_BAS
|
2020-08-18 08:20:15 -07:00
|
|
|
select SETTINGS
|
2020-08-20 04:39:14 -07:00
|
|
|
# select BT_SETTINGS
|
2020-05-12 10:22:07 -07:00
|
|
|
|
2020-05-18 12:07:37 -07:00
|
|
|
if ZMK_BLE
|
|
|
|
|
2020-07-07 07:20:23 -07:00
|
|
|
config ZMK_BLE_INIT_PRIORITY
|
|
|
|
int "Init Priority"
|
|
|
|
default 50
|
|
|
|
|
2020-07-16 12:50:41 -07:00
|
|
|
config SYSTEM_WORKQUEUE_STACK_SIZE
|
|
|
|
default 2048
|
|
|
|
|
2020-05-28 21:15:57 -07:00
|
|
|
# HID GATT notifications sent this way are *not* picked up by Linux, and possibly others.
|
|
|
|
config BT_GATT_NOTIFY_MULTIPLE
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BT_DEVICE_APPEARANCE
|
|
|
|
default 961
|
|
|
|
|
2020-05-18 12:07:37 -07:00
|
|
|
config ZMK_BLE_PASSKEY_ENTRY
|
|
|
|
bool "Experimental: Requiring typing passkey from host to pair BLE connection"
|
|
|
|
default n
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2020-05-28 21:15:57 -07:00
|
|
|
endmenu
|
|
|
|
|
2020-07-24 13:39:11 -07:00
|
|
|
config ZMK_DISPLAY
|
|
|
|
bool "ZMK display support"
|
|
|
|
default n
|
|
|
|
select DISPLAY
|
|
|
|
select LVGL
|
|
|
|
select LVGL_THEMES
|
|
|
|
select LVGL_THEME_MONO
|
|
|
|
select LVGL_OBJ_LABEL
|
2020-06-28 21:37:11 -07:00
|
|
|
|
|
|
|
menu "Split Support"
|
|
|
|
|
|
|
|
config ZMK_SPLIT
|
|
|
|
bool "Split keyboard support"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if ZMK_SPLIT
|
|
|
|
|
|
|
|
config ZMK_SPLIT_BLE
|
|
|
|
bool "Split keyboard support via BLE transport"
|
|
|
|
depends on ZMK_BLE
|
|
|
|
default y
|
2020-08-02 12:51:42 -07:00
|
|
|
select BT_USER_PHY_UPDATE
|
2020-06-28 21:37:11 -07:00
|
|
|
|
2020-07-02 20:34:11 -07:00
|
|
|
if ZMK_SPLIT_BLE
|
|
|
|
|
|
|
|
choice ZMK_SPLIT_BLE_ROLE
|
|
|
|
bool "BLE Role For Split Communication"
|
|
|
|
default ZMK_SPLIT_BLE_ROLE_CENTRAL
|
|
|
|
|
|
|
|
config ZMK_SPLIT_BLE_ROLE_CENTRAL
|
|
|
|
bool "Central"
|
2020-07-14 09:14:15 -07:00
|
|
|
select BT_CENTRAL
|
|
|
|
select BT_GATT_CLIENT
|
2020-07-02 20:34:11 -07:00
|
|
|
|
2020-07-16 12:50:41 -07:00
|
|
|
if ZMK_SPLIT_BLE_ROLE_CENTRAL
|
|
|
|
|
|
|
|
config BT_MAX_CONN
|
2020-07-17 20:04:47 -07:00
|
|
|
default 5
|
2020-07-16 12:50:41 -07:00
|
|
|
|
2020-08-14 13:44:13 -07:00
|
|
|
config BT_MAX_PAIRED
|
|
|
|
# Bump this everywhere once we support switching active connections!
|
|
|
|
default 2
|
|
|
|
|
2020-07-16 12:50:41 -07:00
|
|
|
endif
|
|
|
|
|
2020-07-02 20:34:11 -07:00
|
|
|
config ZMK_SPLIT_BLE_ROLE_PERIPHERAL
|
|
|
|
bool "Peripheral"
|
|
|
|
|
2020-07-17 13:42:02 -07:00
|
|
|
if ZMK_SPLIT_BLE_ROLE_PERIPHERAL
|
|
|
|
|
|
|
|
config ZMK_USB
|
|
|
|
default n
|
|
|
|
|
2020-07-17 20:04:47 -07:00
|
|
|
|
|
|
|
config BT_MAX_CONN
|
|
|
|
default 5
|
|
|
|
|
2020-08-16 13:36:43 -07:00
|
|
|
config BT_GAP_AUTO_UPDATE_CONN_PARAMS
|
|
|
|
default n
|
|
|
|
|
2020-07-17 13:42:02 -07:00
|
|
|
endif
|
|
|
|
|
2020-07-02 20:34:11 -07:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2020-06-28 21:37:11 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
|
2020-05-24 15:22:16 -07:00
|
|
|
config ZMK_KSCAN_MOCK_DRIVER
|
|
|
|
bool "Enable mock kscan driver to simulate key presses"
|
|
|
|
default n
|
2020-05-12 10:22:07 -07:00
|
|
|
|
2020-05-26 21:48:03 -07:00
|
|
|
|
|
|
|
config ZMK_KSCAN_COMPOSITE_DRIVER
|
|
|
|
bool "Enable composite kscan driver to combine kscan devices"
|
|
|
|
default n
|
|
|
|
|
2020-05-22 19:47:03 -07:00
|
|
|
menu "ZMK Actions"
|
|
|
|
|
|
|
|
config ZMK_ACTION_MOD_TAP
|
|
|
|
bool "Enable the Mod-Tap Action"
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
2020-07-23 23:06:56 -07:00
|
|
|
menu "ZMK Lighting"
|
|
|
|
|
|
|
|
menuconfig ZMK_RGB_UNDERGLOW
|
|
|
|
bool "RGB Adressable LED Underglow"
|
|
|
|
select LED_STRIP
|
|
|
|
|
|
|
|
if ZMK_RGB_UNDERGLOW
|
|
|
|
|
|
|
|
config ZMK_RGB_UNDERGLOW_HUE_STEP
|
|
|
|
int "RGB underglow hue step in degrees of 360"
|
|
|
|
default 10
|
|
|
|
|
|
|
|
config ZMK_RGB_UNDERGLOW_SAT_STEP
|
|
|
|
int "RGB underglow sturation step in percent"
|
|
|
|
default 10
|
|
|
|
|
|
|
|
config ZMK_RGB_UNDERGLOW_BRT_STEP
|
|
|
|
int "RGB underglow brightness step in percent"
|
|
|
|
default 10
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
2020-06-29 21:31:09 -07:00
|
|
|
config HEAP_MEM_POOL_SIZE
|
2020-07-24 13:39:11 -07:00
|
|
|
default 8192
|
2020-06-29 21:31:09 -07:00
|
|
|
|
2020-07-24 21:50:42 -07:00
|
|
|
config KERNEL_BIN_NAME
|
|
|
|
default "zmk"
|
|
|
|
|
|
|
|
config REBOOT
|
|
|
|
default y
|
|
|
|
|
2020-05-24 15:22:16 -07:00
|
|
|
module = ZMK
|
|
|
|
module-str = zmk
|
2020-05-12 10:22:07 -07:00
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
|
2020-05-28 13:56:39 -07:00
|
|
|
rsource "boards/Kconfig"
|
|
|
|
rsource "boards/shields/*/Kconfig.defconfig"
|
2020-08-20 07:51:35 -07:00
|
|
|
rsource "boards/shields/*/Kconfig.shield"
|
|
|
|
|
|
|
|
osource "$(ZMK_CONFIG)/boards/shields/*/Kconfig.defconfig"
|
|
|
|
osource "$(ZMK_CONFIG)/boards/shields/*/Kconfig.shield"
|
2020-05-28 13:56:39 -07:00
|
|
|
|
2020-05-01 20:10:11 -07:00
|
|
|
source "Kconfig.zephyr"
|
2020-05-28 13:56:39 -07:00
|
|
|
|