【dd2.0】Support the Core API for dd2.0 (#7791)

This commit is contained in:
ErikChanHub
2023-07-13 14:49:35 +08:00
committed by GitHub
parent 259431ace3
commit 2f5e4ac27e
17 changed files with 1093 additions and 231 deletions

View File

@@ -4,11 +4,14 @@ cwd = GetCurrentDir()
src = ['device.c']
CPPPATH = [cwd + '/../include']
if GetDepend(['RT_USING_DEV_BUS']):
if GetDepend(['RT_USING_DEV_BUS']) or GetDepend(['RT_USING_DM']):
src = src + ['bus.c']
if GetDepend(['RT_USING_DM']):
src = src + ['dm.c', 'driver.c']
src = src + ['dm.c', 'driver.c', 'platform.c']
if GetDepend(['RT_USING_OFW']):
src += ['platform_ofw.c']
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_DEVICE'], CPPPATH = CPPPATH)