linshire de48b65b0d
[ch32v3] 修改RT_USING为BSP_USING (#6482)
* 修改RT_USING为BSP_USING

* Update SConscript

* Update SConscript

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2022-09-30 11:07:52 -04:00

33 lines
674 B
Python

from building import *
cwd = GetCurrentDir()
src = []
path = [cwd]
if GetDepend('SOC_RISCV_FAMILY_CH32'):
if GetDepend('BSP_USING_GPIO'):
src += ['drv_gpio.c']
if GetDepend('BSP_USING_UART'):
src += ['drv_usart.c']
if GetDepend('BSP_USING_ADC'):
src += ['drv_adc.c']
if GetDepend(['BSP_USING_DAC']):
src += ['drv_dac.c']
if GetDepend(['BSP_USING_I2C_BITOPS']):
src += ['drv_soft_i2c.c']
if GetDepend('BSP_USING_RTC'):
src += ['drv_rtc.c']
if GetDepend('BSP_USING_IWDT'):
src += ['drv_iwdt.c']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
Return('group')