import rtconfig from building import * # get current directory cwd = GetCurrentDir() # The set of source files associated with this SConscript file. src = Split(""" cmsis/cm4/device_support/system_at32a423.c drivers/src/at32a423_acc.c drivers/src/at32a423_adc.c drivers/src/at32a423_can.c drivers/src/at32a423_crc.c drivers/src/at32a423_crm.c drivers/src/at32a423_dac.c drivers/src/at32a423_debug.c drivers/src/at32a423_dma.c drivers/src/at32a423_ertc.c drivers/src/at32a423_exint.c drivers/src/at32a423_flash.c drivers/src/at32a423_gpio.c drivers/src/at32a423_i2c.c drivers/src/at32a423_misc.c drivers/src/at32a423_pwc.c drivers/src/at32a423_scfg.c drivers/src/at32a423_spi.c drivers/src/at32a423_tmr.c drivers/src/at32a423_usart.c drivers/src/at32a423_usb.c drivers/src/at32a423_wdt.c drivers/src/at32a423_wwdt.c drivers/src/at32a423_xmc.c """) path = [ cwd + '/cmsis/cm4/device_support', cwd + '/cmsis/cm4/core_support', cwd + '/drivers/inc',] CPPDEFINES = ['USE_STDPERIPH_DRIVER'] group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group')