From 3ddf6c96f5be8da81b22b023e25f235e7406c052 Mon Sep 17 00:00:00 2001 From: greedyhao Date: Fri, 28 Feb 2020 17:01:57 +0800 Subject: [PATCH] [bsp][stm32] stm32f411-mini-system edit kconfig --- bsp/stm32/stm32f411-mini-system/board/Kconfig | 23 +++++++++++++------ .../stm32f411-mini-system/project.uvoptx | 2 +- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/bsp/stm32/stm32f411-mini-system/board/Kconfig b/bsp/stm32/stm32f411-mini-system/board/Kconfig index 7642096bbc..9f43b41b8b 100644 --- a/bsp/stm32/stm32f411-mini-system/board/Kconfig +++ b/bsp/stm32/stm32f411-mini-system/board/Kconfig @@ -41,14 +41,16 @@ menu "On-chip Peripheral Drivers" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n - config BSP_USING_UART6 - bool "Enable UART6" - default n + if !BSP_USING_USBD + config BSP_USING_UART6 + bool "Enable UART6" + default n - config BSP_UART6_RX_USING_DMA - bool "Enable UART6 RX DMA" - depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA - default n + config BSP_UART6_RX_USING_DMA + bool "Enable UART6 RX DMA" + depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA + default n + endif endif menuconfig BSP_USING_I2C1 @@ -108,6 +110,13 @@ menu "On-chip Peripheral Drivers" bool "Enable on-chip FLASH" default n + config BSP_USING_USBD + bool "Enable USB Device" + select RT_USING_USB_DEVICE + default n + + source "../libraries/HAL_Drivers/Kconfig" + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f411-mini-system/project.uvoptx b/bsp/stm32/stm32f411-mini-system/project.uvoptx index 6a1ea8c919..5f8d0d72ba 100644 --- a/bsp/stm32/stm32f411-mini-system/project.uvoptx +++ b/bsp/stm32/stm32f411-mini-system/project.uvoptx @@ -73,7 +73,7 @@ 0 - 0 + 1 0 1