1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00
LibrePilot/flight/pios
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
..
common flashfs: use uintptr_t instead of uint32_t in flashfs API 2013-05-08 19:42:01 +02:00
inc flashfs: use uintptr_t instead of uint32_t in flashfs API 2013-05-08 19:42:01 +02:00
osx Move flight/PiOS.osx->flight/pios/osx 2013-04-25 13:23:47 +03:00
posix OP-931: Makes flight code compile with -Wfloat-equal and -Wunsuffixed-float-constants enabled. 2013-04-30 20:36:42 +09:30
stm32f4xx f4 usb: ensure that we NAK on unused OUT endpoints 2013-05-14 23:50:17 +02:00
stm32f10x Internal flash settings for F1 2013-05-14 22:58:05 +02:00
win32 Move flight/PiOS.win32->flight/pios/win32 2013-04-25 13:19:06 +03:00
pios_sim_posix.h OP-931: Makes flight code compile with -Wfloat-equal and -Wunsuffixed-float-constants enabled. 2013-04-30 20:36:42 +09:30
pios.h pios.h: only include STM32xxx.h if particular STM32 MCU is defined 2013-05-03 20:25:48 +02:00