diff options
| author | yangfasheng <[email protected]> | 2015-04-06 13:46:14 +0800 |
|---|---|---|
| committer | yangfasheng <[email protected]> | 2015-04-06 13:46:14 +0800 |
| commit | 3dc20907c327f05392998e325b64521196775016 (patch) | |
| tree | cd315cbf79f0b0e8bdc4020c59066eec3805be47 /bsp/nrf51822/Libraries/SConscript | |
| parent | d20d82a04a06d48af2e961241db1ee0f754e0c43 (diff) | |
add nrf51822 to bsp
Diffstat (limited to 'bsp/nrf51822/Libraries/SConscript')
| -rw-r--r-- | bsp/nrf51822/Libraries/SConscript | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/bsp/nrf51822/Libraries/SConscript b/bsp/nrf51822/Libraries/SConscript new file mode 100644 index 0000000000..688d7e4ddc --- /dev/null +++ b/bsp/nrf51822/Libraries/SConscript @@ -0,0 +1,27 @@ +import rtconfig +Import('RTT_ROOT') +from building import * + +# get current directory +cwd = GetCurrentDir() + +# The set of source files associated with this SConscript file. +src = Split(""" +nrf51822/Source/templates/system_nrf51.c +""") + +#add for Startup script +if rtconfig.CROSS_TOOL == 'gcc': + src = src + ['nrf51822/Source/templates/arm/arm_startup_nrf51.s'] +elif rtconfig.CROSS_TOOL == 'keil': + src = src + ['nrf51822/Source/templates/arm/arm_startup_nrf51.s'] +elif rtconfig.CROSS_TOOL == 'iar': + src = src + ['nrf51822/Source/templates/arm/arm_startup_nrf51.s'] + +path = [cwd + '/CMSIS/Include', + cwd + '/nrf51822/Include'] + +CPPDEFINES = ['USE_STDPERIPH_DRIVER', 'NRF51'] +group = DefineGroup('Startup Code', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) + +Return('group') |
