refactor kconfig to look nicer

This commit is contained in:
Kellen Carey 2020-10-11 17:36:32 -07:00
parent ba73e5d4ac
commit 7a2314ef59

View file

@ -1,5 +1,8 @@
mainmenu "ZMK Firmware" mainmenu "ZMK Firmware"
menu "ZMK"
menu "Basic Keyboard Setup"
config ZMK_KEYBOARD_NAME config ZMK_KEYBOARD_NAME
string "Keyboard Name" string "Keyboard Name"
@ -9,10 +12,6 @@ config USB_DEVICE_PRODUCT
config BT_DEVICE_NAME config BT_DEVICE_NAME
default ZMK_KEYBOARD_NAME default ZMK_KEYBOARD_NAME
config ZMK_KSCAN_EVENT_QUEUE_SIZE
int "Size of the event queue for KSCAN events to buffer events"
default 4
menu "HID Output Types" menu "HID Output Types"
menuconfig ZMK_USB menuconfig ZMK_USB
@ -27,13 +26,16 @@ config ZMK_USB_INIT_PRIORITY
int "Init Priority" int "Init Priority"
default 50 default 50
#USB
endif endif
#Where does this get set?
if ZMK_USB if ZMK_USB
config USB_NUMOF_EP_WRITE_RETRIES config USB_NUMOF_EP_WRITE_RETRIES
default 10 default 10
#ZMK_USB
endif endif
menuconfig ZMK_BLE menuconfig ZMK_BLE
@ -72,42 +74,12 @@ config ZMK_BLE_PASSKEY_ENTRY
bool "Experimental: Requiring typing passkey from host to pair BLE connection" bool "Experimental: Requiring typing passkey from host to pair BLE connection"
default n default n
#ZMK_BLE
endif endif
#ZMK_BLE
endmenu endmenu
menuconfig ZMK_SLEEP
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
endif
config ZMK_EXT_POWER
bool "Enable support to control external power output"
default y
config ZMK_DISPLAY
bool "ZMK display support"
default n
select DISPLAY
select LVGL
select LVGL_THEMES
select LVGL_THEME_MONO
select LVGL_OBJ_LABEL
menu "Split Support" menu "Split Support"
config ZMK_SPLIT config ZMK_SPLIT
@ -184,23 +156,19 @@ endif
endmenu endmenu
config ZMK_KSCAN_MOCK_DRIVER #ZMK basic keyboard setup
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
menu "ZMK Actions"
config ZMK_ACTION_MOD_TAP
bool "Enable the Mod-Tap Action"
endmenu endmenu
menu "ZMK Lighting" menu "Display/LED Options"
config ZMK_DISPLAY
bool "ZMK display support"
default n
select DISPLAY
select LVGL
select LVGL_THEMES
select LVGL_THEME_MONO
select LVGL_OBJ_LABEL
menuconfig ZMK_RGB_UNDERGLOW menuconfig ZMK_RGB_UNDERGLOW
bool "RGB Adressable LED Underglow" bool "RGB Adressable LED Underglow"
@ -222,6 +190,57 @@ config ZMK_RGB_UNDERGLOW_BRT_STEP
endif endif
#ZMK display/led options
endmenu
menu "Power Management"
menuconfig ZMK_SLEEP
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
#Power management
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
#kscan settings
endmenu
#ZMK ugly
endmenu endmenu
config HEAP_MEM_POOL_SIZE config HEAP_MEM_POOL_SIZE