18 lines
652 B
Python
18 lines
652 B
Python
from building import *
|
|
import rtconfig
|
|
cwd = GetCurrentDir()
|
|
src = Glob('CMSIS/DeviceSupport/*.c')
|
|
CPPPATH = [cwd + '/CMSIS/CoreSupport', cwd + '/CMSIS/DeviceSupport', cwd + '/SWM341_StdPeriph_Driver']
|
|
|
|
src += Glob('SWM341_StdPeriph_Driver/*.c')
|
|
|
|
if rtconfig.PLATFORM in ['gcc']:
|
|
src += ['CMSIS/DeviceSupport/startup/gcc/startup_SWM341.s']
|
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
|
src += ['CMSIS/DeviceSupport/startup/arm/startup_SWM341.s']
|
|
elif rtconfig.PLATFORM in ['iccarm']:
|
|
src += ['CMSIS/DeviceSupport/startup/iar/startup_SWM341.s']
|
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|