1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00
LibrePilot/flight/pios/stm32f4xx
Stacey Sheldon 280f537644 f4 usb: ensure that we NAK on unused OUT endpoints
The ST USB code will automatically receive on any
endpoint that is opened but not in the NAK state.
Make sure we set OUT endpoints to NAK initially.

It also happily writes via a NULL pointer in ep->xfer_buff
which writes to address 0x0000_0000.  Since address
0x0 is aliased onto the internal flash by the BOOT0/1 pins
and the internal flash is (normally) in the LOCKED state,
this write puts the internal flash into an errored state.

This errored state means that writes to internal flash
are no longer allowed and all further writes fail.
2013-05-14 23:50:17 +02:00
..
inc Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
libraries Merge branch 'amorale/OP-917_f4_bootloader_updater' into next 2013-05-07 21:02:41 +02:00
library.mk OP-917 included a "compatibility" linker script used by the bootloader updater to ensure its compatibility with previous bootloader versions 2013-05-01 01:14:30 +02:00
link_stm32f4xx_bl_memory.ld Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
link_stm32f4xx_fw_memory.ld Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
link_stm32f4xx_sections_compat.ld OP-917 included a "compatibility" linker script used by the bootloader updater to ensure its compatibility with previous bootloader versions 2013-05-01 01:14:30 +02:00
link_stm32f4xx_sections.ld OP-917 relocate IRQStack to CCSRAM 2013-05-01 01:11:17 +02:00
pios_adc.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_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_exti.c Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_flash_internal.c Flash internal: writes optimization using 4 bytes parallelism 2013-05-11 22:04:47 +02:00
pios_gpio.c Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
pios_i2c.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_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_overo.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 Merge remote-tracking branch 'origin/next' into sambas/diffnext 2013-04-26 16:31:19 +03:00
pios_tim.c Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +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 Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
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.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 f4 usb: ensure that we NAK on unused OUT endpoints 2013-05-14 23:50:17 +02:00
pios_wdg.c Rename flight/PiOS->flight/pios 2013-04-25 13:13:41 +03:00
startup.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
vectors_stm32f4xx.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