2020-11-19 09:15:00 +11:00
|
|
|
# Copyright (c) 2020 The ZMK Contributors
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
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
|
|
|
|
|
2020-10-21 13:47:49 +11:00
|
|
|
config USB_DEVICE_VID
|
|
|
|
default 0x1D50
|
|
|
|
|
|
|
|
config USB_DEVICE_PID
|
|
|
|
default 0x615E
|
|
|
|
|
|
|
|
config USB_DEVICE_MANUFACTURER
|
|
|
|
default "ZMK Project"
|
|
|
|
|
2021-03-15 15:40:09 +11:00
|
|
|
menu "HID"
|
|
|
|
|
|
|
|
choice ZMK_HID_REPORT_TYPE
|
|
|
|
prompt "HID Report Type"
|
|
|
|
|
|
|
|
config ZMK_HID_REPORT_TYPE_HKRO
|
|
|
|
bool "#-Key Roll Over (HKRO) HID Report"
|
|
|
|
help
|
|
|
|
Enable # key roll over for HID report. This selection is "boot keyboard" compatible
|
|
|
|
but limits the total number of possible keys to report as held to #.
|
|
|
|
|
|
|
|
config ZMK_HID_REPORT_TYPE_NKRO
|
|
|
|
bool "Full N-Key Roll Over (NKRO) HID Report"
|
|
|
|
help
|
|
|
|
Enable full N-Key Roll Over for HID output. This selection will prevent the keyboard
|
|
|
|
from working with some BIOS/UEFI versions that only support "boot keyboard" support.
|
|
|
|
This option also prevents using some infrequently used higher range HID usages.
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
if ZMK_HID_REPORT_TYPE_HKRO
|
|
|
|
|
|
|
|
config ZMK_HID_KEYBOARD_REPORT_SIZE
|
|
|
|
int "# Keyboard Keys Reportable"
|
|
|
|
default 6
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
config ZMK_HID_CONSUMER_REPORT_SIZE
|
|
|
|
int "# Consumer Keys Reportable"
|
|
|
|
default 6
|
|
|
|
|
2021-10-05 13:41:56 +11:00
|
|
|
|
|
|
|
choice ZMK_HID_CONSUMER_REPORT_USAGES
|
|
|
|
prompt "HID Report Type"
|
|
|
|
|
|
|
|
config ZMK_HID_CONSUMER_REPORT_USAGES_FULL
|
|
|
|
bool "Full Consumer HID Usage Support"
|
|
|
|
help
|
|
|
|
Enable full Consumer usage ID values to be sent to hosts. Allows for less
|
|
|
|
frequently used usages, but has compatibability issues with some host OSes.
|
|
|
|
|
|
|
|
config ZMK_HID_CONSUMER_REPORT_USAGES_BASIC
|
|
|
|
bool "Basic Consumer HID Usage Support"
|
|
|
|
help
|
|
|
|
Enable Consumer usage ID values up to "Playback Speed - Slow" to be sent to
|
|
|
|
hosts. Allows for broader compatibability with more host OSes.
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2021-03-15 15:40:09 +11:00
|
|
|
menu "Output Types"
|
2020-05-29 14:15:57 +10:00
|
|
|
|
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-31 23:24:38 +11:00
|
|
|
if ZMK_USB
|
2020-07-08 00:20:23 +10:00
|
|
|
|
2020-07-15 00:12:25 +10:00
|
|
|
config USB_NUMOF_EP_WRITE_RETRIES
|
|
|
|
default 10
|
|
|
|
|
2020-10-31 23:24:38 +11:00
|
|
|
#ZMK_USB
|
2020-07-08 00:20:23 +10:00
|
|
|
endif
|
|
|
|
|
2020-12-04 08:04:48 +11:00
|
|
|
menuconfig 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
|
2020-11-19 06:12:10 +11:00
|
|
|
select BT_DIS
|
|
|
|
select BT_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-17 05:50:41 +10:00
|
|
|
config SYSTEM_WORKQUEUE_STACK_SIZE
|
|
|
|
default 2048
|
|
|
|
|
2020-12-04 08:04:48 +11:00
|
|
|
config ZMK_BLE_THREAD_STACK_SIZE
|
|
|
|
int "BLE notify thread stack size"
|
|
|
|
default 512
|
|
|
|
|
|
|
|
config ZMK_BLE_THREAD_PRIORITY
|
|
|
|
int "BLE notify thread priority"
|
|
|
|
default 5
|
|
|
|
|
|
|
|
config ZMK_BLE_KEYBOARD_REPORT_QUEUE_SIZE
|
|
|
|
int "Max number of keyboard HID reports to queue for sending over BLE"
|
|
|
|
default 20
|
|
|
|
|
|
|
|
config ZMK_BLE_CONSUMER_REPORT_QUEUE_SIZE
|
|
|
|
int "Max number of consumer HID reports to queue for sending over BLE"
|
|
|
|
default 5
|
|
|
|
|
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
|
|
|
|
|
2021-11-09 15:19:55 +11:00
|
|
|
config BT_GATT_AUTO_SEC_REQ
|
|
|
|
default n
|
|
|
|
|
2020-05-29 14:15:57 +10:00
|
|
|
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
|
|
|
|
|
2021-03-15 15:40:09 +11:00
|
|
|
#Output Types
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
# HID
|
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"
|
|
|
|
|
|
|
|
if ZMK_SPLIT
|
|
|
|
|
2021-01-07 01:32:08 +11:00
|
|
|
menuconfig ZMK_SPLIT_BLE
|
2020-06-29 14:37:11 +10:00
|
|
|
bool "Split keyboard support via BLE transport"
|
2020-10-31 23:24:38 +11:00
|
|
|
depends on ZMK_BLE
|
2020-06-29 14:37:11 +10:00
|
|
|
default y
|
2020-08-03 05:51:42 +10:00
|
|
|
select BT_USER_PHY_UPDATE
|
2020-06-29 14:37:11 +10:00
|
|
|
|
2020-07-03 13:34:11 +10:00
|
|
|
if ZMK_SPLIT_BLE
|
|
|
|
|
2020-12-03 16:12:21 +11:00
|
|
|
menuconfig ZMK_SPLIT_BLE_ROLE_CENTRAL
|
2020-07-03 13:34:11 +10:00
|
|
|
bool "Central"
|
2020-07-15 02:14:15 +10:00
|
|
|
select BT_CENTRAL
|
|
|
|
select BT_GATT_CLIENT
|
2021-10-17 13:27:10 +11:00
|
|
|
select BT_GATT_AUTO_DISCOVER_CCC
|
2020-07-03 13:34:11 +10:00
|
|
|
|
2020-12-03 16:12:21 +11:00
|
|
|
if ZMK_SPLIT_BLE_ROLE_CENTRAL
|
|
|
|
|
|
|
|
config ZMK_SPLIT_BLE_CENTRAL_POSITION_QUEUE_SIZE
|
|
|
|
int "Max number of key position state events to queue when received from peripherals"
|
|
|
|
default 5
|
|
|
|
|
2021-11-21 09:12:24 +11:00
|
|
|
config ZMK_BLE_SPLIT_CENTRAL_SPLIT_RUN_STACK_SIZE
|
|
|
|
int "BLE split central write thread stack size"
|
|
|
|
default 512
|
|
|
|
|
|
|
|
config ZMK_BLE_SPLIT_CENTRAL_SPLIT_RUN_QUEUE_SIZE
|
|
|
|
int "Max number of behavior run events to queue to send to the peripheral(s)"
|
|
|
|
default 5
|
|
|
|
|
2020-12-03 16:12:21 +11:00
|
|
|
endif
|
|
|
|
|
2020-12-13 15:13:49 +11:00
|
|
|
if !ZMK_SPLIT_BLE_ROLE_CENTRAL
|
2020-07-18 06:42:02 +10:00
|
|
|
|
2021-01-07 01:32:08 +11:00
|
|
|
config ZMK_SPLIT_BLE_PERIPHERAL_STACK_SIZE
|
|
|
|
int "BLE split peripheral notify thread stack size"
|
|
|
|
default 512
|
|
|
|
|
|
|
|
config ZMK_SPLIT_BLE_PERIPHERAL_PRIORITY
|
|
|
|
int "BLE split peripheral notify thread priority"
|
|
|
|
default 5
|
|
|
|
|
|
|
|
config ZMK_SPLIT_BLE_PERIPHERAL_POSITION_QUEUE_SIZE
|
|
|
|
int "Max number of key position state events to queue to send to the central"
|
|
|
|
default 10
|
|
|
|
|
2020-07-18 06:42:02 +10:00
|
|
|
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-12-13 15:13:49 +11:00
|
|
|
#!ZMK_SPLIT_BLE_ROLE_CENTRAL
|
2020-07-18 06:42:02 +10:00
|
|
|
endif
|
|
|
|
|
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
|
2021-10-07 14:54:49 +11:00
|
|
|
endif
|
2020-09-10 04:33:09 +10:00
|
|
|
|
2020-10-31 23:24:38 +11:00
|
|
|
if ZMK_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-31 23:24:38 +11:00
|
|
|
#ZMK_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-09-01 00:18:19 +10:00
|
|
|
rsource "src/display/Kconfig"
|
2020-07-24 16:06:56 +10:00
|
|
|
|
2021-10-10 03:24:37 +11:00
|
|
|
menuconfig ZMK_RGB_UNDERGLOW
|
2020-07-24 16:06:56 +10:00
|
|
|
bool "RGB Adressable LED Underglow"
|
|
|
|
select LED_STRIP
|
|
|
|
|
|
|
|
if ZMK_RGB_UNDERGLOW
|
|
|
|
|
2020-10-21 13:47:49 +11:00
|
|
|
# This default value cuts down on tons of excess .conf files, if you're using GPIO, manually disable this
|
|
|
|
config SPI
|
|
|
|
default y
|
|
|
|
|
2020-11-23 13:07:13 +11:00
|
|
|
config ZMK_RGB_UNDERGLOW_EXT_POWER
|
|
|
|
bool "RGB underglow toggling also controls external power"
|
|
|
|
default y
|
|
|
|
|
2021-10-07 14:54:49 +11:00
|
|
|
config ZMK_RGB_UNDERGLOW_BRT_MIN
|
|
|
|
int "RGB underglow minimum brightness in percent"
|
|
|
|
range 0 100
|
|
|
|
default 0
|
|
|
|
|
|
|
|
config ZMK_RGB_UNDERGLOW_BRT_MAX
|
|
|
|
int "RGB underglow maximum brightness in percent"
|
2021-10-11 19:50:47 +11:00
|
|
|
range ZMK_RGB_UNDERGLOW_BRT_MIN 100
|
2021-10-07 14:54:49 +11:00
|
|
|
default 100
|
|
|
|
|
2020-07-24 16:06:56 +10:00
|
|
|
config ZMK_RGB_UNDERGLOW_HUE_STEP
|
2021-10-11 19:50:47 +11:00
|
|
|
int "RGB underglow hue step in degrees"
|
|
|
|
range 0 359
|
2020-07-24 16:06:56 +10:00
|
|
|
default 10
|
|
|
|
|
|
|
|
config ZMK_RGB_UNDERGLOW_SAT_STEP
|
2021-10-11 19:50:47 +11:00
|
|
|
int "RGB underglow saturation step in percent"
|
|
|
|
range 0 100
|
2020-07-24 16:06:56 +10:00
|
|
|
default 10
|
|
|
|
|
|
|
|
config ZMK_RGB_UNDERGLOW_BRT_STEP
|
|
|
|
int "RGB underglow brightness step in percent"
|
2021-10-11 19:50:47 +11:00
|
|
|
range 0 100
|
2020-07-24 16:06:56 +10:00
|
|
|
default 10
|
|
|
|
|
2020-10-21 13:47:49 +11:00
|
|
|
config ZMK_RGB_UNDERGLOW_HUE_START
|
2021-10-11 19:50:47 +11:00
|
|
|
int "RGB underglow start hue value in degrees"
|
|
|
|
range 0 359
|
2020-10-21 13:47:49 +11:00
|
|
|
default 0
|
|
|
|
|
|
|
|
config ZMK_RGB_UNDERGLOW_SAT_START
|
2021-10-11 19:50:47 +11:00
|
|
|
int "RGB underglow start saturations value in percent"
|
|
|
|
range 0 100
|
2020-10-21 13:47:49 +11:00
|
|
|
default 100
|
|
|
|
|
|
|
|
config ZMK_RGB_UNDERGLOW_BRT_START
|
2021-10-11 19:50:47 +11:00
|
|
|
int "RGB underglow start brightness value in percent"
|
|
|
|
range ZMK_RGB_UNDERGLOW_BRT_MIN ZMK_RGB_UNDERGLOW_BRT_MAX
|
|
|
|
default ZMK_RGB_UNDERGLOW_BRT_MAX
|
2020-10-21 13:47:49 +11:00
|
|
|
|
|
|
|
config ZMK_RGB_UNDERGLOW_SPD_START
|
2021-10-11 19:50:47 +11:00
|
|
|
int "RGB underglow start animation speed value"
|
|
|
|
range 1 5
|
2020-10-21 13:47:49 +11:00
|
|
|
default 3
|
|
|
|
|
|
|
|
config ZMK_RGB_UNDERGLOW_EFF_START
|
|
|
|
int "RGB underglow start effect int value related to the effect enum list"
|
2021-10-11 19:50:47 +11:00
|
|
|
range 0 3
|
2020-10-21 13:47:49 +11:00
|
|
|
default 0
|
|
|
|
|
|
|
|
config ZMK_RGB_UNDERGLOW_ON_START
|
2020-11-23 13:07:13 +11:00
|
|
|
bool "RGB underglow starts on by default"
|
2020-10-21 13:47:49 +11:00
|
|
|
default y
|
|
|
|
|
2020-10-12 12:05:27 +11:00
|
|
|
#ZMK_RGB_UNDERGLOW
|
2020-07-24 16:06:56 +10:00
|
|
|
endif
|
|
|
|
|
2021-10-10 03:24:37 +11:00
|
|
|
menuconfig ZMK_BACKLIGHT
|
|
|
|
bool "LED backlight"
|
|
|
|
select LED
|
|
|
|
|
|
|
|
if ZMK_BACKLIGHT
|
|
|
|
|
|
|
|
config ZMK_BACKLIGHT_BRT_STEP
|
|
|
|
int "Brightness step in percent"
|
|
|
|
range 1 100
|
|
|
|
default 20
|
|
|
|
|
|
|
|
config ZMK_BACKLIGHT_BRT_START
|
|
|
|
int "Default brightness in percent"
|
|
|
|
range 1 100
|
|
|
|
default 40
|
|
|
|
|
|
|
|
config ZMK_BACKLIGHT_ON_START
|
|
|
|
bool "Default backlight state"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config ZMK_BACKLIGHT_AUTO_OFF_IDLE
|
|
|
|
bool "Turn off backlight when keyboard goes into idle state"
|
|
|
|
|
|
|
|
config ZMK_BACKLIGHT_AUTO_OFF_USB
|
|
|
|
bool "Turn off backlight when USB is disconnected"
|
|
|
|
|
|
|
|
#ZMK_BACKLIGHT
|
|
|
|
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-12-01 16:52:32 +11:00
|
|
|
config ZMK_IDLE_TIMEOUT
|
|
|
|
int "Milliseconds of inactivity before entering idle state (OLED shutoff, etc)"
|
|
|
|
default 30000
|
|
|
|
|
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
|
|
|
|
|
2021-07-27 15:14:52 +10:00
|
|
|
config PM_DEVICE
|
2020-12-16 06:22:16 +11:00
|
|
|
default y
|
|
|
|
|
2020-10-12 11:36:32 +11:00
|
|
|
config ZMK_IDLE_SLEEP_TIMEOUT
|
2020-12-01 16:52:32 +11:00
|
|
|
int "Milliseconds of inactivity before entering deep sleep"
|
2020-10-12 11:36:32 +11:00
|
|
|
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
|
|
|
|
|
2020-12-12 09:24:44 +11:00
|
|
|
menu "Combo options"
|
|
|
|
|
|
|
|
config ZMK_COMBO_MAX_PRESSED_COMBOS
|
|
|
|
int "Maximum number of currently pressed combos"
|
|
|
|
default 4
|
|
|
|
|
|
|
|
config ZMK_COMBO_MAX_COMBOS_PER_KEY
|
|
|
|
int "Maximum number of combos per key"
|
|
|
|
default 5
|
|
|
|
|
|
|
|
config ZMK_COMBO_MAX_KEYS_PER_COMBO
|
|
|
|
int "Maximum number of keys per combo"
|
|
|
|
default 4
|
|
|
|
|
2021-10-10 03:24:37 +11:00
|
|
|
#Combo options
|
2020-12-12 09:24:44 +11:00
|
|
|
endmenu
|
|
|
|
|
2022-03-13 02:15:39 +11:00
|
|
|
menu "Behavior Options"
|
|
|
|
|
|
|
|
config ZMK_BEHAVIORS_QUEUE_SIZE
|
|
|
|
int "Maximum number of behaviors to allow queueing from a macro or other complex behavior"
|
|
|
|
default 64
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
2020-10-28 23:47:22 +11:00
|
|
|
menu "Advanced"
|
|
|
|
|
|
|
|
menu "Initialization Priorities"
|
|
|
|
|
2021-11-05 15:21:30 +11:00
|
|
|
if USB_DEVICE_STACK
|
2020-10-28 23:47:22 +11:00
|
|
|
|
|
|
|
config ZMK_USB_INIT_PRIORITY
|
|
|
|
int "USB Init Priority"
|
|
|
|
default 50
|
|
|
|
|
|
|
|
#USB
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ZMK_BLE || ZMK_SPLIT_BLE
|
|
|
|
|
|
|
|
config ZMK_BLE_INIT_PRIORITY
|
|
|
|
int "BLE Init Priority"
|
|
|
|
default 50
|
|
|
|
|
|
|
|
#ZMK_BLE || ZMK_SPLIT_BLE
|
|
|
|
endif
|
|
|
|
|
|
|
|
#Initialization Priorities
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "KSCAN Settings"
|
2020-10-12 11:36:32 +11:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
config ZMK_KSCAN_COMPOSITE_DRIVER
|
|
|
|
bool "Enable composite kscan driver to combine kscan devices"
|
|
|
|
|
2020-10-28 23:47:22 +11:00
|
|
|
#KSCAN Settings
|
|
|
|
endmenu
|
|
|
|
|
2021-01-07 17:08:34 +11:00
|
|
|
menu "USB Logging"
|
|
|
|
|
|
|
|
config ZMK_USB_LOGGING
|
|
|
|
bool "Enable USB CDC ACM logging to help debug"
|
|
|
|
select LOG
|
|
|
|
select USB
|
|
|
|
select USB_DEVICE_STACK
|
|
|
|
select USB_CDC_ACM
|
|
|
|
select SERIAL
|
|
|
|
select CONSOLE
|
|
|
|
select UART_INTERRUPT_DRIVEN
|
|
|
|
select UART_LINE_CTRL
|
|
|
|
select UART_CONSOLE
|
|
|
|
select USB_UART_CONSOLE
|
|
|
|
|
|
|
|
if ZMK_USB_LOGGING
|
|
|
|
|
|
|
|
config ZMK_LOG_LEVEL
|
|
|
|
default 4
|
|
|
|
|
2022-04-13 13:20:35 +10:00
|
|
|
# We do this to avoid log loop where logging to USB generates more log messages.
|
|
|
|
config USB_CDC_ACM_LOG_LEVEL
|
|
|
|
default 1
|
|
|
|
|
2021-01-07 17:08:34 +11:00
|
|
|
config USB_CDC_ACM_RINGBUF_SIZE
|
|
|
|
default 1024
|
|
|
|
|
|
|
|
config LOG_BUFFER_SIZE
|
|
|
|
default 8192
|
|
|
|
|
|
|
|
config LOG_STRDUP_BUF_COUNT
|
|
|
|
default 16
|
|
|
|
|
2022-04-13 13:20:35 +10:00
|
|
|
config LOG_PROCESS_THREAD_STARTUP_DELAY_MS
|
|
|
|
default 1000
|
|
|
|
|
2021-01-07 17:08:34 +11:00
|
|
|
#ZMK_USB_LOGGING
|
|
|
|
endif
|
|
|
|
|
|
|
|
#USB Logging
|
|
|
|
endmenu
|
|
|
|
|
2020-12-03 09:09:17 +11:00
|
|
|
if SETTINGS
|
|
|
|
|
|
|
|
config ZMK_SETTINGS_SAVE_DEBOUNCE
|
|
|
|
int "Milliseconds to debounce settings saves"
|
|
|
|
default 60000
|
|
|
|
|
|
|
|
#SETTINGS
|
|
|
|
endif
|
|
|
|
|
2020-10-28 23:47:22 +11:00
|
|
|
#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
|
|
|
|
|
2021-11-05 15:21:30 +11:00
|
|
|
config USB_DEVICE_STACK
|
2021-01-09 08:32:55 +11:00
|
|
|
default y if HAS_HW_NRF_USBD
|
|
|
|
|
2021-01-23 03:23:21 +11:00
|
|
|
config ZMK_WPM
|
|
|
|
bool "Calculate WPM"
|
|
|
|
default n
|
|
|
|
|
2021-02-05 04:14:14 +11:00
|
|
|
config SENSOR
|
|
|
|
default y
|
|
|
|
|
2021-03-23 06:13:06 +11:00
|
|
|
choice CBPRINTF_IMPLEMENTATION
|
|
|
|
default CBPRINTF_NANO
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
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-09-01 00:18:19 +10:00
|
|
|
|
2020-05-02 13:10:11 +10:00
|
|
|
source "Kconfig.zephyr"
|
2020-05-29 06:56:39 +10:00
|
|
|
|