refactor: Move the DT based CDC ACM setup.

This commit is contained in:
Peter Johanson
2021-11-05 04:23:50 +00:00
committed by Pete Johanson
parent 2c5d5fde51
commit c5ab8a9444
15 changed files with 72 additions and 11 deletions

View File

@@ -15,6 +15,7 @@
zephyr,code-partition = &code_partition;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,console = &cdc_acm_uart;
};
leds {
@@ -56,13 +57,17 @@
&usbd {
status = "okay";
cdc_acm_uart: 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";