Fixed bug #436.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6405 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
6e9303ee9c
commit
4c4a95172c
|
@ -128,11 +128,15 @@ static void usb_lld_wakeup_pump(USBDriver *usbp) {
|
||||||
static void otg_core_reset(USBDriver *usbp) {
|
static void otg_core_reset(USBDriver *usbp) {
|
||||||
stm32_otg_t *otgp = usbp->otg;
|
stm32_otg_t *otgp = usbp->otg;
|
||||||
|
|
||||||
|
halPolledDelay(32);
|
||||||
|
|
||||||
/* Core reset and delay of at least 3 PHY cycles.*/
|
/* Core reset and delay of at least 3 PHY cycles.*/
|
||||||
otgp->GRSTCTL = GRSTCTL_CSRST;
|
otgp->GRSTCTL = GRSTCTL_CSRST;
|
||||||
while ((otgp->GRSTCTL & GRSTCTL_CSRST) != 0)
|
while ((otgp->GRSTCTL & GRSTCTL_CSRST) != 0)
|
||||||
;
|
;
|
||||||
|
|
||||||
halPolledDelay(12);
|
halPolledDelay(12);
|
||||||
|
|
||||||
/* Wait AHB idle condition.*/
|
/* Wait AHB idle condition.*/
|
||||||
while ((otgp->GRSTCTL & GRSTCTL_AHBIDL) == 0)
|
while ((otgp->GRSTCTL & GRSTCTL_AHBIDL) == 0)
|
||||||
;
|
;
|
||||||
|
|
|
@ -89,6 +89,8 @@
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
|
|
||||||
*** 2.7.0 ***
|
*** 2.7.0 ***
|
||||||
|
- FIX: Fixed timing issue in the STM32 OTGv1 USB driver (bug #436)(backported
|
||||||
|
to 2.6.2).
|
||||||
- FIX: Fixed possible unalignment in GCC Cortex-M scatter files (bug #430)
|
- FIX: Fixed possible unalignment in GCC Cortex-M scatter files (bug #430)
|
||||||
(backported to 2.6.2 and 2.4.6).
|
(backported to 2.6.2 and 2.4.6).
|
||||||
- FIX: Fixed PAL driver documentation error (bug #427)(backported to 2.6.1
|
- FIX: Fixed PAL driver documentation error (bug #427)(backported to 2.6.1
|
||||||
|
|
Loading…
Reference in New Issue