git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4583 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
bc810d5813
commit
0023a97303
|
@ -817,8 +817,6 @@ void usb_lld_init(void) {
|
||||||
void usb_lld_start(USBDriver *usbp) {
|
void usb_lld_start(USBDriver *usbp) {
|
||||||
stm32_otg_t *otgp = usbp->otg;
|
stm32_otg_t *otgp = usbp->otg;
|
||||||
|
|
||||||
usbp->txpending = 0;
|
|
||||||
|
|
||||||
if (usbp->state == USB_STOP) {
|
if (usbp->state == USB_STOP) {
|
||||||
/* Clock activation.*/
|
/* Clock activation.*/
|
||||||
#if STM32_USB_USE_OTG1
|
#if STM32_USB_USE_OTG1
|
||||||
|
@ -844,8 +842,9 @@ void usb_lld_start(USBDriver *usbp) {
|
||||||
}
|
}
|
||||||
#endif
|
#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.*/
|
created only once, the first time @p usbStart() is invoked.*/
|
||||||
|
usbp->txpending = 0;
|
||||||
if (usbp->thd_ptr == NULL)
|
if (usbp->thd_ptr == NULL)
|
||||||
usbp->thd_ptr = usbp->thd_wait = chThdCreateI(usbp->wa_pump,
|
usbp->thd_ptr = usbp->thd_wait = chThdCreateI(usbp->wa_pump,
|
||||||
sizeof usbp->wa_pump,
|
sizeof usbp->wa_pump,
|
||||||
|
|
Loading…
Reference in New Issue