feat: SPI flash driver (#4012)
Co-authored-by: Richard Li <richard.li@ces.hk>
This commit is contained in:
co-authored by
Richard Li
parent
7400a598a1
commit
cb16786a74
@@ -30,6 +30,9 @@
|
||||
#elif defined(STORAGE_USE_SDCARD_SPI)
|
||||
#include "diskio_spi.h"
|
||||
#define _STORAGE_DRIVER sdcard_spi_driver
|
||||
#elif defined(STORAGE_USE_SPI_FLASH)
|
||||
#include "diskio_spi_flash.h"
|
||||
#define _STORAGE_DRIVER spi_flash_diskio_driver
|
||||
#else
|
||||
#error "No supported storage driver configured"
|
||||
#endif
|
||||
@@ -62,6 +65,11 @@ void storageInit()
|
||||
}
|
||||
}
|
||||
|
||||
void storageDeInit()
|
||||
{
|
||||
fatfsUnregisterDrivers();
|
||||
}
|
||||
|
||||
void storagePreMountHook()
|
||||
{
|
||||
#if defined(DISK_CACHE)
|
||||
|
||||
Reference in New Issue
Block a user