diff options
| author | Ha Thach <[email protected]> | 2025-12-10 12:01:44 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-10 12:01:44 +0700 |
| commit | 0e48fe862292bb7b3e526a4b42bfa588d97d105e (patch) | |
| tree | 4ea83670b3b486b30e1272e077d999f5f520ec01 /src/common/tusb_private.h | |
| parent | e9cd4d823fe4cd7de03587c57fc8288ad5711b15 (diff) | |
| parent | 919ee4b1527469e327710cff936366328f97294a (diff) | |
Merge pull request #3399 from hathach/size-reduce
edpt stream only support no fifo mode if needed
Diffstat (limited to 'src/common/tusb_private.h')
| -rw-r--r-- | src/common/tusb_private.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/tusb_private.h b/src/common/tusb_private.h index 8643bb020..0e9eef732 100644 --- a/src/common/tusb_private.h +++ b/src/common/tusb_private.h @@ -33,6 +33,18 @@ extern "C" { #endif +//--------------------------------------------------------------------+ +// Configuration +//--------------------------------------------------------------------+ + +#if CFG_TUD_ENABLED && CFG_TUD_VENDOR && (CFG_TUD_VENDOR_TX_BUFSIZE == 0 || CFG_TUD_VENDOR_RX_BUFSIZE == 0) + #define CFG_TUSB_EDPT_STREAM_NO_FIFO_ENABLED 1 +#endif + +#ifndef CFG_TUSB_EDPT_STREAM_NO_FIFO_ENABLED + #define CFG_TUSB_EDPT_STREAM_NO_FIFO_ENABLED 0 +#endif + #define TUP_USBIP_CONTROLLER_NUM 2 extern tusb_role_t _tusb_rhport_role[TUP_USBIP_CONTROLLER_NUM]; |
