diff options
| author | hathach <[email protected]> | 2026-03-06 15:11:59 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-03-06 15:11:59 +0700 |
| commit | 5838c7f09dda8921fe6f350871211f8bd5a97208 (patch) | |
| tree | cb2df6d43128316051842860e3ef1468fbbc489c /src/device | |
| parent | 558abb93af64eda51420d5bfe03355c89e4b421a (diff) | |
update printer class: enhance descriptors, buffer sizes, and callbacks
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h index c6e7d31c8..d3a6dccbb 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -331,21 +331,6 @@ bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_requ //--------------------------------------------------------------------+ -// Printer Descriptor Templates -//--------------------------------------------------------------------+ - -#define TUD_PRINTER_DESC_LEN (9 + 7 + 7) // one interface, two endpoints - -#define TUD_PRINTER_DESCRIPTOR(_itfnum, _stridx, _epout, _epin, _epsize) \ - /* Interface */\ - 9, TUSB_DESC_INTERFACE, _itfnum, 0, 2, TUSB_CLASS_PRINTER, 1, 2, _stridx,\ - /* Endpoint Out */\ - 7, TUSB_DESC_ENDPOINT, _epout, TUSB_XFER_BULK, U16_TO_U8S_LE(_epsize), 0,\ - /* Endpoint In */\ - 7, TUSB_DESC_ENDPOINT, _epin, TUSB_XFER_BULK, U16_TO_U8S_LE(_epsize), 0 - - -//--------------------------------------------------------------------+ // HID Descriptor Templates //--------------------------------------------------------------------+ |
