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/class/printer/printer_device.h | |
| parent | d74559ab70c7c4804ee8cf65d9c65d910af06870 (diff) | |
refactor(config): separate endpoint buffer sizes into RX and TX definitions for clarity and flexibility
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 //--------------------------------------------------------------------+ |
