summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-10-12 22:47:52 +0700
committerGitHub <[email protected]>2021-10-12 22:47:52 +0700
commit2ba690d31df6e2908cb683494171aa3739bd8991 (patch)
treea457364337eed1c0ad3bd01433ecf48d9d99015e /src/device
parentecec0370cac2a64ef2a0cf2e4e13f1c4e738e81b (diff)
parent379537cb6deed9c9c055d0fd34d9a941f47ffc02 (diff)
Merge pull request #1118 from kkitayam/add_uvc
Add Video class
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index ab1837895..7be41172b 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -143,6 +143,18 @@ static usbd_class_driver_t const _usbd_driver[] =
},
#endif
+ #if CFG_TUD_VIDEO
+ {
+ DRIVER_NAME("VIDEO")
+ .init = videod_init,
+ .reset = videod_reset,
+ .open = videod_open,
+ .control_xfer_cb = videod_control_xfer_cb,
+ .xfer_cb = videod_xfer_cb,
+ .sof = NULL
+ },
+ #endif
+
#if CFG_TUD_MIDI
{
DRIVER_NAME("MIDI")