refactor: Move the DT based CDC ACM setup.
This commit is contained in:
parent
5157557bdd
commit
cc479a13cc
2 changed files with 6 additions and 10 deletions
|
@ -436,15 +436,6 @@ config ZMK_LOG_LEVEL
|
||||||
config USB_CDC_ACM_RINGBUF_SIZE
|
config USB_CDC_ACM_RINGBUF_SIZE
|
||||||
default 1024
|
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
|
config LOG_BUFFER_SIZE
|
||||||
default 8192
|
default 8192
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
zephyr,code-partition = &code_partition;
|
zephyr,code-partition = &code_partition;
|
||||||
zephyr,sram = &sram0;
|
zephyr,sram = &sram0;
|
||||||
zephyr,flash = &flash0;
|
zephyr,flash = &flash0;
|
||||||
|
zephyr,console = &nice_nano_cdc_acm_uart;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
|
@ -56,13 +57,17 @@
|
||||||
|
|
||||||
&usbd {
|
&usbd {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
nice_nano_cdc_acm_uart: nice_nano_cdc_acm_uart {
|
||||||
|
compatible = "zephyr,cdc-acm-uart";
|
||||||
|
label = "CDC_ACM_0";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
&flash0 {
|
&flash0 {
|
||||||
/*
|
/*
|
||||||
* For more information, see:
|
* 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 {
|
partitions {
|
||||||
compatible = "fixed-partitions";
|
compatible = "fixed-partitions";
|
||||||
|
|
Loading…
Add table
Reference in a new issue