diff options
| author | alt-0191 <[email protected]> | 2026-02-26 20:46:39 +0800 |
|---|---|---|
| committer | alt-0191 <[email protected]> | 2026-03-18 15:23:28 +0800 |
| commit | 6b0d20d70dbe0462fc89a92ab0c0ca04a9c625d0 (patch) | |
| tree | c3106c92bfa1be6f199c59f4bc2470f41b84dfee /src/common | |
| parent | 8f7f286ae347ec1adbfd0888d65fb1aeb263b7d2 (diff) | |
add WCH CH58x (CH582/CH583) BSP and USB FS device/host driver
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_mcu.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common/tusb_mcu.h b/src/common/tusb_mcu.h index 34dd6af8d..02364d580 100644 --- a/src/common/tusb_mcu.h +++ b/src/common/tusb_mcu.h @@ -629,6 +629,20 @@ #define TUP_DCD_EDPT_CLOSE_API #endif +#elif TU_CHECK_MCU(OPT_MCU_CH582) + // CH58x has 2 independent USBFS controllers with merged EP registers, FS only. + #define TUP_USBIP_WCH_CH58X + + #ifndef CFG_TUD_WCH_USBIP_USBFS + #define CFG_TUD_WCH_USBIP_USBFS 1 + #endif + + #ifndef CFG_TUH_WCH_USBIP_USBFS + #define CFG_TUH_WCH_USBIP_USBFS 1 + #endif + + #define TUP_DCD_ENDPOINT_MAX 8 + //--------------------------------------------------------------------+ // Analog Devices //--------------------------------------------------------------------+ |
