aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/other/usb_hid
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_hid
parentc11cdaf2a70a1fadbcf2f942a29b75040b0a0a75 (diff)
Abstracted USB driver interface to to allow driver selection.
Diffstat (limited to 'examples/stm32/other/usb_hid')
-rw-r--r--examples/stm32/other/usb_hid/usbhid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32/other/usb_hid/usbhid.c b/examples/stm32/other/usb_hid/usbhid.c
index 87ae10d..459ccbe 100644
--- a/examples/stm32/other/usb_hid/usbhid.c
+++ b/examples/stm32/other/usb_hid/usbhid.c
@@ -247,7 +247,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_register_set_config_callback(hid_set_config);
gpio_set(GPIOA, GPIO15);