diff options
| author | Zixun LI <[email protected]> | 2026-05-19 22:12:28 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-05-19 22:12:28 +0200 |
| commit | 4c87db341e4af7d53ce9cbbdf693593a520dc538 (patch) | |
| tree | d5c6be4b83d44b42b8c9512e1cdc36261f945c31 /src/device/usbd.c | |
| parent | 90c0884c71a8a4efbdaf8b1e44fa260f6881231e (diff) | |
| parent | dad8c0ae51d68fd5355a8a0de4e478e4149ec05e (diff) | |
Merge pull request #3571 from sauloverissimo/feat/midi2-device-host-driver
feat: Add USB-MIDI 2.0 Device and Host class drivers
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 0e58f70bf..55ad330c1 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -254,6 +254,20 @@ static const usbd_class_driver_t _usbd_driver[] = { }, #endif + #if CFG_TUD_MIDI2 + { + .name = DRIVER_NAME("MIDI2"), + .init = midi2d_init, + .deinit = midi2d_deinit, + .open = midi2d_open, + .reset = midi2d_reset, + .control_xfer_cb = midi2d_control_xfer_cb, + .xfer_cb = midi2d_xfer_cb, + .xfer_isr = NULL, + .sof = NULL + }, + #endif + #if CFG_TUD_VENDOR { .name = DRIVER_NAME("VENDOR"), |
