summaryrefslogtreecommitdiff
path: root/src/device/usbd.c
diff options
context:
space:
mode:
authorRémi Berthoz <[email protected]>2026-01-04 16:55:43 +0100
committerRémi Berthoz <[email protected]>2026-01-04 16:55:43 +0100
commitcab1b2f6f741ea151e87f139b2115d5234228bbd (patch)
tree6dc6919379d01d30b5df91619f56e8c8e855e6bd /src/device/usbd.c
parent3eafddb02a3347873dc1816f53b428518eb97c61 (diff)
Implement Printer Device Class
Diffstat (limited to 'src/device/usbd.c')
-rw-r--r--src/device/usbd.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 1e21c667a..32b3a3ee2 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -334,6 +334,19 @@ static const usbd_class_driver_t _usbd_driver[] = {
.sof = NULL
},
#endif
+
+ #if CFG_TUD_PRINTER
+ {
+ .name = DRIVER_NAME("PRINTER"),
+ .init = printerd_init,
+ .deinit = printerd_deinit,
+ .reset = printerd_reset,
+ .open = printerd_open,
+ .control_xfer_cb = printerd_control_xfer_cb,
+ .xfer_cb = printerd_xfer_cb,
+ .sof = NULL
+ },
+ #endif
};
enum { BUILTIN_DRIVER_COUNT = TU_ARRAY_SIZE(_usbd_driver) };