blta 99526cc047 [bsp/ch32v103r-evt] add ch32v103r-evt bsp
feat: move MRS demo source to bsp and libraries folder

feat: update Sconscript

feat: modify SConstruct in the bsp

feat: use the rtconfig.py of gd32vf103v-eval bsp to modify

feat: use the MRS's rtconfig.h temoporarily

feat: update Kconfig files

feat: use the MRS's .ld and rename as link.lds

feat: add ch32v1 porting folder

perf: remove board/system_ch32v10x.c

fix: define SOC_ARM_SERIES_CH32V103 in rtconfig.h

fix: add some neccessary macros in rtconfig.h

perf: use the menuconfig to generate rtconfig.h

feat: add readme.md

fix: correct the bad encode in main.c

fix: include board.h in main.c

perf: check and update README.md

perf: remove ch32f10x_port_cn.md

feat: ignore the standard libraries's CI checking

feat: add sdk_dist.py

fix: correct some style errors again

perf: simply the board/kconfig

fix: format ch32v103r-evt

fix: format drvs and libcpu
2022-04-06 11:06:55 +08:00

41 lines
1.1 KiB
Python

import rtconfig
Import('RTT_ROOT')
from building import *
# get current directory
cwd = GetCurrentDir()
src = Split("""
StdPeriph_Driver/src/ch32v10x_adc.c
StdPeriph_Driver/src/ch32v10x_bkp.c
StdPeriph_Driver/src/ch32v10x_crc.c
StdPeriph_Driver/src/ch32v10x_dbgmcu.c
StdPeriph_Driver/src/ch32v10x_dma.c
StdPeriph_Driver/src/ch32v10x_exti.c
StdPeriph_Driver/src/ch32v10x_flash.c
StdPeriph_Driver/src/ch32v10x_gpio.c
StdPeriph_Driver/src/ch32v10x_i2c.c
StdPeriph_Driver/src/ch32v10x_iwdg.c
StdPeriph_Driver/src/ch32v10x_misc.c
StdPeriph_Driver/src/ch32v10x_pwr.c
StdPeriph_Driver/src/ch32v10x_rcc.c
StdPeriph_Driver/src/ch32v10x_rtc.c
StdPeriph_Driver/src/ch32v10x_spi.c
StdPeriph_Driver/src/ch32v10x_tim.c
StdPeriph_Driver/src/ch32v10x_usart.c
StdPeriph_Driver/src/ch32v10x_wwdg.c
CMSIS/core_riscv.c
CMSIS/WCH/CH32V10x/Source/system_ch32v10x.c
CMSIS/WCH/CH32V10x/Source/GCC/startup_ch32v10x.S
""")
path = [
cwd + '/CMSIS',
cwd + '/CMSIS/WCH/CH32V10x/Include',
cwd + '/StdPeriph_Driver/inc']
group = DefineGroup('ch32v10x_lib', src, depend = [''], CPPPATH = path)
Return('group')