From b05a5dcf2a2d5aa42e80cabf6aaf7a63133b5332 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Sat, 29 Oct 2011 21:30:26 +1300 Subject: Fixed some F105/F107 USB issues. Added user callback on SOF. Made examples depend on lib. --- lib/usb/usb_f103.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/usb/usb_f103.c') diff --git a/lib/usb/usb_f103.c b/lib/usb/usb_f103.c index 594d3c6..1c9a8ec 100644 --- a/lib/usb/usb_f103.c +++ b/lib/usb/usb_f103.c @@ -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(); + } } + -- cgit v1.2.3