From 189c999f8eaab2559ec483f80eecf35e3d618af4 Mon Sep 17 00:00:00 2001 From: xieyangrun Date: Wed, 30 Aug 2017 12:18:28 +0800 Subject: add atmel SAM D21 bsp support --- bsp/samd21/board/SConscript | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 bsp/samd21/board/SConscript (limited to 'bsp/samd21/board/SConscript') 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') -- cgit v1.3.1