rt-thread/bsp/samd21/board/SConscript

21 lines
545 B
Python
Raw Normal View History

2017-08-30 12:18:28 +08:00
Import('RTT_ROOT')
Import('rtconfig')
from building import *
cwd = GetCurrentDir()
2023-01-09 10:14:23 +08:00
src = Glob('*.c')
2017-08-30 12:18:28 +08:00
path = [cwd]
#remove other no use files
#SrcRemove(src, 'i2c_iomaster.c')
#SrcRemove(src, 'delay.c')
if rtconfig.DEVICE_SERIES == 'SAMD20':
2023-01-09 10:14:23 +08:00
path += [cwd + '/../asflib_config', cwd + '/../asflib_config/clock_samd20']
2017-08-30 12:18:28 +08:00
elif rtconfig.DEVICE_SERIES == 'SAMD21':
2023-01-09 10:14:23 +08:00
path += [cwd + '/../asflib_config', cwd + '/../asflib_config/clock_samd21_r21_da_ha1']
2017-08-30 12:18:28 +08:00
2020-12-19 16:49:11 +08:00
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
2017-08-30 12:18:28 +08:00
Return('group')