diff options
| author | HiFiPhile <[email protected]> | 2025-10-11 16:53:35 +0200 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2025-10-11 16:53:35 +0200 |
| commit | b9b1c6432a7be43297afb0a75621ece5fc63f3a5 (patch) | |
| tree | cd7639e4b3a5782fb78f20a3b96f24d69577508c /src/device/usbd.c | |
| parent | e0a589cdcae6eaf790d05712a6f2b8c0352fb5fd (diff) | |
| parent | 2e29d1c60d119b2aa71e36d0c1ac2a383e333076 (diff) | |
Merge branch 'master' into dwc2_iso_incomp
Diffstat (limited to 'src/device/usbd.c')
| -rw-r--r-- | src/device/usbd.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index b1aef0b38..339ccf4b4 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -321,6 +321,20 @@ 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, + .xfer_isr = NULL, + .sof = NULL + }, + #endif }; enum { BUILTIN_DRIVER_COUNT = TU_ARRAY_SIZE(_usbd_driver) }; |
