diff options
| author | hathach <[email protected]> | 2024-06-14 16:06:37 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-06-14 16:06:37 +0700 |
| commit | 33f5547ed435f33259afc2a8e906eb7a258fbdd6 (patch) | |
| tree | b99975931d78579a58c7bc8e7a28ddd9b8a20d92 /src/common | |
| parent | 969b06d77c8a37510c9bed8dde377ff7bf462a30 (diff) | |
add ch32v103 bsp support, compile but does not run, probably due to compile/linker issue
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 |
