From 3022db08e9d895a1df70eedbc8da8c424d351ffb Mon Sep 17 00:00:00 2001 From: Manna Harbour <51143715+manna-harbour@users.noreply.github.com> Date: Tue, 24 Nov 2020 14:38:39 +1100 Subject: [PATCH] Enable USB debugging --- config/corne.conf | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/config/corne.conf b/config/corne.conf index b79385b..75ef784 100644 --- a/config/corne.conf +++ b/config/corne.conf @@ -4,3 +4,27 @@ # Uncomment the following line to enable the Corne OLED Display # CONFIG_ZMK_DISPLAY=y + +# Turn on logging, and set ZMK logging to debug output +CONFIG_LOG=y +CONFIG_ZMK_LOG_LEVEL_DBG=y + +# Turn on USB CDC ACM device +CONFIG_USB=y +CONFIG_USB_DEVICE_STACK=y +CONFIG_USB_CDC_ACM=y +CONFIG_USB_CDC_ACM_RINGBUF_SIZE=1024 +CONFIG_USB_CDC_ACM_DEVICE_NAME="CDC_ACM" +CONFIG_USB_CDC_ACM_DEVICE_COUNT=1 + +# Enable serial console +CONFIG_SERIAL=y +CONFIG_CONSOLE=y +CONFIG_UART_INTERRUPT_DRIVEN=y +CONFIG_UART_LINE_CTRL=y + +# Enable USB UART, and set the console device +CONFIG_UART_CONSOLE=y +CONFIG_USB_UART_CONSOLE=y +CONFIG_UART_CONSOLE_ON_DEV_NAME="CDC_ACM_0" +CONFIG_USB_UART_DTR_WAIT=n