diff options
| author | hathach <[email protected]> | 2026-03-12 11:43:32 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-03-12 11:43:32 +0700 |
| commit | 78bbc7dc2e80daba79351bc37e11b13243fd6f8c (patch) | |
| tree | df6ac43639dedba3cbc235bfd33fba358cc9bd3d /src/common | |
| parent | d74559ab70c7c4804ee8cf65d9c65d910af06870 (diff) | |
refactor(config): separate endpoint buffer sizes into RX and TX definitions for clarity and flexibility
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h index 8a48a0f04..a18f9feb7 100644 --- a/src/common/tusb_types.h +++ b/src/common/tusb_types.h @@ -115,6 +115,10 @@ enum { TUSB_EPSIZE_ISO_HS_MAX = 1024, }; +// Endpoint Bulk size depending on host/device max speed +#define TUD_EPSIZE_BULK_MAX (TUD_OPT_HIGH_SPEED ? 512 : 64) +#define TUH_EPSIZE_BULK_MAX (TUH_OPT_HIGH_SPEED ? 512 : 64) + /// Isochronous Endpoint Attributes typedef enum { TUSB_ISO_EP_ATT_NO_SYNC = 0x00, |
