2019-03-29 17:04:48 +08:00
|
|
|
from building import *
|
|
|
|
import rtconfig
|
|
|
|
cwd = GetCurrentDir()
|
2023-01-09 10:14:23 +08:00
|
|
|
src = ['MM32L0xx/Source/system_MM32L0xx.c']
|
2019-03-29 17:04:48 +08:00
|
|
|
CPPPATH = [cwd + '/CMSIS/CORE', cwd + '/MM32L0xx/Include', cwd + '/MM32L0xx/Source', cwd + '/MM32L0xx/HAL_lib/inc']
|
|
|
|
|
|
|
|
src += Glob('MM32L0xx/HAL_lib/src/*.c')
|
|
|
|
CPPDEFINES = ['USE_STDPERIPH_DRIVER']
|
|
|
|
|
2022-05-31 06:04:05 +08:00
|
|
|
if rtconfig.PLATFORM in ['gcc']:
|
2019-03-29 17:04:48 +08:00
|
|
|
src += ['MM32L0xx/Source/GCC_StartAsm/startup_MM32L0xx.s']
|
2022-04-20 09:56:04 +08:00
|
|
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
2019-03-29 17:04:48 +08:00
|
|
|
src += ['MM32L0xx/Source/KEIL_StartAsm/startup_MM32L0xx.s']
|
2022-05-31 06:11:15 +08:00
|
|
|
elif rtconfig.PLATFORM in ['iccarm']:
|
2019-03-29 17:04:48 +08:00
|
|
|
src += ['MM32L0xx/Source/IAR_StartAsm/startup_MM32L0xx.s']
|
|
|
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
|
|
|
|
|
|
|
Return('group')
|