add EMAC driver.

This commit is contained in:
aozima
2014-09-21 21:48:26 +08:00
parent a8106442e1
commit ff4fcd5b56
8 changed files with 638 additions and 12 deletions
+10 -1
View File
@@ -3,7 +3,16 @@ Import('rtconfig')
from building import *
cwd = os.path.join(str(Dir('#')), 'drivers')
src = Glob('*.c')
src = ['board.c']
# add uart driver.
src += ['uart.c']
# add EMAC driver for Lwip.
if GetDepend('RT_USING_LWIP') == True:
src += ['emac.c', 'app_phy.c']
CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)