diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-08-18 19:54:26 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-08-18 19:54:26 +0000 |
commit | 0023a97303eeaada945e1279b24cf21ef69d043d (patch) | |
tree | 818009c5005fed20c1cfd1c585804b4d7ff37d4f /os/hal/platforms/STM32 | |
parent | bc810d5813f8c4038ef73e962df39510af3bc72b (diff) | |
download | ChibiOS-0023a97303eeaada945e1279b24cf21ef69d043d.tar.gz ChibiOS-0023a97303eeaada945e1279b24cf21ef69d043d.tar.bz2 ChibiOS-0023a97303eeaada945e1279b24cf21ef69d043d.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4583 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32')
-rw-r--r-- | os/hal/platforms/STM32/OTGv1/usb_lld.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/os/hal/platforms/STM32/OTGv1/usb_lld.c b/os/hal/platforms/STM32/OTGv1/usb_lld.c index 5d7e75fc6..189cb1636 100644 --- a/os/hal/platforms/STM32/OTGv1/usb_lld.c +++ b/os/hal/platforms/STM32/OTGv1/usb_lld.c @@ -817,8 +817,6 @@ void usb_lld_init(void) { void usb_lld_start(USBDriver *usbp) {
stm32_otg_t *otgp = usbp->otg;
- usbp->txpending = 0;
-
if (usbp->state == USB_STOP) {
/* Clock activation.*/
#if STM32_USB_USE_OTG1
@@ -844,8 +842,9 @@ void usb_lld_start(USBDriver *usbp) { }
#endif
- /* Creates the hauler threads in a suspended state. Note, it is
+ /* Creates the data pump threads in a suspended state. Note, it is
created only once, the first time @p usbStart() is invoked.*/
+ usbp->txpending = 0;
if (usbp->thd_ptr == NULL)
usbp->thd_ptr = usbp->thd_wait = chThdCreateI(usbp->wa_pump,
sizeof usbp->wa_pump,
|