diff options
| author | Maurizio Pesce <[email protected]> | 2025-03-12 09:50:04 +0100 |
|---|---|---|
| committer | roundby <[email protected]> | 2025-08-06 06:14:13 +0200 |
| commit | 283b06bb543f513d964dc3a6953115df897a93a1 (patch) | |
| tree | 4b8fe0783a64d6ca6157649bef0b35a8c0c5e324 /src/device/usbd.c | |
| parent | f01c4be350d21145162f4a3f283a298cd221f74d (diff) | |
Add MTP class device
Diffstat (limited to 'src/device/usbd.c')
| -rw-r--r-- | src/device/usbd.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index fb5cec49d..8f50d815f 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -309,6 +309,19 @@ tu_static usbd_class_driver_t const _usbd_driver[] = { .sof = NULL }, #endif + + #if CFG_TUD_MTP + { + .name = DRIVER_NAME("MTP"), + .init = mtpd_init, + .deinit = mtpd_deinit, + .reset = mtpd_reset, + .open = mtpd_open, + .control_xfer_cb = mtpd_control_xfer_cb, + .xfer_cb = mtpd_xfer_cb, + .sof = NULL + }, + #endif }; enum { BUILTIN_DRIVER_COUNT = TU_ARRAY_SIZE(_usbd_driver) }; |
