Refactor common USB MSC code and improve activity LED
commit04844bd5a1f46d877feac07331df8aea8d75e7ab
authorBruce Luckcuck <github@etracer.net>
Sun, 1 Dec 2019 15:22:59 +0000 (1 10:22 -0500)
committerBruce Luckcuck <github@etracer.net>
Tue, 3 Dec 2019 03:08:19 +0000 (2 22:08 -0500)
tree1bb7f8b70b5430af49a53aae2921a6e0e3b1319d
parent4ed9382b93d048bfe8420f4abc16c7431f5709ff
Refactor common USB MSC code and improve activity LED
Eliminated the duplicated MSC functions in the architecture specific files and moved to a shared common.

Improved the activity indicating LED and made it consistent between onboard flash and sd card mass storage mode.
12 files changed:
make/mcu/STM32F4.mk
make/mcu/STM32F7.mk
make/mcu/STM32H7.mk
src/main/drivers/usb_msc.h
src/main/drivers/usb_msc_common.c [copied from src/main/drivers/usb_msc_f4xx.c with 71% similarity]
src/main/drivers/usb_msc_f4xx.c
src/main/drivers/usb_msc_f7xx.c
src/main/fc/init.c
src/main/msc/emfat_file.c
src/main/msc/usbd_storage_emfat.c
src/main/msc/usbd_storage_sd_spi.c
src/main/msc/usbd_storage_sdio.c