@@ -11,59 +11,126 @@ config SOC_VEXPRESS_A9
1111 default y
1212
1313menu "Onboard Peripheral Drivers"
14- config RT_USING_UART0
15- bool "Enable UART0"
16- default y
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 1024
1728
18- config RT_USING_UART1
19- bool "Enable UART1"
20- default y
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
2135
22- config BSP_USING_LVGL
23- bool "Enable LVGL for LCD"
24- select PKG_USING_LVGL
25- select BSP_DRV_CLCD
26- select BSP_DRV_MOUSE
27- default n
28-
29- if BSP_USING_LVGL
30- config BSP_USING_LVGL_DEMO
31- bool "Enable LVGL demo"
32- select PKG_USING_LV_MUSIC_DEMO
33- default y
34- endif
35-
36- config BSP_DRV_CLCD
37- bool "CLCD driver"
38- select RT_USING_LCD
39- default n
40-
41- config BSP_DRV_MOUSE
42- bool "MOUSE driver"
43- default n
44-
45- if BSP_DRV_CLCD
46- config BSP_LCD_WIDTH
47- int "Width of LCD panel"
48- default 640
49-
50- config BSP_LCD_HEIGHT
51- int "Height of LCD panel"
52- default 480
53- endif
54-
55- config BSP_DRV_EMAC
56- bool "Enable EMAC driver"
57- select RT_USING_LWIP
58- select RT_USING_POSIX_FS
59- select RT_USING_POSIX_SOCKET
60- default n
61-
62- config BSP_DRV_AUDIO
63- bool "Audio driver"
64- select RT_USING_AUDIO
65- default n
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 1024
6645
67- endmenu
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 1024
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 1024
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
100+ default y
101+ endif
102+
103+ config BSP_DRV_CLCD
104+ bool "CLCD driver"
105+ select RT_USING_LCD
106+ default n
107+
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
68135
69136endmenu
0 commit comments