rt-thread-official/bsp/acm32f0x0-nucleo/libraries/SConscript

35 lines
776 B
Python
Raw Normal View History

import rtconfig
Import('RTT_ROOT')
from building import *
# get current directory
cwd = GetCurrentDir()
src = Split("""
Device/System_ACM32F0x0.c
HAL_Driver/Src/HAL_DMA.c
HAL_Driver/Src/HAL_ADC.c
HAL_Driver/Src/HAL_GPIO.c
HAL_Driver/Src/HAL_WDT.c
HAL_Driver/Src/HAL_IWDT.c
HAL_Driver/Src/HAL_UART.c
HAL_Driver/Src/HAL_TIMER.c
HAL_Driver/Src/HAL_EXTI.c
""")
if rtconfig.CROSS_TOOL == 'gcc':
src = src + ['Device/Startup_ACM32F0x0_gcc.s']
elif rtconfig.CROSS_TOOL == 'keil':
src = src + ['Device/Startup_ACM32F0x0.s']
elif rtconfig.CROSS_TOOL == 'iar':
src = src + ['Device/Startup_ACM32F0x0_iar.s']
path = [cwd + '/HAL_Driver/Inc',
cwd + '/Device',
cwd + '/CMSIS']
group = DefineGroup('ACM32_HAL', src, depend = [''], CPPPATH = path)
Return('group')