mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-23 12:15:32 +08:00
[serial] 增加serial_v2版本的框架和基于stm32的串口驱动
This commit is contained in:
+19
-11
@@ -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
|
||||
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
|
||||
|
||||
config RT_SERIAL_RB_BUFSZ
|
||||
int "Set RX buffer size"
|
||||
default 64
|
||||
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user