diff options
| author | bernard <[email protected]> | 2017-09-29 10:23:56 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-09-29 10:23:56 +0800 |
| commit | cccff34fcac04f34233a33e453f2d0ec255bf231 (patch) | |
| tree | d406036f73296b27f3cb96e77ede98dd7803c61d /bsp/samd21/board/SConscript | |
| parent | e9a77b513f0a4b37d539a030592a61b08d03602d (diff) | |
| parent | 3691b67e83ab57196dfc62606b1be18db76994a7 (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'bsp/samd21/board/SConscript')
| -rw-r--r-- | bsp/samd21/board/SConscript | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bsp/samd21/board/SConscript b/bsp/samd21/board/SConscript new file mode 100644 index 0000000000..ea79ebb925 --- /dev/null +++ b/bsp/samd21/board/SConscript @@ -0,0 +1,20 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = GetCurrentDir() +src = Glob('*.c') +path = [cwd] + +#remove other no use files +#SrcRemove(src, 'i2c_iomaster.c') +#SrcRemove(src, 'delay.c') + +if rtconfig.DEVICE_SERIES == 'SAMD20': + path += [cwd + '/../asflib_config', cwd + '/../asflib_config/clock_samd20'] +elif rtconfig.DEVICE_SERIES == 'SAMD21': + path += [cwd + '/../asflib_config', cwd + '/../asflib_config/clock_samd21_r21_da_ha1'] + +group = DefineGroup('Board', src, depend = [''], CPPPATH = path) + +Return('group') |
