summaryrefslogtreecommitdiff
path: root/components/drivers/Kconfig
diff options
context:
space:
mode:
authorchenjh <[email protected]>2021-06-05 17:21:27 +0800
committerchenjh <[email protected]>2021-06-08 09:38:43 +0800
commitd94be14df5cede07a99d6aeebcd4f8446ae80d7e (patch)
treef27eefc60b7efe29f1cb901d824f9e64a2097abb /components/drivers/Kconfig
parent5c8625c8ef6deff6979d990f1638200029978dd2 (diff)
[serial] 增加serial_v2版本的框架和基于stm32的串口驱动
Diffstat (limited to 'components/drivers/Kconfig')
-rwxr-xr-xcomponents/drivers/Kconfig30
1 files changed, 19 insertions, 11 deletions
diff --git a/components/drivers/Kconfig b/components/drivers/Kconfig
index c7fec6cba9..d3fd14b52d 100755
--- a/components/drivers/Kconfig
+++ b/components/drivers/Kconfig
@@ -24,22 +24,30 @@ if RT_USING_DEVICE_IPC
endif
endif
-config RT_USING_SERIAL
- bool "Using serial device drivers"
+menuconfig RT_USING_SERIAL
+ bool "USING Serial device drivers"
select RT_USING_DEVICE_IPC
select RT_USING_DEVICE
default y
-if RT_USING_SERIAL
- config RT_SERIAL_USING_DMA
- bool "Enable serial DMA mode"
- default y
-
- config RT_SERIAL_RB_BUFSZ
- int "Set RX buffer size"
- default 64
+ if RT_USING_SERIAL
+ choice
+ prompt "Choice Serial version"
+ default RT_USING_SERIAL_V1
+ config RT_USING_SERIAL_V1
+ bool "RT_USING_SERIAL_V1"
+ config RT_USING_SERIAL_V2
+ bool "RT_USING_SERIAL_V2"
+ endchoice
+ config RT_SERIAL_USING_DMA
+ bool "Enable serial DMA mode"
+ default y
-endif
+ config RT_SERIAL_RB_BUFSZ
+ int "Set RX buffer size"
+ depends on !RT_USING_SERIAL_V2
+ default 64
+ endif
config RT_USING_CAN
bool "Using CAN device drivers"