Skip to content

Commit 7e4e093

Browse files
committed
Merge pull request #472 from pangweishen/master
Open the #define RT_USING_LWIP in rtconfig and build it , the stm32_eth.h can not find.
2 parents 59da84d + d01bab0 commit 7e4e093

File tree

4 files changed

+5930
-2
lines changed

4 files changed

+5930
-2
lines changed

bsp/stm32f40x/applications/application.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <lwip/sys.h>
2121
#include <lwip/api.h>
2222
#include <netif/ethernetif.h>
23-
#include "stm32_eth.h"
23+
#include "stm32f4xx_eth.h"
2424
#endif
2525

2626
#ifdef RT_USING_GDB

bsp/stm32f40x/drivers/SConscript

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,25 @@ Import('rtconfig')
33
from building import *
44

55
cwd = os.path.join(str(Dir('#')), 'drivers')
6-
src = Glob('*.c')
6+
7+
# add the general drivers.
8+
src = Split("""
9+
board.c
10+
stm32f4xx_it.c
11+
usart.c
12+
""")
13+
14+
# add Ethernet drivers.
15+
if GetDepend('RT_USING_LWIP'):
16+
src += ['stm32f4xx_eth.c']
17+
18+
# add gpio drivers.
19+
if GetDepend('RT_USING_PIN'):
20+
src += ['gpio.c']
21+
722
CPPPATH = [cwd]
823

924
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
1025

1126
Return('group')
27+

0 commit comments

Comments
 (0)