From 0023a97303eeaada945e1279b24cf21ef69d043d Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 18 Aug 2012 19:54:26 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4583 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/OTGv1/usb_lld.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'os') 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, -- cgit v1.2.3