diff options
| author | Coing <[email protected]> | 2014-12-16 19:54:29 +0800 |
|---|---|---|
| committer | Coing <[email protected]> | 2014-12-16 19:54:29 +0800 |
| commit | e4fdb84e96775166fe1d79329cf426e790d63bc6 (patch) | |
| tree | e8d3048249115374abdfc626fe3c4c371553d2ee /bsp/lpc5410x/Libraries/Device/SConscript | |
| parent | 82ef447e44c0d260f3dec85d5761fc33bfaf085e (diff) | |
add bsp lpc54102
Diffstat (limited to 'bsp/lpc5410x/Libraries/Device/SConscript')
| -rw-r--r-- | bsp/lpc5410x/Libraries/Device/SConscript | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bsp/lpc5410x/Libraries/Device/SConscript b/bsp/lpc5410x/Libraries/Device/SConscript new file mode 100644 index 0000000000..40a74f1541 --- /dev/null +++ b/bsp/lpc5410x/Libraries/Device/SConscript @@ -0,0 +1,22 @@ +# RT-Thread building script for component + +Import('rtconfig') +from building import * + +cwd = GetCurrentDir() +src = Split(''' +startup/sysinit.c +''') +CPPPATH = [cwd + '/../CMSIS/Include'] +CPPDEFINES = ['CORE_M4'] + + +# add for startup script +if rtconfig.CROSS_TOOL == 'gcc': + src += ['startup/gcc_startup_lpc5410x.c'] +elif rtconfig.CROSS_TOOL == 'keil': + src += ['startup/keil_startup_lpc5410x.s'] + +group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) + +Return('group') |
