You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
730 B
19 lines
730 B
5 months ago
|
from building import *
|
||
|
import rtconfig
|
||
|
cwd = GetCurrentDir()
|
||
|
src = ['MM32L0xx/Source/system_MM32L0xx.c']
|
||
|
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']
|
||
|
|
||
|
if rtconfig.PLATFORM in ['gcc']:
|
||
|
src += ['MM32L0xx/Source/GCC_StartAsm/startup_MM32L0xx.s']
|
||
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||
|
src += ['MM32L0xx/Source/KEIL_StartAsm/startup_MM32L0xx.s']
|
||
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||
|
src += ['MM32L0xx/Source/IAR_StartAsm/startup_MM32L0xx.s']
|
||
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
||
|
|
||
|
Return('group')
|