diff options
| author | wangyq2018 <[email protected]> | 2019-11-01 17:23:12 +0800 |
|---|---|---|
| committer | wangyq2018 <[email protected]> | 2019-11-18 10:54:38 +0800 |
| commit | 96fd9a5039b578a615af016dc3ae8efda8960811 (patch) | |
| tree | e86e2eba57b24b02fef836290276f0e953e632c1 /bsp/essemi/es32f0334/libraries/SConscript | |
| parent | 2c55f11b67bd9255324f55ffc7dedef7e8610d76 (diff) | |
[bsp]1.update es32f0334 libraries.
2.adapt to the new power management interface.
3.move es32f0334 folder to essemi folder.
Diffstat (limited to 'bsp/essemi/es32f0334/libraries/SConscript')
| -rw-r--r-- | bsp/essemi/es32f0334/libraries/SConscript | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/bsp/essemi/es32f0334/libraries/SConscript b/bsp/essemi/es32f0334/libraries/SConscript new file mode 100644 index 0000000000..7a04540b4e --- /dev/null +++ b/bsp/essemi/es32f0334/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 = [] + +src += Glob('ES32F033x_ALD_StdPeriph_Driver/Source/*.c') + +#add for startup script +if rtconfig.CROSS_TOOL == 'gcc': + src = src + ['CMSIS/Device/EastSoft/es32f033x/Startup/gcc/startup_es32f033x.s'] +elif rtconfig.CROSS_TOOL == 'keil': + src = src + ['CMSIS/Device/EastSoft/es32f033x/Startup/keil/startup_es32f033x.s'] +elif rtconfig.CROSS_TOOL == 'iar': + src = src + ['CMSIS/Device/EastSoft/es32f033x/Startup/iar/startup_es32f033x.s'] + +path = [cwd + '/CMSIS/Device/EastSoft/es32f033x/Include', + cwd + '/CMSIS/Include', + cwd + '/ES32F033x_ALD_StdPeriph_Driver/Include'] + +group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = ['ES32F033x']) + +Return('group') |
