diff options
| author | Ha Thach <[email protected]> | 2026-03-12 14:57:29 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-12 14:57:29 +0700 |
| commit | ac61a5b176b44db503d8bcc287a622463b65e48e (patch) | |
| tree | ffae5c864f88a540b1689763dbd7494b4ad29c8e /src/class/printer/printer_device.h | |
| parent | f2450788b13f8424b2f75e33240ed21329a875ad (diff) | |
| parent | 9e5345e70228153ab4efff6f6666c4e54471a4aa (diff) | |
Merge pull request #3487 from hathach/zlp-hs-on-fs
fix transfer length when high speed capable device/host working at full speed
Diffstat (limited to 'src/class/printer/printer_device.h')
| -rw-r--r-- | src/class/printer/printer_device.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/class/printer/printer_device.h b/src/class/printer/printer_device.h index a6b7052cb..afde1f022 100644 --- a/src/class/printer/printer_device.h +++ b/src/class/printer/printer_device.h @@ -27,12 +27,23 @@ #ifndef TUSB_PRINTER_DEVICE_H_ #define TUSB_PRINTER_DEVICE_H_ -#include "printer.h" - #ifdef __cplusplus extern "C" { #endif +#include "printer.h" + +//--------------------------------------------------------------------+ +// Configuration +//--------------------------------------------------------------------+ +#ifndef CFG_TUD_PRINTER_RX_EPSIZE + #define CFG_TUD_PRINTER_RX_EPSIZE TUD_EPSIZE_BULK_MAX +#endif + +#ifndef CFG_TUD_PRINTER_TX_EPSIZE + #define CFG_TUD_PRINTER_TX_EPSIZE TUD_EPSIZE_BULK_MAX +#endif + //--------------------------------------------------------------------+ // Application API (Multiple Ports) i.e. CFG_TUD_PRINTER > 1 //--------------------------------------------------------------------+ |
