原始版本

This commit is contained in:
冯佳
2025-06-19 21:56:46 +08:00
parent fe98e5f010
commit a4841450cf
4152 changed files with 1910684 additions and 0 deletions

View File

@ -0,0 +1,21 @@
Import('RTT_ROOT')
Import('rtconfig')
from building import *
import os
cwd = GetCurrentDir()
group = []
src = ['drv_common.c']
path = [cwd]
if not GetDepend('PKG_USING_CMSIS_CORE'):
path += [os.path.join(cwd, 'CMSIS', 'Include')]
if GetDepend(['RT_USING_NANO']):
group = group + SConscript(os.path.join(cwd, 'nano', 'SConscript'))
else:
group = group + SConscript(os.path.join(cwd, 'drivers', 'SConscript'))
group = group + DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
Return('group')