Skip to content

Commit bd796f9

Browse files
hydevcodeRbb666
authored andcommitted
[bsp][qemu-vexpress-a9] Adapter driver for serial port v2 ([#10176](https://github.com/hydevcode/rt-thread/issues/10176))
1 parent e7d870b commit bd796f9

File tree

3 files changed

+230
-93
lines changed

3 files changed

+230
-93
lines changed

bsp/qemu-vexpress-a9/.ci/attachconfig/ci.attachconfig.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# ------ PERIPHERAL CI ------
2+
peripheral.UARTv2:
3+
kconfig:
4+
- CONFIG_RT_USING_SERIAL_V2=y
5+
- CONFIG_BSP_USING_UART1=y
6+
- CONFIG_BSP_USING_UART2=y
7+
- CONFIG_BSP_USING_UART3=y
28
peripheral.EMAC:
39
kconfig:
410
- CONFIG_BSP_DRV_EMAC=y

bsp/qemu-vexpress-a9/drivers/Kconfig

Lines changed: 117 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -11,74 +11,126 @@ config SOC_VEXPRESS_A9
1111
default y
1212

1313
menu "Onboard Peripheral Drivers"
14-
menuconfig BSP_USING_UART
15-
bool "Enable UART"
16-
default y
17-
select RT_USING_SERIAL
18-
if BSP_USING_UART
19-
config BSP_USING_UART0
20-
bool "Enable UART0"
21-
select RT_USING_UART0
14+
menuconfig BSP_USING_UART
15+
bool "Enable UART"
16+
default y
17+
select RT_USING_SERIAL
18+
if BSP_USING_UART
19+
menuconfig BSP_USING_UART0
20+
bool "Enable UART0 (Debugger)"
21+
default y
22+
if BSP_USING_UART0
23+
config BSP_UART0_RX_BUFSIZE
24+
int "Set UART0 RX buffer size"
25+
range 64 65535
26+
depends on RT_USING_SERIAL_V2
27+
default 10240
28+
29+
config BSP_UART0_TX_BUFSIZE
30+
int "Set UART0 TX buffer size"
31+
range 0 65535
32+
depends on RT_USING_SERIAL_V2
33+
default 0
34+
endif
35+
36+
menuconfig BSP_USING_UART1
37+
bool "Enable UART1"
38+
default n
39+
if BSP_USING_UART1
40+
config BSP_UART1_RX_BUFSIZE
41+
int "Set UART1 RX buffer size"
42+
range 64 65535
43+
depends on RT_USING_SERIAL_V2
44+
default 10240
45+
46+
config BSP_UART1_TX_BUFSIZE
47+
int "Set UART1 TX buffer size"
48+
range 0 65535
49+
depends on RT_USING_SERIAL_V2
50+
default 0
51+
endif
52+
53+
menuconfig BSP_USING_UART2
54+
bool "Enable UART2"
55+
default n
56+
if BSP_USING_UART2
57+
config BSP_UART2_RX_BUFSIZE
58+
int "Set UART2 RX buffer size"
59+
range 64 65535
60+
depends on RT_USING_SERIAL_V2
61+
default 10240
62+
63+
config BSP_UART2_TX_BUFSIZE
64+
int "Set UART2 TX buffer size"
65+
range 0 65535
66+
depends on RT_USING_SERIAL_V2
67+
default 0
68+
endif
69+
70+
menuconfig BSP_USING_UART3
71+
bool "Enable UART3"
72+
default n
73+
if BSP_USING_UART3
74+
config BSP_UART3_RX_BUFSIZE
75+
int "Set UART3 RX buffer size"
76+
range 64 65535
77+
depends on RT_USING_SERIAL_V2
78+
default 10240
79+
80+
config BSP_UART3_TX_BUFSIZE
81+
int "Set UART3 TX buffer size"
82+
range 0 65535
83+
depends on RT_USING_SERIAL_V2
84+
default 0
85+
endif
86+
87+
endif
88+
89+
config BSP_USING_LVGL
90+
bool "Enable LVGL for LCD"
91+
select PKG_USING_LVGL
92+
select BSP_DRV_CLCD
93+
select BSP_DRV_MOUSE
94+
default n
95+
96+
if BSP_USING_LVGL
97+
config BSP_USING_LVGL_DEMO
98+
bool "Enable LVGL demo"
99+
select PKG_USING_LV_MUSIC_DEMO
22100
default y
23-
config BSP_USING_UART1
24-
bool "Enable UART1"
25-
select RT_USING_UART1
26-
default n
27-
config BSP_USING_UART2
28-
bool "Enable UART2"
29-
select RT_USING_UART2
30-
default n
31-
config BSP_USING_UART3
32-
bool "Enable UART3"
33-
select RT_USING_UART3
34-
default n
35101
endif
36102

37-
config BSP_USING_LVGL
38-
bool "Enable LVGL for LCD"
39-
select PKG_USING_LVGL
40-
select BSP_DRV_CLCD
41-
select BSP_DRV_MOUSE
42-
default n
43-
44-
if BSP_USING_LVGL
45-
config BSP_USING_LVGL_DEMO
46-
bool "Enable LVGL demo"
47-
select PKG_USING_LV_MUSIC_DEMO
48-
default y
49-
endif
50-
51-
config BSP_DRV_CLCD
52-
bool "CLCD driver"
53-
select RT_USING_LCD
54-
default n
55-
56-
config BSP_DRV_MOUSE
57-
bool "MOUSE driver"
58-
default n
59-
60-
if BSP_DRV_CLCD
61-
config BSP_LCD_WIDTH
62-
int "Width of LCD panel"
63-
default 640
64-
65-
config BSP_LCD_HEIGHT
66-
int "Height of LCD panel"
67-
default 480
68-
endif
69-
70-
config BSP_DRV_EMAC
71-
bool "Enable EMAC driver"
72-
select RT_USING_LWIP
73-
select RT_USING_POSIX_FS
74-
select RT_USING_POSIX_SOCKET
75-
default n
76-
77-
config BSP_DRV_AUDIO
78-
bool "Audio driver"
79-
select RT_USING_AUDIO
80-
default n
103+
config BSP_DRV_CLCD
104+
bool "CLCD driver"
105+
select RT_USING_LCD
106+
default n
81107

82-
endmenu
108+
config BSP_DRV_MOUSE
109+
bool "MOUSE driver"
110+
default n
111+
112+
if BSP_DRV_CLCD
113+
config BSP_LCD_WIDTH
114+
int "Width of LCD panel"
115+
default 640
116+
117+
config BSP_LCD_HEIGHT
118+
int "Height of LCD panel"
119+
default 480
120+
endif
121+
122+
config BSP_DRV_EMAC
123+
bool "Enable EMAC driver"
124+
select RT_USING_LWIP
125+
select RT_USING_POSIX_FS
126+
select RT_USING_POSIX_SOCKET
127+
default n
128+
129+
config BSP_DRV_AUDIO
130+
bool "Audio driver"
131+
select RT_USING_AUDIO
132+
default n
133+
134+
endmenu
83135

84136
endmenu

0 commit comments

Comments
 (0)