refactor: Move the DT based CDC ACM setup.

This commit is contained in:
Peter Johanson 2021-11-05 04:23:50 +00:00
parent 5157557bdd
commit cc479a13cc
2 changed files with 6 additions and 10 deletions

View file

@ -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

View file

@ -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";