1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00
LibrePilot/flight/pios/stm32f10x
Stacey Sheldon e16be98224 usb cdc: ensure com buffer is drained when no DTE is attached
The CDC layer on F1, F3 and F4 now always acts like an
infinte data sink whenever *either* there is no DTE present
(ie. no terminal program listening) *or* the USB cable is
disconnected.

F1 and F4 were previously checking the cable but not the DTE.
F3 didn't check anything.  The COM layer didn't even ask the
lower layers.

All of this used to mean that any time a caller did a blocking
send to a CDC device without a DTE, it would eventually block
for up to a 5s timeout waiting for space in the Tx buffer.

Conflicts:
	flight/PiOS/STM32F30x/pios_usb_cdc.c
2013-05-11 22:40:58 +02:00
..
libraries Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
library.mk Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
link_stm32f10x_HD.ld Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
link_stm32f10x_MD.ld Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
link_STM3210E_OP_BL_sections.ld Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
link_STM3210E_OP_memory.ld Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
link_STM3210E_OP_sections.ld Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
link_STM32103CB_CC_Rev1_BL_sections.ld Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
link_STM32103CB_CC_Rev1_memory.ld Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
link_STM32103CB_CC_Rev1_sections.ld Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
link_STM32103CB_OPLINKMINI_BL_sections.ld Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
link_STM32103CB_OPLINKMINI_memory.ld Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
link_STM32103CB_OPLINKMINI_sections.ld Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_adc.c Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_bkp.c Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_bl_helper.c OP-917 Various review fixes: 2013-04-28 10:19:08 +02:00
pios_debug.c OP-931: adds -Wextra compiler option for the flight code, and makes the bazillion code changes required 2013-05-05 16:32:24 +09:30
pios_delay.c Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_dsm.c Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_eeprom.c OP-931: adds -Wextra compiler option for the flight code, and makes the bazillion code changes required 2013-05-05 16:32:24 +09:30
pios_exti.c Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_gpio.c Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_i2c.c Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_irq.c Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_led.c OP-931: adds -Wextra compiler option for the flight code, and makes the bazillion code changes required 2013-05-05 16:32:24 +09:30
pios_ppm_out.c OP-931: adds -Wextra compiler option for the flight code, and makes the bazillion code changes required 2013-05-05 16:32:24 +09:30
pios_ppm.c OP-931: adds -Wextra compiler option for the flight code, and makes the bazillion code changes required 2013-05-05 16:32:24 +09:30
pios_pwm.c OP-931: adds -Wextra compiler option for the flight code, and makes the bazillion code changes required 2013-05-05 16:32:24 +09:30
pios_rtc.c OP-931: Makes flight code compile with -Wfloat-equal and -Wunsuffixed-float-constants enabled. 2013-04-30 20:36:42 +09:30
pios_servo.c Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_spi.c OP-931: adds -Wextra compiler option for the flight code, and makes the bazillion code changes required 2013-05-05 16:32:24 +09:30
pios_sys.c OP-917 Moved all the flash architecture related code to pios_bl_helper, get the flash addresses from board defines, major cleanup. 2013-04-27 15:15:28 +02:00
pios_tim.c Merge remote-tracking branch 'origin/next' into sambas/diffnext 2013-04-26 16:31:19 +03:00
pios_usart.c OP-931: adds -Wextra compiler option for the flight code, and makes the bazillion code changes required 2013-05-05 16:32:24 +09:30
pios_usb_cdc.c usb cdc: ensure com buffer is drained when no DTE is attached 2013-05-11 22:40:58 +02:00
pios_usb_hid_istr.c Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usb_hid_pwr.c OP-931: adds -Wextra compiler option for the flight code, and makes the bazillion code changes required 2013-05-05 16:32:24 +09:30
pios_usb_hid.c OP-931: adds -Wextra compiler option for the flight code, and makes the bazillion code changes required 2013-05-05 16:32:24 +09:30
pios_usb_rctx.c Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usb.c OP-931: adds -Wextra compiler option for the flight code, and makes the bazillion code changes required 2013-05-05 16:32:24 +09:30
pios_usbhook.c OP-931: adds -Wextra compiler option for the flight code, and makes the bazillion code changes required 2013-05-05 16:32:24 +09:30
pios_wdg.c Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
startup_stm32f10x_HD_OP.S Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
startup_stm32f10x_HD.S Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
startup_stm32f10x_MD_CC.S Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
startup_stm32f10x_MD_PX.S Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
startup_stm32f10x_MD.S Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00