bee9f4c7c4
* 1. 新增了i2c/spi/rtc/crypto等驱动;2. 删除了部分文件中的未使用到的头文件包含; 3. 修改keil编译时pm文件atoi的头文件stdlib未包含的警告 * 修改文件格式 * BSP 1. 修改f4系列bsp的readme文件与工程文件 2. 修改f0系列源文件的版权信息、删除目前没有的库文件。 3. 其他 * 还原.gitignore文件 Co-authored-by: aisino2200 <90822414+aisino2200@users.noreply.github.com>
42 lines
977 B
Python
42 lines
977 B
Python
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
|
|
HAL_Driver/Src/HAL_RTC.c
|
|
HAL_Driver/Src/HAL_SPI.c
|
|
HAL_Driver/Src/HAL_I2C.c
|
|
HAL_Driver/Src/HAL_CRC.c
|
|
""")
|
|
|
|
|
|
libpath = ['.', cwd + '/Device', cwd + '/HAL_Driver/Src']
|
|
libs = []
|
|
|
|
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, LIBS = libs, LIBPATH = libpath)
|
|
|
|
Return('group')
|