Fixed some F105/F107 USB issues. Added user callback on SOF.

Made examples depend on lib.
This commit is contained in:
Gareth McMullin
2011-10-29 21:30:26 +13:00
parent f9a28a3d5e
commit b05a5dcf2a
7 changed files with 36 additions and 15 deletions

View File

@@ -300,6 +300,10 @@ static void stm32f103_poll(void)
_usbd_device.user_callback_resume();
}
if (istr & USB_ISTR_SOF)
if (istr & USB_ISTR_SOF) {
if (_usbd_device.user_callback_sof)
_usbd_device.user_callback_sof();
USB_CLR_ISTR_SOF();
}
}