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.
This commit is contained in:
Bernard Xiong 2015-05-09 10:05:09 +08:00
commit 7e4e093d7b
4 changed files with 5930 additions and 2 deletions

View File

@ -20,7 +20,7 @@
#include <lwip/sys.h>
#include <lwip/api.h>
#include <netif/ethernetif.h>
#include "stm32_eth.h"
#include "stm32f4xx_eth.h"
#endif
#ifdef RT_USING_GDB

View File

@ -3,9 +3,25 @@ Import('rtconfig')
from building import *
cwd = os.path.join(str(Dir('#')), 'drivers')
src = Glob('*.c')
# add the general drivers.
src = Split("""
board.c
stm32f4xx_it.c
usart.c
""")
# add Ethernet drivers.
if GetDepend('RT_USING_LWIP'):
src += ['stm32f4xx_eth.c']
# add gpio drivers.
if GetDepend('RT_USING_PIN'):
src += ['gpio.c']
CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff