feat: SPI flash driver (#4012)

Co-authored-by: Richard Li <richard.li@ces.hk>
This commit is contained in:
Raphael Coeffic
2023-10-13 19:51:11 +10:00
committed by GitHub
co-authored by Richard Li
parent 7400a598a1
commit cb16786a74
17 changed files with 1977 additions and 31 deletions
+8
View File
@@ -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)