[bsp/stm32] Optimize the kconfig structure of ART-PI board about serial port (#8101)
This commit is contained in:
parent
31a2311f64
commit
37ef1ba88c
|
@ -147,10 +147,10 @@ menu "On-chip Peripheral Drivers"
|
||||||
select RT_USING_SERIAL
|
select RT_USING_SERIAL
|
||||||
select RT_SERIAL_USING_DMA
|
select RT_SERIAL_USING_DMA
|
||||||
if BSP_USING_UART
|
if BSP_USING_UART
|
||||||
config BSP_USING_UART1
|
menuconfig BSP_USING_UART1
|
||||||
bool "Enable UART1"
|
bool "Enable UART1"
|
||||||
default n
|
default n
|
||||||
|
if BSP_USING_UART1
|
||||||
config BSP_UART1_RX_USING_DMA
|
config BSP_UART1_RX_USING_DMA
|
||||||
bool "Enable UART1 RX DMA"
|
bool "Enable UART1 RX DMA"
|
||||||
depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
|
depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
|
||||||
|
@ -161,17 +161,71 @@ menu "On-chip Peripheral Drivers"
|
||||||
depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
|
depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config BSP_USING_UART3
|
config BSP_UART1_RX_BUFSIZE
|
||||||
|
int "Set UART1 RX buffer size"
|
||||||
|
range 64 65535
|
||||||
|
depends on BSP_USING_UART1
|
||||||
|
default 256
|
||||||
|
|
||||||
|
config BSP_UART1_TX_BUFSIZE
|
||||||
|
int "Set UART1 TX buffer size"
|
||||||
|
range 0 65535
|
||||||
|
depends on BSP_USING_UART1
|
||||||
|
default 0
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
menuconfig BSP_USING_UART3
|
||||||
bool "Enable UART3"
|
bool "Enable UART3"
|
||||||
default n
|
default n
|
||||||
|
if BSP_USING_UART3
|
||||||
|
config BSP_UART3_RX_BUFSIZE
|
||||||
|
int "Set UART3 RX buffer size"
|
||||||
|
range 64 65535
|
||||||
|
depends on BSP_USING_UART3
|
||||||
|
default 256
|
||||||
|
|
||||||
config BSP_USING_UART4
|
config BSP_UART3_TX_BUFSIZE
|
||||||
|
int "Set UART3 TX buffer size"
|
||||||
|
range 0 65535
|
||||||
|
depends on BSP_USING_UART3
|
||||||
|
default 0
|
||||||
|
endif
|
||||||
|
|
||||||
|
menuconfig BSP_USING_UART4
|
||||||
bool "Enable UART4"
|
bool "Enable UART4"
|
||||||
default n
|
default n
|
||||||
|
if BSP_USING_UART4
|
||||||
|
config BSP_UART4_RX_BUFSIZE
|
||||||
|
int "Set UART4 RX buffer size"
|
||||||
|
range 64 65535
|
||||||
|
depends on BSP_USING_UART4
|
||||||
|
default 256
|
||||||
|
|
||||||
config BSP_USING_UART6
|
config BSP_UART4_TX_BUFSIZE
|
||||||
|
int "Set UART4 TX buffer size"
|
||||||
|
range 0 65535
|
||||||
|
depends on BSP_USING_UART4
|
||||||
|
default 0
|
||||||
|
endif
|
||||||
|
|
||||||
|
menuconfig BSP_USING_UART6
|
||||||
bool "Enable UART6"
|
bool "Enable UART6"
|
||||||
default n
|
default n
|
||||||
|
if BSP_USING_UART6
|
||||||
|
config BSP_UART6_RX_BUFSIZE
|
||||||
|
int "Set UART6 RX buffer size"
|
||||||
|
range 64 65535
|
||||||
|
depends on BSP_USING_UART6
|
||||||
|
default 256
|
||||||
|
|
||||||
|
config BSP_UART6_TX_BUFSIZE
|
||||||
|
int "Set UART6 TX buffer size"
|
||||||
|
range 0 65535
|
||||||
|
depends on BSP_USING_UART6
|
||||||
|
default 0
|
||||||
|
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
menuconfig BSP_USING_SPI
|
menuconfig BSP_USING_SPI
|
||||||
|
|
|
@ -66,11 +66,6 @@ extern "C" {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define BSP_UART3_RX_BUFSIZE 256
|
|
||||||
#define BSP_UART3_TX_BUFSIZE 256
|
|
||||||
#define BSP_UART4_RX_BUFSIZE 256
|
|
||||||
#define BSP_UART4_TX_BUFSIZE 256
|
|
||||||
|
|
||||||
#define STM32_FLASH_START_ADRESS ROM_START
|
#define STM32_FLASH_START_ADRESS ROM_START
|
||||||
#define STM32_FLASH_SIZE ROM_SIZE
|
#define STM32_FLASH_SIZE ROM_SIZE
|
||||||
#define STM32_FLASH_END_ADDRESS ROM_END
|
#define STM32_FLASH_END_ADDRESS ROM_END
|
||||||
|
|
Loading…
Reference in New Issue