diff options
| author | hathach <[email protected]> | 2025-07-05 11:26:48 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-07-05 11:26:48 +0700 |
| commit | 6e88895dbc2b09e60b971f1587d19d3a2487c2f8 (patch) | |
| tree | 6e5eeec457d04df6c711428bb88b1a16a2129baa /src/common | |
| parent | 1b5f97ff23776279a011e2ab14a85f29e1aa6c10 (diff) | |
always define CFG_TUH_WCH_USBIP_USBFS=1 for ch32v20x since only port1 support host mode
reformat hcd usbfs
add uart rx for ch32v20x bsp
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_mcu.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/common/tusb_mcu.h b/src/common/tusb_mcu.h index 2ee2132bf..a08ed79c8 100644 --- a/src/common/tusb_mcu.h +++ b/src/common/tusb_mcu.h @@ -503,11 +503,17 @@ #define TUP_DCD_ENDPOINT_MAX 8 #elif TU_CHECK_MCU(OPT_MCU_CH32V20X) - // v20x support both FSDEV (USBD) and USBFS, default to FSDEV + // v20x support both port0 FSDEV (USBD) and port1 USBFS #define TUP_USBIP_WCH_USBFS + + #ifndef CFG_TUH_WCH_USBIP_USBFS + #define CFG_TUH_WCH_USBIP_USBFS 1 + #endif + #define TUP_USBIP_FSDEV #define TUP_USBIP_FSDEV_CH32 + // default to FSDEV for device #if !defined(CFG_TUD_WCH_USBIP_USBFS) #define CFG_TUD_WCH_USBIP_USBFS 0 #endif |
