2020-05-02 13:10:11 +10:00
|
|
|
mainmenu "ZMK Firmware"
|
|
|
|
|
2020-10-12 11:36:32 +11:00
|
|
|
menu "ZMK"
|
|
|
|
|
|
|
|
menu "Basic Keyboard Setup"
|
2020-10-12 12:05:27 +11:00
|
|
|
|
2020-05-29 14:15:57 +10:00
|
|
|
config ZMK_KEYBOARD_NAME
|
|
|
|
string "Keyboard Name"
|
|
|
|
|
|
|
|
config USB_DEVICE_PRODUCT
|
|
|
|
default ZMK_KEYBOARD_NAME
|
|
|
|
|
|
|
|
config BT_DEVICE_NAME
|
|
|
|
default ZMK_KEYBOARD_NAME
|
|
|
|
|
|
|
|
menu "HID Output Types"
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
config ZMK_USB
|
2020-05-29 14:15:57 +10:00
|
|
|
bool "USB"
|
|
|
|
select USB
|
|
|
|
select USB_DEVICE_STACK
|
|
|
|
select USB_DEVICE_HID
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
if ZMK_USB
|
2020-07-08 00:20:23 +10:00
|
|
|
|
|
|
|
config ZMK_USB_INIT_PRIORITY
|
2020-10-12 12:05:27 +11:00
|
|
|
int "USB Init Priority"
|
2020-07-08 00:20:23 +10:00
|
|
|
default 50
|
|
|
|
|
2020-07-15 00:12:25 +10:00
|
|
|
config USB_NUMOF_EP_WRITE_RETRIES
|
|
|
|
default 10
|
|
|
|
|
2020-10-12 11:36:32 +11:00
|
|
|
#ZMK_USB
|
2020-07-08 00:20:23 +10:00
|
|
|
endif
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
config ZMK_BLE
|
2020-05-29 14:15:57 +10:00
|
|
|
bool "BLE (HID over GATT)"
|
2020-05-18 23:11:46 +10:00
|
|
|
select BT
|
|
|
|
select BT_SMP
|
|
|
|
select BT_SMP_SC_PAIR_ONLY
|
2020-09-09 13:26:00 +10:00
|
|
|
select BT_SMP_APP_PAIRING_ACCEPT
|
2020-05-18 23:11:46 +10:00
|
|
|
select BT_PERIPHERAL
|
|
|
|
select BT_GATT_DIS
|
|
|
|
select BT_GATT_BAS
|
2020-09-02 13:22:30 +10:00
|
|
|
select BT_SETTINGS
|
|
|
|
select SETTINGS
|
2020-05-13 03:22:07 +10:00
|
|
|
|
2020-05-19 05:07:37 +10:00
|
|
|
if ZMK_BLE
|
|
|
|
|
2020-07-08 00:20:23 +10:00
|
|
|
config ZMK_BLE_INIT_PRIORITY
|
2020-10-12 12:05:27 +11:00
|
|
|
int "BLE Init Priority"
|
2020-07-08 00:20:23 +10:00
|
|
|
default 50
|
2020-08-29 04:15:16 +10:00
|
|
|
|
2020-07-17 05:50:41 +10:00
|
|
|
config SYSTEM_WORKQUEUE_STACK_SIZE
|
|
|
|
default 2048
|
|
|
|
|
2020-09-04 03:21:01 +10:00
|
|
|
config ZMK_BLE_CLEAR_BONDS_ON_START
|
|
|
|
bool "Configuration that clears all bond information from the keyboard on startup."
|
|
|
|
default n
|
|
|
|
|
2020-05-29 14:15:57 +10: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-19 05:07:37 +10:00
|
|
|
config ZMK_BLE_PASSKEY_ENTRY
|
|
|
|
bool "Experimental: Requiring typing passkey from host to pair BLE connection"
|
|
|
|
default n
|
|
|
|
|
2020-10-12 11:36:32 +11:00
|
|
|
#ZMK_BLE
|
2020-05-19 05:07:37 +10:00
|
|
|
endif
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
#HID Output Types
|
2020-05-29 14:15:57 +10:00
|
|
|
endmenu
|
|
|
|
|
2020-06-29 14:37:11 +10: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"
|
|
|
|
default y
|
2020-08-03 05:51:42 +10:00
|
|
|
select BT_USER_PHY_UPDATE
|
2020-10-12 14:11:19 +11:00
|
|
|
select BT
|
|
|
|
select BT_SMP
|
|
|
|
select BT_SMP_SC_PAIR_ONLY
|
|
|
|
select BT_SMP_APP_PAIRING_ACCEPT
|
|
|
|
select BT_PERIPHERAL
|
|
|
|
select BT_GATT_DIS
|
|
|
|
select BT_GATT_BAS
|
|
|
|
select BT_SETTINGS
|
|
|
|
select SETTINGS
|
2020-06-29 14:37:11 +10:00
|
|
|
|
2020-07-03 13:34:11 +10: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-15 02:14:15 +10:00
|
|
|
select BT_CENTRAL
|
|
|
|
select BT_GATT_CLIENT
|
2020-07-03 13:34:11 +10:00
|
|
|
|
|
|
|
config ZMK_SPLIT_BLE_ROLE_PERIPHERAL
|
|
|
|
bool "Peripheral"
|
|
|
|
|
2020-07-18 06:42:02 +10:00
|
|
|
if ZMK_SPLIT_BLE_ROLE_PERIPHERAL
|
|
|
|
|
|
|
|
config ZMK_USB
|
|
|
|
default n
|
|
|
|
|
2020-08-29 04:15:16 +10:00
|
|
|
config BT_MAX_PAIRED
|
|
|
|
default 1
|
2020-07-18 13:04:47 +10:00
|
|
|
|
|
|
|
config BT_MAX_CONN
|
2020-09-09 13:26:00 +10:00
|
|
|
default 1
|
2020-07-18 13:04:47 +10:00
|
|
|
|
2020-08-17 06:36:43 +10:00
|
|
|
config BT_GAP_AUTO_UPDATE_CONN_PARAMS
|
|
|
|
default n
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
#ZMK_SPLIT_BLE_ROLE_PERIPHERAL
|
2020-07-18 06:42:02 +10:00
|
|
|
endif
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
#ZMK_SPLIT_BLE_ROLE
|
2020-07-03 13:34:11 +10:00
|
|
|
endchoice
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
#ZMK_SPLIT_BLE
|
2020-09-10 04:33:09 +10:00
|
|
|
endif
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
#ZMK_SPLIT
|
2020-09-10 04:33:09 +10:00
|
|
|
endif
|
|
|
|
|
2020-10-12 14:11:19 +11:00
|
|
|
if ZMK_BLE || ZMK_SPLIT_BLE
|
2020-09-30 02:21:06 +10:00
|
|
|
|
|
|
|
if ZMK_SPLIT_BLE && ZMK_SPLIT_BLE_ROLE_CENTRAL
|
2020-09-09 13:26:00 +10:00
|
|
|
|
|
|
|
config BT_MAX_CONN
|
|
|
|
default 6
|
|
|
|
|
2020-09-30 02:21:06 +10:00
|
|
|
config BT_MAX_PAIRED
|
|
|
|
default 6
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
#ZMK_SPLIT_BLE && ZMK_SPLIT_BLE_ROLE_CENTRAL
|
2020-09-30 02:21:06 +10:00
|
|
|
endif
|
|
|
|
|
|
|
|
if !ZMK_SPLIT_BLE
|
|
|
|
|
|
|
|
config BT_MAX_CONN
|
|
|
|
default 5
|
|
|
|
|
2020-09-09 13:26:00 +10:00
|
|
|
config BT_MAX_PAIRED
|
|
|
|
default 5
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
#!ZMK_SPLIT_BLE
|
2020-09-09 13:26:00 +10:00
|
|
|
endif
|
|
|
|
|
2020-10-12 14:11:19 +11:00
|
|
|
#ZMK_BLE || ZMK_SPLIT_BLE
|
2020-09-30 02:21:06 +10:00
|
|
|
endif
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
#Split Support
|
2020-06-29 14:37:11 +10:00
|
|
|
endmenu
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
#Basic Keyboard Setup
|
2020-10-12 11:36:32 +11:00
|
|
|
endmenu
|
2020-05-13 03:22:07 +10:00
|
|
|
|
2020-10-12 11:36:32 +11:00
|
|
|
menu "Display/LED Options"
|
2020-05-27 14:48:03 +10:00
|
|
|
|
2020-10-12 11:36:32 +11:00
|
|
|
config ZMK_DISPLAY
|
|
|
|
bool "ZMK display support"
|
2020-05-27 14:48:03 +10:00
|
|
|
default n
|
2020-10-12 11:36:32 +11:00
|
|
|
select DISPLAY
|
|
|
|
select LVGL
|
|
|
|
select LVGL_THEMES
|
|
|
|
select LVGL_THEME_MONO
|
|
|
|
select LVGL_OBJ_LABEL
|
2020-07-24 16:06:56 +10:00
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
config ZMK_RGB_UNDERGLOW
|
2020-07-24 16:06:56 +10:00
|
|
|
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
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
#ZMK_RGB_UNDERGLOW
|
2020-07-24 16:06:56 +10:00
|
|
|
endif
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
#Display/LED Options
|
2020-10-12 11:36:32 +11:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Power Management"
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
config ZMK_SLEEP
|
2020-10-12 11:36:32 +11:00
|
|
|
bool "Enable deep sleep support"
|
|
|
|
imply USB
|
|
|
|
|
|
|
|
if ZMK_SLEEP
|
|
|
|
|
|
|
|
config SYS_POWER_DEEP_SLEEP_STATES
|
|
|
|
default y
|
|
|
|
|
|
|
|
choice SYS_PM_POLICY
|
|
|
|
default SYS_PM_POLICY_APP
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config ZMK_IDLE_SLEEP_TIMEOUT
|
|
|
|
int "Milliseconds to wait to sleep when going idle"
|
|
|
|
default 900000
|
|
|
|
|
|
|
|
#ZMK_SLEEP
|
|
|
|
endif
|
|
|
|
|
|
|
|
config ZMK_EXT_POWER
|
|
|
|
bool "Enable support to control external power output"
|
|
|
|
default y
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
#Power Management
|
2020-10-12 11:36:32 +11:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "KSCAN Settings (Advanced)"
|
|
|
|
|
|
|
|
config ZMK_KSCAN_EVENT_QUEUE_SIZE
|
|
|
|
int "Size of the event queue for KSCAN events to buffer events"
|
|
|
|
default 4
|
|
|
|
|
|
|
|
config ZMK_KSCAN_MOCK_DRIVER
|
|
|
|
bool "Enable mock kscan driver to simulate key presses"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ZMK_KSCAN_COMPOSITE_DRIVER
|
|
|
|
bool "Enable composite kscan driver to combine kscan devices"
|
|
|
|
default n
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
#KSCAN Settings (Advanced)
|
2020-10-12 11:36:32 +11:00
|
|
|
endmenu
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
#ZMK
|
2020-07-24 16:06:56 +10:00
|
|
|
endmenu
|
|
|
|
|
2020-06-30 14:31:09 +10:00
|
|
|
config HEAP_MEM_POOL_SIZE
|
2020-07-25 06:39:11 +10:00
|
|
|
default 8192
|
2020-06-30 14:31:09 +10:00
|
|
|
|
2020-07-25 14:50:42 +10:00
|
|
|
config KERNEL_BIN_NAME
|
|
|
|
default "zmk"
|
|
|
|
|
|
|
|
config REBOOT
|
|
|
|
default y
|
|
|
|
|
2020-05-25 08:22:16 +10:00
|
|
|
module = ZMK
|
|
|
|
module-str = zmk
|
2020-05-13 03:22:07 +10:00
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
|
2020-05-29 06:56:39 +10:00
|
|
|
rsource "boards/Kconfig"
|
|
|
|
rsource "boards/shields/*/Kconfig.defconfig"
|
2020-08-21 00:51:35 +10:00
|
|
|
rsource "boards/shields/*/Kconfig.shield"
|
|
|
|
|
|
|
|
osource "$(ZMK_CONFIG)/boards/shields/*/Kconfig.defconfig"
|
|
|
|
osource "$(ZMK_CONFIG)/boards/shields/*/Kconfig.shield"
|
2020-05-29 06:56:39 +10:00
|
|
|
|
2020-05-02 13:10:11 +10:00
|
|
|
source "Kconfig.zephyr"
|
2020-05-29 06:56:39 +10:00
|
|
|
|