diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-08-18 17:16:41 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-08-18 17:16:41 +0000 |
commit | 4871d5b035ec259cbdd28cab052af81db0b6679e (patch) | |
tree | e26dd44ed6aea1023dcffb2089f47635728d9ed4 /os/hal | |
parent | 5f6cca335a0a21a9b658787dd98e215461943f6d (diff) | |
download | ChibiOS-4871d5b035ec259cbdd28cab052af81db0b6679e.tar.gz ChibiOS-4871d5b035ec259cbdd28cab052af81db0b6679e.tar.bz2 ChibiOS-4871d5b035ec259cbdd28cab052af81db0b6679e.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4580 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/platforms/STM32/OTGv1/usb_lld.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/os/hal/platforms/STM32/OTGv1/usb_lld.c b/os/hal/platforms/STM32/OTGv1/usb_lld.c index e1f0ef833..40894a4c4 100644 --- a/os/hal/platforms/STM32/OTGv1/usb_lld.c +++ b/os/hal/platforms/STM32/OTGv1/usb_lld.c @@ -862,26 +862,26 @@ void usb_lld_start(USBDriver *usbp) { }
#endif
- /* Soft core reset.*/
- otg_core_reset(otgp);
-
- /* Internal FS PHY activation.*/
- otgp->GCCFG = GCCFG_PWRDWN;
-
/* - Forced device mode.
- USB turn-around time = TRDT_VALUE.
- Full Speed 1.1 PHY.*/
otgp->GUSBCFG = GUSBCFG_FDMOD | GUSBCFG_TRDT(TRDT_VALUE) | GUSBCFG_PHYSEL;
- /* Interrupts on TXFIFOs half empty.*/
- otgp->GAHBCFG = 0;
-
/* 48MHz 1.1 PHY.*/
- otgp->DCFG = 0x02200000 | DCFG_PFIVL(0) | DCFG_DSPD_FS11;
+ otgp->DCFG = 0x02200000 | DCFG_DSPD_FS11;
/* PHY enabled.*/
otgp->PCGCCTL = 0;
+ /* Soft core reset.*/
+ otg_core_reset(otgp);
+
+ /* Internal FS PHY activation.*/
+ otgp->GCCFG = GCCFG_PWRDWN;
+
+ /* Interrupts on TXFIFOs half empty.*/
+ otgp->GAHBCFG = 0;
+
/* Endpoints re-initialization.*/
otg_disable_ep(otgp);
|