diff options
| author | nongxiaoming <[email protected]> | 2014-07-13 14:13:39 +0800 |
|---|---|---|
| committer | nongxiaoming <[email protected]> | 2014-07-13 14:13:39 +0800 |
| commit | e152b68e33515da64c4e4a3d5d3339d34f98018f (patch) | |
| tree | ae06547088507ae662318c84285e5f88943f6df3 /bsp/lpc43xx/Libraries/Device/SConscript | |
| parent | 005014e7d0026249078b37e718200da55990928e (diff) | |
add the lpc43xx bsp support.
Diffstat (limited to 'bsp/lpc43xx/Libraries/Device/SConscript')
| -rw-r--r-- | bsp/lpc43xx/Libraries/Device/SConscript | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/bsp/lpc43xx/Libraries/Device/SConscript b/bsp/lpc43xx/Libraries/Device/SConscript new file mode 100644 index 0000000000..d0aac1b070 --- /dev/null +++ b/bsp/lpc43xx/Libraries/Device/SConscript @@ -0,0 +1,30 @@ +# RT-Thread building script for component + +Import('rtconfig') +from building import * + +cwd = GetCurrentDir() +src = Split(''' +NXP/LPC43xx/Source/Templates/system_LPC43xx.c +''') +CPPPATH = [cwd + '/NXP/LPC43xx/Include', cwd + '/../CMSIS/Include'] +CPPDEFINES = [rtconfig.USE_CORE + ' USE_SPIFI'] + +# add for startup script +if rtconfig.USE_CORE =='CORE_M4': + if rtconfig.CROSS_TOOL == 'gcc': + src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx.s'] + elif rtconfig.CROSS_TOOL == 'keil': + src += ['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx.s'] + elif rtconfig.CROSS_TOOL == 'iar': + src += ['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx.s'] +else: + if rtconfig.CROSS_TOOL == 'gcc': + src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx_M0.s'] + elif rtconfig.CROSS_TOOL == 'keil': + src += ['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx_M0.s'] + elif rtconfig.CROSS_TOOL == 'iar': + src += ['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx_M0.s'] +group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) + +Return('group') |
