Skip to content

Commit 382dcca

Browse files
committed
Update ch32v20x family.cmake
1 parent 7ed5503 commit 382dcca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hw/bsp/ch32v20x/family.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ function(add_board_target BOARD_TARGET)
6161
if (PORT EQUAL 0)
6262
target_compile_definitions(${BOARD_TARGET} PUBLIC
6363
CFG_TUD_WCH_USBIP_FSDEV=1
64+
CFG_TUH_WCH_USBIP_USBFS=1
6465
)
6566
elseif (PORT EQUAL 1)
6667
target_compile_definitions(${BOARD_TARGET} PUBLIC
@@ -127,6 +128,7 @@ function(family_configure_example TARGET RTOS)
127128

128129
target_sources(${TARGET} PUBLIC
129130
${TOP}/src/portable/wch/dcd_ch32_usbfs.c
131+
${TOP}/src/portable/wch/hcd_ch32_usbfs.c
130132
${TOP}/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
131133
)
132134
target_link_libraries(${TARGET} PUBLIC board_${BOARD})

0 commit comments

Comments
 (0)