26 lines
748 B
Python
26 lines
748 B
Python
import rtconfig
|
|
Import('RTT_ROOT')
|
|
from building import *
|
|
|
|
# get current directory
|
|
cwd = GetCurrentDir()
|
|
|
|
# The set of source files associated with this SConscript file.
|
|
src = Split("""
|
|
Device/Geehy/APM32F10x/Source/system_apm32f10x.c
|
|
APM32F10x_StdPeriphDriver/src/apm32f10x_gpio.c
|
|
APM32F10x_StdPeriphDriver/src/apm32f10x_misc.c
|
|
APM32F10x_StdPeriphDriver/src/apm32f10x_rcm.c
|
|
APM32F10x_StdPeriphDriver/src/apm32f10x_usart.c
|
|
APM32F10x_StdPeriphDriver/src/apm32f10x_eint.c
|
|
""")
|
|
|
|
path = [cwd + '/Device/Geehy/APM32F10x/Include',
|
|
cwd + '/APM32F10x_StdPeriphDriver/inc',
|
|
cwd + '/CMSIS/Include']
|
|
|
|
CPPDEFINES = ['USE_STDPERIPH_DRIVER']
|
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
|
|
|
Return('group')
|