Browse Source

refactor kconfig to look nicer

xmkb
Kellen Carey 4 years ago
parent
commit
7a2314ef59
  1. 119
      app/Kconfig

119
app/Kconfig

@ -1,5 +1,8 @@ @@ -1,5 +1,8 @@
mainmenu "ZMK Firmware"
menu "ZMK"
menu "Basic Keyboard Setup"
config ZMK_KEYBOARD_NAME
string "Keyboard Name"
@ -9,10 +12,6 @@ config USB_DEVICE_PRODUCT @@ -9,10 +12,6 @@ config USB_DEVICE_PRODUCT
config BT_DEVICE_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"
menuconfig ZMK_USB
@ -27,13 +26,16 @@ config ZMK_USB_INIT_PRIORITY @@ -27,13 +26,16 @@ config ZMK_USB_INIT_PRIORITY
int "Init Priority"
default 50
#USB
endif
#Where does this get set?
if ZMK_USB
config USB_NUMOF_EP_WRITE_RETRIES
default 10
#ZMK_USB
endif
menuconfig ZMK_BLE
@ -72,42 +74,12 @@ config ZMK_BLE_PASSKEY_ENTRY @@ -72,42 +74,12 @@ config ZMK_BLE_PASSKEY_ENTRY
bool "Experimental: Requiring typing passkey from host to pair BLE connection"
default n
#ZMK_BLE
endif
#ZMK_BLE
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"
config ZMK_SPLIT
@ -184,23 +156,19 @@ endif @@ -184,23 +156,19 @@ endif
endmenu
config ZMK_KSCAN_MOCK_DRIVER
bool "Enable mock kscan driver to simulate key presses"
default n
#ZMK basic keyboard setup
endmenu
menu "Display/LED Options"
config ZMK_KSCAN_COMPOSITE_DRIVER
bool "Enable composite kscan driver to combine kscan devices"
config ZMK_DISPLAY
bool "ZMK display support"
default n
menu "ZMK Actions"
config ZMK_ACTION_MOD_TAP
bool "Enable the Mod-Tap Action"
endmenu
menu "ZMK Lighting"
select DISPLAY
select LVGL
select LVGL_THEMES
select LVGL_THEME_MONO
select LVGL_OBJ_LABEL
menuconfig ZMK_RGB_UNDERGLOW
bool "RGB Adressable LED Underglow"
@ -222,6 +190,57 @@ config ZMK_RGB_UNDERGLOW_BRT_STEP @@ -222,6 +190,57 @@ config ZMK_RGB_UNDERGLOW_BRT_STEP
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
config HEAP_MEM_POOL_SIZE

Loading…
Cancel
Save