Fixed bug #482.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6841 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
6b063bc396
commit
aeb912eb7c
|
@ -861,6 +861,10 @@ void usb_lld_start(USBDriver *usbp) {
|
||||||
rccEnableOTG_HS(FALSE);
|
rccEnableOTG_HS(FALSE);
|
||||||
rccResetOTG_HS();
|
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.*/
|
/* Enables IRQ vector.*/
|
||||||
nvicEnableVector(STM32_OTG2_NUMBER,
|
nvicEnableVector(STM32_OTG2_NUMBER,
|
||||||
CORTEX_PRIORITY_MASK(STM32_USB_OTG2_IRQ_PRIORITY));
|
CORTEX_PRIORITY_MASK(STM32_USB_OTG2_IRQ_PRIORITY));
|
||||||
|
|
|
@ -664,6 +664,24 @@
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
#define rccResetOTG_HS() rccResetAHB1(RCC_AHB1RSTR_OTGHSRST)
|
#define rccResetOTG_HS() rccResetAHB1(RCC_AHB1RSTR_OTGHSRST)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the OTG_HS peripheral clock.
|
||||||
|
*
|
||||||
|
* @param[in] lp low power enable flag
|
||||||
|
*
|
||||||
|
* @api
|
||||||
|
*/
|
||||||
|
#define rccEnableOTG_HSULPI(lp) rccEnableAHB1(RCC_AHB1ENR_OTGHSULPIEN, lp)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Disables the OTG_HS peripheral clock.
|
||||||
|
*
|
||||||
|
* @param[in] lp low power enable flag
|
||||||
|
*
|
||||||
|
* @api
|
||||||
|
*/
|
||||||
|
#define rccDisableOTG_HSULPI(lp) rccDisableAHB1(RCC_AHB1ENR_OTGHSULPIEN, lp)
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -89,6 +89,8 @@
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
|
|
||||||
*** 2.7.0 ***
|
*** 2.7.0 ***
|
||||||
|
- FIX: Fixed OTG HS failure when WFI instruction is enabled (bug #482)
|
||||||
|
(backported to 2.6.4).
|
||||||
- FIX: Fixed wrong STM32F4 TIM6 vector number symbol (bug #480)
|
- FIX: Fixed wrong STM32F4 TIM6 vector number symbol (bug #480)
|
||||||
(backported to 2.6.4).
|
(backported to 2.6.4).
|
||||||
- FIX: Fixed problem in STM32 SDADC driver initialization (bug #479)
|
- FIX: Fixed problem in STM32 SDADC driver initialization (bug #479)
|
||||||
|
|
Loading…
Reference in New Issue