diff options
| author | Xian Wu <[email protected]> | 2023-12-27 18:41:52 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-27 18:41:52 +0800 |
| commit | 6360253c129afcb91d34770cb253eea8d837e66a (patch) | |
| tree | 065167006028882ff4d57208252d1e0ce9f3b4e4 /bsp/synwit/libraries/SWM341_CSL/SConscript | |
| parent | 7b4592c2d15bf90c1958bdbc840ea4df3d97cd96 (diff) | |
Synwit MCU 采用新的 BSP 框架,将 BSP 与 libraries 分离 (#8432)
Diffstat (limited to 'bsp/synwit/libraries/SWM341_CSL/SConscript')
| -rw-r--r-- | bsp/synwit/libraries/SWM341_CSL/SConscript | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bsp/synwit/libraries/SWM341_CSL/SConscript b/bsp/synwit/libraries/SWM341_CSL/SConscript new file mode 100644 index 0000000000..c235245d06 --- /dev/null +++ b/bsp/synwit/libraries/SWM341_CSL/SConscript @@ -0,0 +1,23 @@ +from building import * +import rtconfig + +cwd = GetCurrentDir() + +src = Glob('CMSIS/DeviceSupport/*.c') +src += Glob('SWM341_StdPeriph_Driver/*.c') + +if rtconfig.CROSS_TOOL == 'gcc': + src += ['CMSIS/DeviceSupport/startup/gcc/startup_SWM341.s'] +elif rtconfig.CROSS_TOOL == 'keil': + src += ['CMSIS/DeviceSupport/startup/arm/startup_SWM341.s'] +elif rtconfig.CROSS_TOOL == 'iar': + src += ['CMSIS/DeviceSupport/startup/iar/startup_SWM341.s'] + +inc = [cwd + '/CMSIS/CoreSupport', + cwd + '/CMSIS/DeviceSupport', + cwd + '/SWM341_StdPeriph_Driver' +] + +group = DefineGroup('Libraries', src, depend = [''], CPPPATH = inc) + +Return('group') |
