zephyr/subsys/usb
Savinay Dharmappa 0fb1a8a836 usb: class: dfu: Add a worker thread to flash data from usb to flash
The bulk of implementation in the current DFU arch is done in the ISR.
This works well when the Flash device is memory mapped as these writes
get done comparatively quickly. However, in case of platforms where
the flash device is sitting on the SPI Bus, this was observed to
cause an exception. This exception may be because there are multiple
function calls consuming larger processing time inside the ISR. The
ISR stack may also end up going deeper and risk stack corruption on
devices with low RAM. To resolve this, we deferred flash write to a
worker thread. Also, some handshaking was added to have synchronization
with the host in accordance with the Host-Device DFU protocol.

Signed-off-by: Savinay Dharmappa <savinay.dharmappa@intel.com>
2018-12-30 16:24:33 -05:00
..
class usb: class: dfu: Add a worker thread to flash data from usb to flash 2018-12-30 16:24:33 -05:00
bos.c logging: Fix errors in log usage 2018-11-10 12:38:29 -05:00
CMakeLists.txt usb: osdesc: Add MS OS Descriptors version 1 support 2018-07-12 23:10:22 -04:00
Kconfig usb: add SoF event 2018-11-23 09:18:41 -05:00
os_desc.c logging: Fix errors in log usage 2018-11-10 12:38:29 -05:00
os_desc.h usb: osdesc: Use definition for string descriptor index 2018-07-12 23:10:22 -04:00
usb_descriptor.c misra-c: Add 'U' to unsigned variable assignments in subsys/ 2018-12-04 22:51:56 -05:00
usb_descriptor.h usb: set SN string descriptor at runtime 2018-07-16 17:20:58 +02:00
usb_device.c misra-c: Add 'U' to unsigned variable assignments in subsys/ 2018-12-04 22:51:56 -05:00