diff options
| author | verylowfreq <[email protected]> | 2024-09-11 23:33:19 +0900 |
|---|---|---|
| committer | verylowfreq <[email protected]> | 2025-03-16 10:13:26 +0900 |
| commit | 382dcca5d63c9eff5ade0cf402fc113c68a57857 (patch) | |
| tree | f5f5c6edd7612a857fe84fb773740e1f6200ffb7 | |
| parent | 7ed5503a5c2bc0b755d97303064614275e74ffb2 (diff) | |
Update ch32v20x family.cmake
| -rw-r--r-- | hw/bsp/ch32v20x/family.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/bsp/ch32v20x/family.cmake b/hw/bsp/ch32v20x/family.cmake index a5976e0ea..6092abc8d 100644 --- a/hw/bsp/ch32v20x/family.cmake +++ b/hw/bsp/ch32v20x/family.cmake @@ -61,6 +61,7 @@ function(add_board_target BOARD_TARGET) if (PORT EQUAL 0) target_compile_definitions(${BOARD_TARGET} PUBLIC CFG_TUD_WCH_USBIP_FSDEV=1 + CFG_TUH_WCH_USBIP_USBFS=1 ) elseif (PORT EQUAL 1) target_compile_definitions(${BOARD_TARGET} PUBLIC @@ -127,6 +128,7 @@ function(family_configure_example TARGET RTOS) target_sources(${TARGET} PUBLIC ${TOP}/src/portable/wch/dcd_ch32_usbfs.c + ${TOP}/src/portable/wch/hcd_ch32_usbfs.c ${TOP}/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c ) target_link_libraries(${TARGET} PUBLIC board_${BOARD}) |
