diff --git a/app/Kconfig b/app/Kconfig index a9f7be84..1db5d970 100644 --- a/app/Kconfig +++ b/app/Kconfig @@ -436,15 +436,6 @@ config ZMK_LOG_LEVEL 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 diff --git a/app/boards/arm/nice_nano/nice_nano.dtsi b/app/boards/arm/nice_nano/nice_nano.dtsi index 45f0e31d..bf2e1e22 100644 --- a/app/boards/arm/nice_nano/nice_nano.dtsi +++ b/app/boards/arm/nice_nano/nice_nano.dtsi @@ -15,6 +15,7 @@ zephyr,code-partition = &code_partition; zephyr,sram = &sram0; zephyr,flash = &flash0; + zephyr,console = &nice_nano_cdc_acm_uart; }; leds { @@ -56,13 +57,17 @@ &usbd { status = "okay"; + nice_nano_cdc_acm_uart: nice_nano_cdc_acm_uart { + compatible = "zephyr,cdc-acm-uart"; + label = "CDC_ACM_0"; + }; }; &flash0 { /* * For more information, see: - * http://docs.zephyrproject.org/latest/devices/dts/flash_partitions.html + * http: //docs.zephyrproject.org/latest/devices/dts/flash_partitions.html */ partitions { compatible = "fixed-partitions";