summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorJeremiah McCarthy <[email protected]>2021-04-05 16:32:58 -0400
committerJeremiah McCarthy <[email protected]>2021-04-05 16:32:58 -0400
commitc5b8ef15299e9d5787602b39805efbb0ca385110 (patch)
tree9e20dc037d6d9b2601ec6363e9a42870a6167f44 /src/device
parent164d3e82e32e1039ba8e471fbc949699c396c9fe (diff)
Separate DFU RT and Mode. Untested
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 28c9acdd2..91838b39c 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -187,6 +187,18 @@ static usbd_class_driver_t const _usbd_driver[] =
},
#endif
+ #if CFG_TUD_DFU_MODE
+ {
+ DRIVER_NAME("DFU-MODE")
+ .init = dfu_mode_init,
+ .reset = dfu_mode_reset,
+ .open = dfu_mode_open,
+ .control_xfer_cb = dfu_mode_control_xfer_cb,
+ .xfer_cb = dfu_mode_xfer_cb,
+ .sof = NULL
+ },
+ #endif
+
#if CFG_TUD_NET
{
DRIVER_NAME("NET")