Skip to content

Commit 6b1911e

Browse files
committed
[BSP] Enable more options in qemu-vexpress-a9 for test.
1 parent 6ccebe1 commit 6b1911e

File tree

2 files changed

+182
-30
lines changed

2 files changed

+182
-30
lines changed

bsp/qemu-vexpress-a9/.config

+93-15
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ CONFIG_RT_THREAD_PRIORITY_MAX=32
1212
CONFIG_RT_TICK_PER_SECOND=100
1313
CONFIG_RT_DEBUG=y
1414
CONFIG_RT_USING_OVERFLOW_CHECK=y
15-
CONFIG_RT_DEBUG_INIT=1
16-
# CONFIG_RT_DEBUG_THREAD is not set
15+
CONFIG_RT_DEBUG_INIT=0
16+
CONFIG_RT_DEBUG_THREAD=0
1717
CONFIG_RT_USING_HOOK=y
1818
CONFIG_IDLE_THREAD_STACK_SIZE=256
1919
# CONFIG_RT_USING_TIMER_SOFT is not set
@@ -26,7 +26,7 @@ CONFIG_RT_USING_MUTEX=y
2626
CONFIG_RT_USING_EVENT=y
2727
CONFIG_RT_USING_MAILBOX=y
2828
CONFIG_RT_USING_MESSAGEQUEUE=y
29-
# CONFIG_RT_USING_SIGNALS is not set
29+
CONFIG_RT_USING_SIGNALS=y
3030

3131
#
3232
# Memory Management
@@ -41,6 +41,7 @@ CONFIG_RT_USING_SMALL_MEM=y
4141
# Kernel Device Object
4242
#
4343
CONFIG_RT_USING_DEVICE=y
44+
CONFIG_RT_USING_INTERRUPT_INFO=y
4445
CONFIG_RT_USING_CONSOLE=y
4546
CONFIG_RT_CONSOLEBUF_SIZE=128
4647
CONFIG_RT_CONSOLE_DEVICE_NAME="uart0"
@@ -80,6 +81,10 @@ CONFIG_DFS_USING_WORKDIR=y
8081
CONFIG_DFS_FILESYSTEMS_MAX=2
8182
CONFIG_DFS_FD_MAX=4
8283
CONFIG_RT_USING_DFS_ELMFAT=y
84+
85+
#
86+
# elm-chan's FatFs, Generic FAT Filesystem Module
87+
#
8388
CONFIG_RT_DFS_ELM_CODE_PAGE=437
8489
CONFIG_RT_DFS_ELM_WORD_ACCESS=y
8590
CONFIG_RT_DFS_ELM_USE_LFN_0=y
@@ -93,7 +98,13 @@ CONFIG_RT_DFS_ELM_MAX_SECTOR_SIZE=512
9398
# CONFIG_RT_DFS_ELM_USE_ERASE is not set
9499
CONFIG_RT_DFS_ELM_REENTRANT=y
95100
CONFIG_RT_USING_DFS_DEVFS=y
96-
# CONFIG_RT_USING_DFS_NET is not set
101+
CONFIG_RT_USING_DFS_NET=y
102+
CONFIG_HAVE_SYS_SELECT_H=y
103+
# CONFIG_HAVE_SYS_SOCKET_H is not set
104+
CONFIG_RT_USING_DFS_ROMFS=y
105+
CONFIG_RT_USING_DFS_RAMFS=y
106+
# CONFIG_RT_USING_DFS_UFFS is not set
107+
# CONFIG_RT_USING_DFS_NFS is not set
97108

98109
#
99110
# Device Drivers
@@ -102,14 +113,24 @@ CONFIG_RT_USING_DEVICE_IPC=y
102113
CONFIG_RT_USING_SERIAL=y
103114
# CONFIG_RT_USING_CAN is not set
104115
# CONFIG_RT_USING_HWTIMER is not set
105-
# CONFIG_RT_USING_I2C is not set
116+
CONFIG_RT_USING_I2C=y
117+
CONFIG_RT_USING_I2C_BITOPS=y
106118
CONFIG_RT_USING_PIN=y
107-
# CONFIG_RT_USING_MTD_NOR is not set
108-
# CONFIG_RT_USING_MTD_NAND is not set
109-
# CONFIG_RT_USING_RTC is not set
110-
# CONFIG_RT_USING_SDIO is not set
111-
# CONFIG_RT_USING_SPI is not set
112-
# CONFIG_RT_USING_WDT is not set
119+
CONFIG_RT_USING_MTD_NOR=y
120+
CONFIG_RT_USING_MTD_NAND=y
121+
CONFIG_RT_MTD_NAND_DEBUG=y
122+
CONFIG_RT_USING_RTC=y
123+
CONFIG_RT_USING_SDIO=y
124+
CONFIG_RT_USING_SPI=y
125+
CONFIG_RT_USING_SFUD=y
126+
CONFIG_RT_SFUD_USING_SFDP=y
127+
CONFIG_RT_SFUD_USING_FLASH_INFO_TABLE=y
128+
# CONFIG_RT_SFUD_DEBUG is not set
129+
# CONFIG_RT_USING_W25QXX is not set
130+
# CONFIG_RT_USING_GD is not set
131+
# CONFIG_RT_USING_ENC28J60 is not set
132+
# CONFIG_RT_USING_SPI_WIFI is not set
133+
CONFIG_RT_USING_WDT=y
113134
# CONFIG_RT_USING_USB_HOST is not set
114135
# CONFIG_RT_USING_USB_DEVICE is not set
115136

@@ -129,28 +150,79 @@ CONFIG_RT_USING_POSIX_TERMIOS=y
129150
#
130151
# light weight TCP/IP stack
131152
#
132-
# CONFIG_RT_USING_LWIP is not set
153+
CONFIG_RT_USING_LWIP=y
154+
# CONFIG_RT_USING_LWIP141 is not set
155+
CONFIG_RT_USING_LWIP202=y
156+
# CONFIG_RT_LWIP_IGMP is not set
157+
CONFIG_RT_LWIP_ICMP=y
158+
# CONFIG_RT_LWIP_SNMP is not set
159+
CONFIG_RT_LWIP_DNS=y
160+
CONFIG_RT_LWIP_DHCP=y
161+
CONFIG_IP_SOF_BROADCAST=1
162+
CONFIG_IP_SOF_BROADCAST_RECV=1
163+
# CONFIG_LWIP_USING_DHCPD is not set
164+
165+
#
166+
# Static IPv4 Address
167+
#
168+
CONFIG_RT_LWIP_IPADDR="192.168.1.30"
169+
CONFIG_RT_LWIP_GWADDR="192.168.1.1"
170+
CONFIG_RT_LWIP_MSKADDR="255.255.255.0"
171+
CONFIG_RT_LWIP_UDP=y
172+
CONFIG_RT_LWIP_TCP=y
173+
# CONFIG_RT_LWIP_RAW is not set
174+
# CONFIG_RT_LWIP_PPP is not set
175+
# CONFIG_RT_LWIP_PPPOE is not set
176+
# CONFIG_RT_LWIP_PPPOS is not set
177+
CONFIG_RT_LWIP_PBUF_NUM=16
178+
CONFIG_RT_LWIP_RAW_PCB_NUM=4
179+
CONFIG_RT_LWIP_UDP_PCB_NUM=4
180+
CONFIG_RT_LWIP_TCP_PCB_NUM=4
181+
CONFIG_RT_LWIP_TCP_SEG_NUM=40
182+
CONFIG_RT_LWIP_TCP_SND_BUF=8196
183+
CONFIG_RT_LWIP_TCP_WND=8196
184+
CONFIG_RT_LWIP_TCPTHREAD_PRIORITY=10
185+
CONFIG_RT_LWIP_TCPTHREAD_MBOX_SIZE=8
186+
CONFIG_RT_LWIP_TCPTHREAD_STACKSIZE=1024
187+
CONFIG_RT_LWIP_ETHTHREAD_PRIORITY=12
188+
CONFIG_RT_LWIP_ETHTHREAD_STACKSIZE=1024
189+
CONFIG_RT_LWIP_ETHTHREAD_MBOX_SIZE=8
190+
# CONFIG_RT_LWIP_REASSEMBLY_FRAG is not set
191+
CONFIG_LWIP_NETIF_STATUS_CALLBACK=1
192+
CONFIG_SO_REUSE=1
193+
CONFIG_LWIP_SO_RCVTIMEO=1
194+
CONFIG_LWIP_SO_SNDTIMEO=1
195+
CONFIG_LWIP_SO_RCVBUF=1
133196

134197
#
135198
# Modbus master and slave stack
136199
#
137200
# CONFIG_RT_USING_MODBUS is not set
201+
# CONFIG_RT_USING_NETUTILS is not set
138202

139203
#
140204
# RT-Thread UI Engine
141205
#
142206
CONFIG_RT_USING_GUIENGINE=y
143207
CONFIG_RTGUI_NAME_MAX=16
144-
# CONFIG_RTGUI_USING_TTF is not set
208+
CONFIG_RTGUI_USING_TTF=y
145209
CONFIG_RTGUI_USING_FONT16=y
146210
CONFIG_RTGUI_USING_FONT12=y
147211
# CONFIG_RTGUI_USING_FONTHZ is not set
148212
# CONFIG_RTGUI_IMAGE_XPM is not set
213+
# CONFIG_RTGUI_IMAGE_JPEG_NONE is not set
149214
# CONFIG_RTGUI_IMAGE_JPEG is not set
150-
# CONFIG_RTGUI_IMAGE_TJPGD is not set
215+
CONFIG_RTGUI_IMAGE_TJPGD=y
216+
# CONFIG_RTGUI_IMAGE_PNG_NONE is not set
151217
# CONFIG_RTGUI_IMAGE_PNG is not set
152-
# CONFIG_RTGUI_IMAGE_LODEPNG is not set
218+
CONFIG_RTGUI_IMAGE_LODEPNG=y
153219
# CONFIG_RTGUI_IMAGE_BMP is not set
220+
CONFIG_RTGUI_IMAGE_CONTAINER=y
221+
222+
#
223+
# VBUS(Virtual Software BUS)
224+
#
225+
# CONFIG_RT_USING_VBUS is not set
154226

155227
#
156228
# RT-Thread online packages
@@ -172,6 +244,11 @@ CONFIG_RTGUI_USING_FONT12=y
172244
# CONFIG_PKG_USING_CJSON is not set
173245
# CONFIG_PKG_USING_EZXML is not set
174246

247+
#
248+
# Marvell WiFi
249+
#
250+
# CONFIG_PKG_USING_MARVELLWIFI is not set
251+
175252
#
176253
# security packages
177254
#
@@ -201,3 +278,4 @@ CONFIG_PKG_HELLO_VER="v1.0.0"
201278
CONFIG_RT_USING_UART0=y
202279
CONFIG_RT_USING_UART1=y
203280
CONFIG_BSP_DRV_CLCD=y
281+
CONFIG_BSP_DRV_EMAC=y

bsp/qemu-vexpress-a9/rtconfig.h

+89-15
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#define RT_TICK_PER_SECOND 100
1313
#define RT_DEBUG
1414
#define RT_USING_OVERFLOW_CHECK
15-
#define RT_DEBUG_INIT 1
16-
/* RT_DEBUG_THREAD is not set */
15+
#define RT_DEBUG_INIT 0
16+
#define RT_DEBUG_THREAD 0
1717
#define RT_USING_HOOK
1818
#define IDLE_THREAD_STACK_SIZE 256
1919
/* RT_USING_TIMER_SOFT is not set */
@@ -25,7 +25,7 @@
2525
#define RT_USING_EVENT
2626
#define RT_USING_MAILBOX
2727
#define RT_USING_MESSAGEQUEUE
28-
/* RT_USING_SIGNALS is not set */
28+
#define RT_USING_SIGNALS
2929

3030
/* Memory Management */
3131

@@ -38,6 +38,7 @@
3838
/* Kernel Device Object */
3939

4040
#define RT_USING_DEVICE
41+
#define RT_USING_INTERRUPT_INFO
4142
#define RT_USING_CONSOLE
4243
#define RT_CONSOLEBUF_SIZE 128
4344
#define RT_CONSOLE_DEVICE_NAME "uart0"
@@ -73,6 +74,9 @@
7374
#define DFS_FILESYSTEMS_MAX 2
7475
#define DFS_FD_MAX 4
7576
#define RT_USING_DFS_ELMFAT
77+
78+
/* elm-chan's FatFs, Generic FAT Filesystem Module */
79+
7680
#define RT_DFS_ELM_CODE_PAGE 437
7781
#define RT_DFS_ELM_WORD_ACCESS
7882
#define RT_DFS_ELM_USE_LFN_0
@@ -86,22 +90,38 @@
8690
/* RT_DFS_ELM_USE_ERASE is not set */
8791
#define RT_DFS_ELM_REENTRANT
8892
#define RT_USING_DFS_DEVFS
89-
/* RT_USING_DFS_NET is not set */
93+
#define RT_USING_DFS_NET
94+
#define HAVE_SYS_SELECT_H
95+
/* HAVE_SYS_SOCKET_H is not set */
96+
#define RT_USING_DFS_ROMFS
97+
#define RT_USING_DFS_RAMFS
98+
/* RT_USING_DFS_UFFS is not set */
99+
/* RT_USING_DFS_NFS is not set */
90100

91101
/* Device Drivers */
92102

93103
#define RT_USING_DEVICE_IPC
94104
#define RT_USING_SERIAL
95105
/* RT_USING_CAN is not set */
96106
/* RT_USING_HWTIMER is not set */
97-
/* RT_USING_I2C is not set */
107+
#define RT_USING_I2C
108+
#define RT_USING_I2C_BITOPS
98109
#define RT_USING_PIN
99-
/* RT_USING_MTD_NOR is not set */
100-
/* RT_USING_MTD_NAND is not set */
101-
/* RT_USING_RTC is not set */
102-
/* RT_USING_SDIO is not set */
103-
/* RT_USING_SPI is not set */
104-
/* RT_USING_WDT is not set */
110+
#define RT_USING_MTD_NOR
111+
#define RT_USING_MTD_NAND
112+
#define RT_MTD_NAND_DEBUG
113+
#define RT_USING_RTC
114+
#define RT_USING_SDIO
115+
#define RT_USING_SPI
116+
#define RT_USING_SFUD
117+
#define RT_SFUD_USING_SFDP
118+
#define RT_SFUD_USING_FLASH_INFO_TABLE
119+
/* RT_SFUD_DEBUG is not set */
120+
/* RT_USING_W25QXX is not set */
121+
/* RT_USING_GD is not set */
122+
/* RT_USING_ENC28J60 is not set */
123+
/* RT_USING_SPI_WIFI is not set */
124+
#define RT_USING_WDT
105125
/* RT_USING_USB_HOST is not set */
106126
/* RT_USING_USB_DEVICE is not set */
107127

@@ -117,26 +137,75 @@
117137

118138
/* light weight TCP/IP stack */
119139

120-
/* RT_USING_LWIP is not set */
140+
#define RT_USING_LWIP
141+
/* RT_USING_LWIP141 is not set */
142+
#define RT_USING_LWIP202
143+
/* RT_LWIP_IGMP is not set */
144+
#define RT_LWIP_ICMP
145+
/* RT_LWIP_SNMP is not set */
146+
#define RT_LWIP_DNS
147+
#define RT_LWIP_DHCP
148+
#define IP_SOF_BROADCAST 1
149+
#define IP_SOF_BROADCAST_RECV 1
150+
/* LWIP_USING_DHCPD is not set */
151+
152+
/* Static IPv4 Address */
153+
154+
#define RT_LWIP_IPADDR "192.168.1.30"
155+
#define RT_LWIP_GWADDR "192.168.1.1"
156+
#define RT_LWIP_MSKADDR "255.255.255.0"
157+
#define RT_LWIP_UDP
158+
#define RT_LWIP_TCP
159+
/* RT_LWIP_RAW is not set */
160+
/* RT_LWIP_PPP is not set */
161+
/* RT_LWIP_PPPOE is not set */
162+
/* RT_LWIP_PPPOS is not set */
163+
#define RT_LWIP_PBUF_NUM 16
164+
#define RT_LWIP_RAW_PCB_NUM 4
165+
#define RT_LWIP_UDP_PCB_NUM 4
166+
#define RT_LWIP_TCP_PCB_NUM 4
167+
#define RT_LWIP_TCP_SEG_NUM 40
168+
#define RT_LWIP_TCP_SND_BUF 8196
169+
#define RT_LWIP_TCP_WND 8196
170+
#define RT_LWIP_TCPTHREAD_PRIORITY 10
171+
#define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
172+
#define RT_LWIP_TCPTHREAD_STACKSIZE 1024
173+
#define RT_LWIP_ETHTHREAD_PRIORITY 12
174+
#define RT_LWIP_ETHTHREAD_STACKSIZE 1024
175+
#define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
176+
/* RT_LWIP_REASSEMBLY_FRAG is not set */
177+
#define LWIP_NETIF_STATUS_CALLBACK 1
178+
#define SO_REUSE 1
179+
#define LWIP_SO_RCVTIMEO 1
180+
#define LWIP_SO_SNDTIMEO 1
181+
#define LWIP_SO_RCVBUF 1
121182

122183
/* Modbus master and slave stack */
123184

124185
/* RT_USING_MODBUS is not set */
186+
/* RT_USING_NETUTILS is not set */
125187

126188
/* RT-Thread UI Engine */
127189

128190
#define RT_USING_GUIENGINE
129191
#define RTGUI_NAME_MAX 16
130-
/* RTGUI_USING_TTF is not set */
192+
#define RTGUI_USING_TTF
131193
#define RTGUI_USING_FONT16
132194
#define RTGUI_USING_FONT12
133195
/* RTGUI_USING_FONTHZ is not set */
134196
/* RTGUI_IMAGE_XPM is not set */
197+
/* RTGUI_IMAGE_JPEG_NONE is not set */
135198
/* RTGUI_IMAGE_JPEG is not set */
136-
/* RTGUI_IMAGE_TJPGD is not set */
199+
#define RTGUI_IMAGE_TJPGD
200+
/* RTGUI_IMAGE_PNG_NONE is not set */
137201
/* RTGUI_IMAGE_PNG is not set */
138-
/* RTGUI_IMAGE_LODEPNG is not set */
202+
#define RTGUI_IMAGE_LODEPNG
139203
/* RTGUI_IMAGE_BMP is not set */
204+
#define RTGUI_IMAGE_CONTAINER
205+
206+
/* VBUS(Virtual Software BUS) */
207+
208+
/* RT_USING_VBUS is not set */
140209

141210
/* RT-Thread online packages */
142211

@@ -154,6 +223,10 @@
154223
/* PKG_USING_CJSON is not set */
155224
/* PKG_USING_EZXML is not set */
156225

226+
/* Marvell WiFi */
227+
228+
/* PKG_USING_MARVELLWIFI is not set */
229+
157230
/* security packages */
158231

159232
/* PKG_USING_MBEDTLS is not set */
@@ -175,5 +248,6 @@
175248
#define RT_USING_UART0
176249
#define RT_USING_UART1
177250
#define BSP_DRV_CLCD
251+
#define BSP_DRV_EMAC
178252

179253
#endif

0 commit comments

Comments
 (0)