summaryrefslogtreecommitdiffstats
path: root/app/dfu.c
diff options
context:
space:
mode:
authorroot <root@lamia.panaceas.james.local>2015-06-13 12:18:52 +0100
committerroot <root@lamia.panaceas.james.local>2015-06-13 12:18:52 +0100
commitbc9e93ad20f936c67d6acddb02d426783c32398e (patch)
treec4c128604c92298174cfcd3c1b07878d0ca35ac6 /app/dfu.c
parent500561f54adabc9aaf5b3548744b5bc8b4381c89 (diff)
downloadstm32_usb_kvm-bc9e93ad20f936c67d6acddb02d426783c32398e.tar.gz
stm32_usb_kvm-bc9e93ad20f936c67d6acddb02d426783c32398e.tar.bz2
stm32_usb_kvm-bc9e93ad20f936c67d6acddb02d426783c32398e.zip
add usb resume support
Diffstat (limited to 'app/dfu.c')
-rw-r--r--app/dfu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/dfu.c b/app/dfu.c
index 554aca9..2e0bbff 100644
--- a/app/dfu.c
+++ b/app/dfu.c
@@ -16,13 +16,13 @@ const struct usb_dfu_descriptor dfu_function = {
const struct usb_interface_descriptor dfu_iface = {
.bLength = USB_DT_INTERFACE_SIZE,
.bDescriptorType = USB_DT_INTERFACE,
- .bInterfaceNumber = 3,
+ .bInterfaceNumber = 4,
.bAlternateSetting = 0,
.bNumEndpoints = 0,
.bInterfaceClass = 0xFE,
.bInterfaceSubClass = 1,
.bInterfaceProtocol = 1,
- .iInterface = 0,
+ .iInterface = 9,
.extra = &dfu_function,
.extralen = sizeof (dfu_function),