diff options
| author | 马志远 <[email protected]> | 2021-08-06 16:59:04 +0800 |
|---|---|---|
| committer | 马志远 <[email protected]> | 2021-08-06 16:59:04 +0800 |
| commit | f71bb5cd4394942b6d84afa13510f56765df1f6d (patch) | |
| tree | b5fb35f2eb1ff49aea061b5637d43ef6afd45dd4 /bsp/mm32f327x/Libraries/SConscript | |
| parent | 054f6db3e651cb6e7340913e969f5656626b9e9a (diff) | |
add bsp for MM32F3270 EVBoard
Diffstat (limited to 'bsp/mm32f327x/Libraries/SConscript')
| -rw-r--r-- | bsp/mm32f327x/Libraries/SConscript | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bsp/mm32f327x/Libraries/SConscript b/bsp/mm32f327x/Libraries/SConscript new file mode 100644 index 0000000000..e720c65f38 --- /dev/null +++ b/bsp/mm32f327x/Libraries/SConscript @@ -0,0 +1,16 @@ +from building import * +import rtconfig +cwd = GetCurrentDir() +src = ['MM32F327x/Source/system_mm32f327x.c'] +CPPPATH = [cwd + '/CMSIS/KEIL_CORE', cwd + '/MM32F327x/Include', cwd + '/MM32F327x/Source', cwd + '/MM32F327x/HAL_lib/Inc'] + +src += Glob('MM32F327x/HAL_lib/src/*.c') +CPPDEFINES = ['USE_STDPERIPH_DRIVER'] + +if rtconfig.CROSS_TOOL == 'keil': + src += ['MM32F327x/Source/KEIL_StartAsm/startup_mm32f327x_keil.s'] +elif rtconfig.CROSS_TOOL == 'iar': + src += ['MM32F327x/Source/IAR_StartAsm/startup_mm32f327x_iar.s'] +group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) + +Return('group') |
