1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00
LibrePilot/flight/pios/inc
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
..
pios_adc_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_adc.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_adxl345.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_bkp.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_bl_helper.h OP-917 Various review fixes: 2013-04-28 10:19:08 +02:00
pios_bma180.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_bmp085.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_board_info.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_com_msg_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_com_msg.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_com_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_com.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_constants.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_crc.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_debug.h Merge branch 'hyper/OP-913-flight-uavo-alignment' into next 2013-04-27 18:19:01 +09:30
pios_delay.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_dsm_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_dsm.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_eeprom.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_etasv3.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_exti.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_flash_internal_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_flash_jedec_catalog.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_flash_jedec_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_flash.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_flashfs_logfs_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_flashfs.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_gcsrcvr_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_gpio.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_hcsr04_priv.h Fix directory name case for merged sambas/diffnext 2013-04-26 17:07:44 +03:00
pios_hcsr04.h Merge remote-tracking branch 'origin/next' into sambas/diffnext 2013-04-26 16:31:19 +03:00
pios_helpers.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_hmc5843.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_hmc5883.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_i2c_esc.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_i2c_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_i2c.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_iap.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_initcall.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_irq.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_l3gd20.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_led_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_led.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_math.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_mpu6000_config.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_mpu6000.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_mpxv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_ms5611.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_overo_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_overo.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_posix.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_ppm_out_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_ppm_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_ppm.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_pwm_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_pwm.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_rcvr_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_rcvr.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_rfm22b_com.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_rfm22b_priv.h OP-932: Fixes a bug that was preventing setting of Tx power on remote modem. 2013-05-06 01:03:15 +01:00
pios_rfm22b_rcvr.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_rfm22b.h OP-932: Continued cleanup and modularization of the RFM22B radio code. Low-level radio driver has mostly been split out of the higher-level state machine. 2013-05-01 03:14:23 +01:00
pios_rtc_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_rtc.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_sbus_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_sbus.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_sdcard.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_servo_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_servo.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_spi_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_spi.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_stm32.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_struct_helper.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_sys.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_task_monitor.h OP-936: Moves the task monitor code out of the flight library and into PiOS. 2013-05-03 07:01:14 +09:30
pios_tim_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_tim.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_udp_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_udp.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usart_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usart.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usb_board_data_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usb_cdc_priv.h usb cdc: ensure com buffer is drained when no DTE is attached 2013-05-11 22:40:58 +02:00
pios_usb_defs.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usb_desc_hid_cdc_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usb_desc_hid_only_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usb_hid_istr.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usb_hid_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usb_hid_pwr.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usb_hid.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usb_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usb_rctx_priv.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usb_rctx.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usb_util.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usb.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_usbhook.h usbhook: make ctrl endpoint OUT treat request as const 2013-05-11 22:38:25 +02:00
pios_video.h Merge remote-tracking branch 'origin/next' into sambas/diffnext 2013-04-26 16:31:19 +03:00
pios_wavplay.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_wdg.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
stm32f2xx_conf.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
stm32f4xx_conf.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
stm32f10x_conf.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
usb_conf.h Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00