1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00
LibrePilot/flight/PiOS/STM32F10x
Stacey Sheldon dab400c80d usb: decouple "available" from "cable connected"
The bootloader needs to understand whether the USB cable
is connected.  The HID and CDC drivers need to know if
the cable is connected _and_ the device has been enumerated
already.  Separate these two concepts in the API.

Combining these was resulting in the BL not properly
detecting that the cable was plugged in, and trying to boot
the firmware image immediately.  This effectively bricked
the board if you ever had an invalid firmware image.

It also happens to be the case that the BU images automatically
invalidate themselves after updating the BL so they don't run
again.  The cable detect bug + this intended behaviour of the
BU image resulted in a bricked board after upgrading the BL.
2012-05-22 00:21:24 -04:00
..
Libraries exti: rewrite exti layer to improve portability 2012-01-22 23:23:41 -05:00
link_stm32f10x_HD.ld Directory re-structuring. Doesn't compile yet, need to commit first. 2009-12-01 14:04:30 +00:00
link_stm32f10x_MD.ld build: convert all app loads to require bootloaders 2011-05-08 12:40:29 -04:00
link_STM3210E_OP_BL_sections.ld This patch breaks backward compatibility with AHRS solidly. 2011-09-01 12:21:33 -05:00
link_STM3210E_OP_memory.ld build: add pios_board_info_blob struct to bootloader flash image 2011-05-16 08:30:30 -04:00
link_STM3210E_OP_sections.ld bu: drop CC and PipX from BU targets since they don't build 2012-03-10 20:41:15 -05:00
link_STM32103CB_AHRS_BL_sections.ld build: remove all remaining use of -DUSE_BOOTLOADER 2011-05-23 18:21:42 -04:00
link_STM32103CB_AHRS_memory.ld build: add pios_board_info_blob struct to bootloader flash image 2011-05-16 08:30:30 -04:00
link_STM32103CB_AHRS_sections.ld link: Use alternate declaration of pios_board_info_blob 2011-05-23 18:21:42 -04:00
link_STM32103CB_CC_Rev1_BL_sections.ld makefile: Add EF (Entire Flash) targets for all boards 2012-02-03 00:59:36 -05:00
link_STM32103CB_CC_Rev1_memory.ld build: add pios_board_info_blob struct to bootloader flash image 2011-05-16 08:30:30 -04:00
link_STM32103CB_CC_Rev1_sections.ld Need more irq stack for CC3D 2012-01-24 19:48:52 -06:00
link_STM32103CB_PIPXTREME_BL_sections.ld build: remove all remaining use of -DUSE_BOOTLOADER 2011-05-23 18:21:42 -04:00
link_STM32103CB_PIPXTREME_memory.ld build: add support for EE bank on pipx boards 2011-05-24 01:10:40 -04:00
link_STM32103CB_PIPXTREME_sections.ld link: Use alternate declaration of pios_board_info_blob 2011-05-23 18:21:42 -04:00
pios_adc.c PiOS ADC: This could still use a lot of cleanup and needs to be implemented in 2012-05-01 11:11:31 -05:00
pios_bl_helper.c Move the bl_helper out of the common directory as it isn't 2011-12-24 13:10:23 -06:00
pios_debug.c Make PWM/PPM and Servo drivers play nicely together 2011-08-27 21:39:56 -04:00
pios_delay.c Pios Delay: Add function for measuring time difference between two cycle counts 2011-08-12 04:29:53 -05:00
pios_dsm.c spektrum: rename Spektrum to DSM (DSM2/DSMJ/DSMX used by Spektrum and JR radios) 2011-11-04 21:40:34 +02:00
pios_exti.c Merge branch 'next' into revolution3 2012-01-23 06:51:30 -06:00
pios_gpio.c Flight/PiOS: Whitespace changes 2010-09-27 07:28:45 +00:00
pios_i2c.c Merge branch 'next' into revolution3 2012-01-21 11:27:03 -06:00
pios_iap.c Get the right pios_iap.c from next 2012-01-24 09:23:07 -06:00
pios_irq.c Flight/PiOS: Whitespace changes 2010-09-27 07:28:45 +00:00
pios_led.c Update pios_led for F4 targets to match the new F1 implementation. Also fix 2012-01-25 22:50:19 -06:00
pios_ppm.c ppm: adjust min frame pulse width for 8ch x 18ms frames 2012-04-16 14:33:28 -04:00
pios_pwm.c Merge branch 'safer_failsafe' into next 2011-09-06 16:23:11 -05:00
pios_rtc.c rtc: allow registration of callbacks on RTC tick 2011-07-05 22:03:25 -04:00
pios_sbus.c sbus: better frame syncronization, some cosmetic changes 2011-10-22 00:44:09 +03:00
pios_servo.c Make PWM/PPM and Servo drivers play nicely together 2011-08-27 21:39:56 -04:00
pios_spi.c Switch the MPU6000 driver to using a FreeRTOS queue. Need to update Revo code 2012-04-03 02:07:03 -05:00
pios_sys.c serial: use defines for serial number lengths 2012-05-19 16:06:48 -04:00
pios_tim.c Mainboard: Get PWM working again. Had to add extra timer IRQ handlers for 2011-09-10 14:20:40 -05:00
pios_usart.c copyright: remove incorrect attribution in boilerplate text 2012-01-02 23:33:07 -05:00
pios_usb_cdc.c revo usb: Add support for USB to Revo 2012-02-07 02:25:31 -05:00
pios_usb_hid_istr.c usb cdc: USB composite device with HID + VCP 2011-12-30 23:05:33 -05:00
pios_usb_hid_pwr.c Flight/PiOS: Whitespace changes 2010-09-27 07:28:45 +00:00
pios_usb_hid.c revo usb: Add support for USB to Revo 2012-02-07 02:25:31 -05:00
pios_usb.c usb: decouple "available" from "cable connected" 2012-05-22 00:21:24 -04:00
pios_usbhook.c usb: remove run-time selectable device descriptors 2012-05-19 16:06:48 -04:00
pios_wdg.c PIOS/WDG: Add back the returned delay for code that wants to clear WDG more 2011-01-13 19:01:33 +00:00
startup_stm32f10x_HD_OP.S OP-423: Cleanup and remove recently added *_BL.S startup file. 2011-07-03 18:45:02 -07:00
startup_stm32f10x_HD.S OP-378: Tweak INS stack definition to avoid faults 2011-05-26 16:02:15 -05:00
startup_stm32f10x_MD_CC.S OP-423: Cleanup and remove recently added *_BL.S startup file. 2011-07-03 18:45:02 -07:00
startup_stm32f10x_MD.S Changes to PiOS to be compatible with the AHRS. 2010-05-11 13:36:13 +00:00