aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Kconfig
diff options
context:
space:
mode:
authorNick Winans <[email protected]>2021-01-07 00:08:34 -0600
committerPete Johanson <[email protected]>2021-01-08 13:03:39 -0500
commit97ed0cc733bc3fb411fe13ee776e37f932e67aa4 (patch)
tree6881e4a5887c4b64cbc09580f01fb32aff7608d3 /app/Kconfig
parent964b613e982a707e00c8cb5cb07d8dfcfab25419 (diff)
downloadzmk-97ed0cc733bc3fb411fe13ee776e37f932e67aa4.tar.gz
zmk-97ed0cc733bc3fb411fe13ee776e37f932e67aa4.zip
feat(core): Add USB logging Kconfig option
Diffstat (limited to 'app/Kconfig')
-rw-r--r--app/Kconfig44
1 files changed, 44 insertions, 0 deletions
diff --git a/app/Kconfig b/app/Kconfig
index 4341df118d..f486021045 100644
--- a/app/Kconfig
+++ b/app/Kconfig
@@ -293,6 +293,50 @@ config ZMK_KSCAN_COMPOSITE_DRIVER
#KSCAN Settings
endmenu
+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
+
+config USB_CDC_ACM_RINGBUF_SIZE
+ default 1024
+
+config USB_CDC_ACM_DEVICE_NAME
+ default "CDC_ACM"
+
+config USB_CDC_ACM_DEVICE_COUNT
+ default 1
+
+config UART_CONSOLE_ON_DEV_NAME
+ default "CDC_ACM_0"
+
+config LOG_BUFFER_SIZE
+ default 8192
+
+config LOG_STRDUP_BUF_COUNT
+ default 16
+
+#ZMK_USB_LOGGING
+endif
+
+#USB Logging
+endmenu
+
if SETTINGS
config ZMK_SETTINGS_SAVE_DEBOUNCE