aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/other/usb_dfu/usbdfu.c
diff options
context:
space:
mode:
authorGareth McMullin2011-01-30 17:04:56 +1300
committerGareth McMullin2011-01-30 17:04:56 +1300
commitaac65d8560a59105cc02132860b77cfe61835b2e (patch)
treeb65035dbe53137c8a7c8de60f6d198f1248155b6 /examples/stm32/other/usb_dfu/usbdfu.c
parentc11cdaf2a70a1fadbcf2f942a29b75040b0a0a75 (diff)
Abstracted USB driver interface to to allow driver selection.
Diffstat (limited to 'examples/stm32/other/usb_dfu/usbdfu.c')
-rw-r--r--examples/stm32/other/usb_dfu/usbdfu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32/other/usb_dfu/usbdfu.c b/examples/stm32/other/usb_dfu/usbdfu.c
index 7933377..4e83ce0 100644
--- a/examples/stm32/other/usb_dfu/usbdfu.c
+++ b/examples/stm32/other/usb_dfu/usbdfu.c
@@ -255,7 +255,7 @@ int main(void)
AFIO_MAPR |= AFIO_MAPR_SWJ_CFG_JTAG_OFF_SW_ON;
gpio_set_mode(GPIOA, GPIO_MODE_INPUT, 0, GPIO15);
- usbd_init(&dev, &config, usb_strings);
+ usbd_init(&stm32f103_usb_driver, &dev, &config, usb_strings);
usbd_set_control_buffer_size(sizeof(usbd_control_buffer));
usbd_register_control_callback(
USB_REQ_TYPE_CLASS | USB_REQ_TYPE_INTERFACE,