2014-08-30 00:19:16 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = os.path.join(str(Dir('#')), 'drivers')
|
2014-08-31 00:09:08 +08:00
|
|
|
|
2023-01-09 10:14:23 +08:00
|
|
|
src = ['board.c']
|
2014-08-31 00:09:08 +08:00
|
|
|
|
|
|
|
# add uart driver.
|
2023-01-09 10:14:23 +08:00
|
|
|
src += ['uart.c']
|
2014-08-31 00:09:08 +08:00
|
|
|
|
|
|
|
# add EMAC driver for Lwip.
|
|
|
|
if GetDepend('RT_USING_LWIP') == True:
|
|
|
|
src += ['emac.c', 'app_phy.c']
|
|
|
|
|
2014-08-30 00:19:16 +08:00
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|