diff options
| author | Ha Thach <[email protected]> | 2025-07-05 12:56:30 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-05 12:56:30 +0700 |
| commit | b012e95dfe40c6cd73cde7a6917848c4131dc548 (patch) | |
| tree | e3c5ce8d8a5e1582bc0c33f21e21bd08bcb121a1 /src/common | |
| parent | 9d872d529ffa0aa53e735b24543c26156798fc64 (diff) | |
| parent | 4b95a70bee078ad34bd916ed83b41cdaa4b00dbc (diff) | |
Merge pull request #2793 from verylowfreq/pr-ch32v-usbfs-host
Add Host support for ch32v20x usbfs
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 |
