diff options
| author | Zixun LI <[email protected]> | 2026-07-19 22:20:09 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-07-19 22:20:09 +0200 |
| commit | 2555891761f771bd87504574c48096eb2d07c985 (patch) | |
| tree | c8d936281847d5fd9e7185fe898ea1538a6367bf /src/common | |
| parent | 52e6ab7704ce2e57f41f70d6ba2bc5470c4b56c7 (diff) | |
| parent | b00b40da28285f67efd652e20cfe3877d42d2ff3 (diff) | |
Merge pull request #3694 from rhgndf/py32f0
Puya PY32F07x 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 |
