diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-04-06 11:45:05 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-04-06 11:45:05 +0000 |
commit | 4877499dfcc244728333b023db9e6f2adc16ecf9 (patch) | |
tree | 8c235e4545ed14b4c987b147aae1f20b2e1e6aae /os/hal/ports/STM32/LLD | |
parent | 9b9f9e6798d3b224670f90330d3f7a0c27ee2f81 (diff) | |
download | ChibiOS-4877499dfcc244728333b023db9e6f2adc16ecf9.tar.gz ChibiOS-4877499dfcc244728333b023db9e6f2adc16ecf9.tar.bz2 ChibiOS-4877499dfcc244728333b023db9e6f2adc16ecf9.zip |
Fixed bug #482.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6840 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD')
-rw-r--r-- | os/hal/ports/STM32/LLD/OTGv1/usb_lld.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c b/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c index 04bfefec2..9592656ff 100644 --- a/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c +++ b/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c @@ -754,6 +754,10 @@ void usb_lld_start(USBDriver *usbp) { rccEnableOTG_HS(FALSE);
rccResetOTG_HS();
+ /* Workaround for the problem described here:
+ http://forum.chibios.org/phpbb/viewtopic.php?f=16&t=1798 */
+ rccDisableOTG_HSULPI(TRUE);
+
/* Enables IRQ vector.*/
nvicEnableVector(STM32_OTG2_NUMBER, STM32_USB_OTG2_IRQ_PRIORITY);
}
|