1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-12 19:10:32 +03:00

AT32F435 SD card support (#14018)

Support either USE_FLASH or USE_SDCARD on AT32F435
This commit is contained in:
Steve Evans 2025-01-02 19:04:58 +00:00 committed by GitHub
parent ee9e349feb
commit b1604e8459
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 37 additions and 4 deletions

View file

@ -23,6 +23,7 @@
*/
#include "msc_bot_scsi.h"
#include "msc_diskio.h"
#include "usbd_msc_mem.h"
/** @addtogroup AT32F435_437_middlewares_usbd_class
* @{
@ -112,6 +113,8 @@ void bot_scsi_init(void *udev)
pmsc->csw_struct.dCSWSignature = 0;
pmsc->csw_struct.dCSWTag = CSW_BCSWSTATUS_PASS;
USBD_STORAGE_fops->Init(0);
usbd_flush_tx_fifo(pudev, USBD_MSC_BULK_IN_EPT&0x7F);
/* set out endpoint to receive status */