打盹的消防车 0e254652aa
add:air105 bsp (#5607)
* add:air105 bsp

* add:去掉注释代码

* add:注释修改

* fix:格式化一遍代码格式

* add:main函数添加闪灯

* add:完善bsp

* add:添加一些信息

* add:使用工作队列喂狗

* add:整理目录

* add:去掉乱码部分

* add:修改readme

* add:更新readme说明

* add:去掉bootloader.bin和soc_download.exe,README.md中添加标注

* fix:去除多余文件

* add:补充license

* add:支持scons --dist

* add:更新soc_download.exe连接地址
2022-03-08 12:04:17 +08:00

30 lines
733 B
Python

from building import *
cwd = GetCurrentDir()
CPPPATH = [cwd+"/HAL_Driver/Inc",cwd+"/rt_drivers",cwd+"/rt_drivers/config"]
CPPDEFINES = ['__USE_XTL__']
# add general drivers
src = Split('''
HAL_Driver/Src/bsp_common.c
HAL_Driver/Src/core_uart.c
HAL_Driver/Src/core_dma.c
HAL_Driver/Src/core_gpio.c
HAL_Driver/Src/core_irq.c
HAL_Driver/Src/core_wdt.c
HAL_Driver/Src/core_spi.c
HAL_Driver/Src/core_i2c.c
HAL_Driver/Src/core_tick.c
HAL_Driver/Src/core_rtc.c
rt_drivers/drv_usart_v2.c
rt_drivers/drv_i2c.c
rt_drivers/drv_wdt.c
rt_drivers/drv_gpio.c
rt_drivers/drv_common.c
rt_drivers/drv_spi.c
rt_drivers/drv_rtc.c
''')
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
Return('group')