2021-08-06 16:59:04 +08:00
|
|
|
from building import *
|
|
|
|
import rtconfig
|
|
|
|
cwd = GetCurrentDir()
|
2023-01-09 10:14:23 +08:00
|
|
|
src = ['MM32F327x/Source/system_mm32f327x.c']
|
2023-07-05 18:20:08 +08:00
|
|
|
CPPPATH = [cwd + '/CMSIS/KEIL_CORE', cwd + '/MM32F327x/Include', cwd + '/MM32F327x/Source', cwd + '/MM32F327x/HAL_Lib/Inc']
|
2021-08-06 16:59:04 +08:00
|
|
|
|
|
|
|
src += Glob('MM32F327x/HAL_lib/src/*.c')
|
|
|
|
CPPDEFINES = ['USE_STDPERIPH_DRIVER']
|
|
|
|
|
2022-04-20 09:56:04 +08:00
|
|
|
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
2021-08-06 16:59:04 +08:00
|
|
|
src += ['MM32F327x/Source/KEIL_StartAsm/startup_mm32f327x_keil.s']
|
2022-05-31 06:11:15 +08:00
|
|
|
elif rtconfig.PLATFORM in ['iccarm']:
|
2021-08-06 16:59:04 +08:00
|
|
|
src += ['MM32F327x/Source/IAR_StartAsm/startup_mm32f327x_iar.s']
|
|
|
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
|
|
|
|
|
|
|
Return('group')
|