diff options
| author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-08-19 07:54:09 +0000 | 
|---|---|---|
| committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-08-19 07:54:09 +0000 | 
| commit | 0ba641f9b42c33833111cd2020b49e3a6f353772 (patch) | |
| tree | fd98510a3fae6aeb04ee3e63d54fcf1147039788 /os | |
| parent | 851416ea9cb814044005167a1cfefb5704bc33d8 (diff) | |
| download | ChibiOS-0ba641f9b42c33833111cd2020b49e3a6f353772.tar.gz ChibiOS-0ba641f9b42c33833111cd2020b49e3a6f353772.tar.bz2 ChibiOS-0ba641f9b42c33833111cd2020b49e3a6f353772.zip | |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4585 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
| -rw-r--r-- | os/hal/platforms/STM32/OTGv1/usb_lld.c | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/os/hal/platforms/STM32/OTGv1/usb_lld.c b/os/hal/platforms/STM32/OTGv1/usb_lld.c index 876c982cd..6b8a0a76e 100644 --- a/os/hal/platforms/STM32/OTGv1/usb_lld.c +++ b/os/hal/platforms/STM32/OTGv1/usb_lld.c @@ -100,15 +100,14 @@ static const USBEndpointConfig ep0config = {  static void otg_core_reset(stm32_otg_t *otgp) {
 -  /* Wait AHB idle condition.*/
 -  while ((otgp->GRSTCTL & GRSTCTL_AHBIDL) == 0)
 -    ;
 -  halPolledDelay(12);
    /* Core reset and delay of at least 3 PHY cycles.*/
    otgp->GRSTCTL = GRSTCTL_CSRST;
    while ((otgp->GRSTCTL & GRSTCTL_CSRST) != 0)
      ;
    halPolledDelay(12);
 +  /* Wait AHB idle condition.*/
 +  while ((otgp->GRSTCTL & GRSTCTL_AHBIDL) == 0)
 +    ;
  }
  static void otg_disable_ep(stm32_otg_t *otgp) {
 | 
