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:
parent
ee9e349feb
commit
b1604e8459
3 changed files with 37 additions and 4 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue