diff options
| author | Ha Thach <[email protected]> | 2024-06-14 20:34:32 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-06-14 20:34:32 +0700 |
| commit | 0ac0c37078d5cc9bbfb76d4091ffb07343cfd7f9 (patch) | |
| tree | b30205e5f498825af09dd7244313dc6f56e7ea00 /src/common | |
| parent | ba2f2299c34491aa8c354e00fa3f9d222e30db89 (diff) | |
| parent | 2be72a97b8fd4d08ca20a9b8815f2042c4ef7520 (diff) | |
Merge pull request #2674 from hathach/add-ch32v103
Add ch32v103 (not working yet)
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_mcu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/tusb_mcu.h b/src/common/tusb_mcu.h index c66996c4f..d9d11e96d 100644 --- a/src/common/tusb_mcu.h +++ b/src/common/tusb_mcu.h @@ -420,6 +420,15 @@ #define TUP_RHPORT_HIGHSPEED CFG_TUD_WCH_USBIP_USBHS #define TUP_DCD_ENDPOINT_MAX (CFG_TUD_WCH_USBIP_USBHS ? 16 : 8) +#elif TU_CHECK_MCU(OPT_MCU_CH32V103) + #define TUP_USBIP_WCH_USBFS + + #if !defined(CFG_TUD_WCH_USBIP_USBFS) + #define CFG_TUD_WCH_USBIP_USBFS 1 + #endif + + #define TUP_DCD_ENDPOINT_MAX 8 + #elif TU_CHECK_MCU(OPT_MCU_CH32V20X) // v20x support both FSDEV (USBD) and USBFS, default to FSDEV #define TUP_USBIP_WCH_USBFS |
