2019-04-02 19:24:44 +08:00
|
|
|
from building import *
|
|
|
|
import rtconfig
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = ['MM32L3xx/Source/system_MM32L3xx.c']
|
2019-06-17 14:40:24 +08:00
|
|
|
CPPPATH = [cwd + '/CMSIS/KEIL_CORE', cwd + '/MM32L3xx/Include', cwd + '/MM32L3xx/Source', cwd + '/MM32L3xx/HAL_lib/inc']
|
2019-04-02 19:24:44 +08:00
|
|
|
|
|
|
|
src += Glob('MM32L3xx/HAL_lib/src/*.c')
|
|
|
|
CPPDEFINES = ['USE_STDPERIPH_DRIVER']
|
|
|
|
|
2022-04-20 09:56:04 +08:00
|
|
|
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
2019-04-02 19:24:44 +08:00
|
|
|
src += ['MM32L3xx/Source/KEIL_StartAsm/startup_MM32L3xx.s']
|
|
|
|
elif rtconfig.CROSS_TOOL == 'iar':
|
|
|
|
src += ['MM32L3xx/Source/IAR_StartAsm/startup_MM32L3xx.s']
|
|
|
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
|
|
|
|
|
|
|
Return('group')
|