Skip to content

Commit 7de1d74

Browse files
committed
[bsp][wch]:adapt wch risc serial_v2
1 parent 5e03e07 commit 7de1d74

File tree

5 files changed

+1725
-14
lines changed

5 files changed

+1725
-14
lines changed

bsp/wch/risc-v/Libraries/ch32_drivers/SConscript

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ if GetDepend('SOC_RISCV_FAMILY_CH32'):
1010
src += ['drv_gpio.c']
1111

1212
if GetDepend('BSP_USING_UART'):
13-
src += ['drv_usart.c']
13+
if GetDepend('RT_USING_SERIAL_V2'):
14+
src += ['drv_usart_v2.c']
15+
else:
16+
src += ['drv_usart.c']
1417

1518
if GetDepend('BSP_USING_ADC'):
1619
src += ['drv_adc.c']

0 commit comments

Comments
 (0)