diff options
| author | linshire <[email protected]> | 2022-09-30 23:07:52 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-30 11:07:52 -0400 |
| commit | de48b65b0dd9a80f21cff16912cfcd11f4d3a5b8 (patch) | |
| tree | 7463b05e9eaf143c2b2b2742aad0471e499f2b21 | |
| parent | b9cd2b6016a96f7000987b14d8896f8543ab02c0 (diff) | |
[ch32v3] 修改RT_USING为BSP_USING (#6482)
* 修改RT_USING为BSP_USING
* Update SConscript
* Update SConscript
Co-authored-by: Man, Jianting (Meco) <[email protected]>
| -rw-r--r-- | bsp/wch/risc-v/Libraries/ch32_drivers/SConscript | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/bsp/wch/risc-v/Libraries/ch32_drivers/SConscript b/bsp/wch/risc-v/Libraries/ch32_drivers/SConscript index 88f37b0e62..81da49d96b 100644 --- a/bsp/wch/risc-v/Libraries/ch32_drivers/SConscript +++ b/bsp/wch/risc-v/Libraries/ch32_drivers/SConscript @@ -1,39 +1,32 @@ -Import('RTT_ROOT') -Import('rtconfig') from building import * cwd = GetCurrentDir() - -# add the general drivers. -src = Split(""" -""") +src = [] +path = [cwd] if GetDepend('SOC_RISCV_FAMILY_CH32'): - if GetDepend('RT_USING_PIN'): + if GetDepend('BSP_USING_GPIO'): src += ['drv_gpio.c'] - if GetDepend(['RT_USING_SERIAL', 'BSP_USING_UART']): + if GetDepend('BSP_USING_UART'): src += ['drv_usart.c'] - if GetDepend('RT_USING_ADC'): + if GetDepend('BSP_USING_ADC'): src += ['drv_adc.c'] if GetDepend(['BSP_USING_DAC']): src += ['drv_dac.c'] - if GetDepend(['RT_USING_I2C', 'RT_USING_I2C_BITOPS']): - if GetDepend('BSP_USING_I2C1') or GetDepend('BSP_USING_I2C2'): - src += ['drv_soft_i2c.c'] + if GetDepend(['BSP_USING_I2C_BITOPS']): + src += ['drv_soft_i2c.c'] - if GetDepend(['RT_USING_RTC', 'BSP_USING_RTC']): + if GetDepend('BSP_USING_RTC'): src += ['drv_rtc.c'] - if GetDepend(['RT_USING_WDT', 'BSP_USING_IWDT']): + if GetDepend('BSP_USING_IWDT'): src += ['drv_iwdt.c'] -path = [cwd] - group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) Return('group') |
