diff options
| author | Jie Feng <[email protected]> | 2026-06-10 18:25:08 +0800 |
|---|---|---|
| committer | Jie Feng <[email protected]> | 2026-07-19 19:24:40 +0800 |
| commit | 127dd2ca26dcba18d14e745bec4c1a69b55a2c01 (patch) | |
| tree | d53c3fd95ecb6f274fa56efd86f99cbc4fcf408e /src/common | |
| parent | 50f30773522d21bc599f00c18980ae651f780ff8 (diff) | |
add py32f0 support
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_mcu.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common/tusb_mcu.h b/src/common/tusb_mcu.h index 0959ac3a9..d599f89fb 100644 --- a/src/common/tusb_mcu.h +++ b/src/common/tusb_mcu.h @@ -703,6 +703,17 @@ #define TU_ATTR_FAST_FUNC __attribute__((section(".fast"))) +//--------------------------------------------------------------------+ +// Puya +//--------------------------------------------------------------------+ +#elif TU_CHECK_MCU(OPT_MCU_PY32F0) + #define TUP_USBIP_MUSB + #define TUP_USBIP_MUSB_PY32 + #define TUP_DCD_ENDPOINT_MAX 6 + // PY32 shares the buffer between IN and OUT of the same endpoint number. + // Possible to share IN/OUT if only one direction is armed at any one time + #define CFG_TUD_ENDPOINT_ONE_DIRECTION_ONLY 1 + #endif // External USB controller |
