Skip to content

Commit 5f77138

Browse files
jfischer-nocarlescufi
authored andcommitted
boards: mini_stm32h7b0: use board common CDC ACM UART configuration
Remove USB and CDC ACM configuration in favor of common configuraiton. This is a follow up to commit 272290b ("boards: use board common CDC ACM UART configuration") Support for this board was merged just before the common solution was introduced. Signed-off-by: Johann Fischer <[email protected]>
1 parent 6d19fc2 commit 5f77138

File tree

3 files changed

+2
-27
lines changed

3 files changed

+2
-27
lines changed

boards/weact/mini_stm32h7b0/Kconfig.defconfig

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,6 @@ endif # LVGL
2222

2323
endif # DISPLAY
2424

25-
if USB_DEVICE_STACK
26-
27-
config UART_CONSOLE
28-
default CONSOLE
29-
30-
config USB_DEVICE_INITIALIZE_AT_BOOT
31-
default y
32-
33-
endif # USB_DEVICE_STACK
25+
source "boards/common/usb/Kconfig.cdc_acm_serial.defconfig"
3426

3527
endif # BOARD_MINI_STM32H7B0

boards/weact/mini_stm32h7b0/mini_stm32h7b0.dts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
compatible = "weact,mini-stm32h7b0";
1616

1717
chosen {
18-
zephyr,console = &usb_cdc_acm_uart;
19-
zephyr,shell-uart = &usb_cdc_acm_uart;
2018
zephyr,sram = &sram0;
2119
zephyr,flash = &flash0;
2220
zephyr,display = &st7735r_160x80;
@@ -132,12 +130,9 @@ zephyr_udc0: &usbotg_hs {
132130
pinctrl-0 = <&usb_otg_hs_dm_pa11 &usb_otg_hs_dp_pa12>;
133131
pinctrl-names = "default";
134132
status = "okay";
135-
136-
usb_cdc_acm_uart: cdc_acm_uart {
137-
compatible = "zephyr,cdc-acm-uart";
138-
};
139133
};
140134

135+
#include <../boards/common/usb/cdc_acm_serial.dtsi>
141136

142137
&octospi1 {
143138
pinctrl-names = "default";

boards/weact/mini_stm32h7b0/mini_stm32h7b0_defconfig

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,5 @@ CONFIG_ARM_MPU=y
77
# Enable HW stack protection
88
CONFIG_HW_STACK_PROTECTION=y
99

10-
# Enable UART driver
11-
CONFIG_SERIAL=y
12-
13-
# Enable console
14-
CONFIG_CONSOLE=y
15-
1610
# Enable GPIO
1711
CONFIG_GPIO=y
18-
19-
# Logger cannot use itself to log
20-
CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y
21-
22-
# Enable USB
23-
CONFIG_USB_DEVICE_STACK=y

0 commit comments

Comments
 (0)