2023-06-22 14:16:03 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = ['device.c']
|
|
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
|
|
|
|
if GetDepend(['RT_USING_DEV_BUS']):
|
|
|
|
src = src + ['bus.c']
|
|
|
|
|
|
|
|
if GetDepend(['RT_USING_DM']):
|
2023-07-04 13:41:03 +08:00
|
|
|
src = src + ['dm.c', 'driver.c']
|
2023-06-22 14:16:03 +08:00
|
|
|
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_DEVICE'], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|