38 static FATFS sdFileSystem;
58 LogPrint(
"SD card cannot be initialized.\n");
65 LogPrint(
"FatFs cannot be initialized.\n");
70 if (FR_OK != f_mount(&sdFileSystem, (TCHAR
const*)
sdPath, 1))
72 LogPrint(
"SD card cannot be mounted.\n");
82 (void)f_mount(NULL, (TCHAR
const*)
sdPath, 0);
83 (void)FATFS_UnLinkDriver(
sdPath);
const Diskio_drvTypeDef * SdDiskIoGetDriver(void)
Get a pointer to the SD card disk I/O driver structure containing the initialize, status,...
bool SdCardMount(void)
Mount the FatFs file system on the SD card by linking the disk I/O driver and mounting the default lo...
void SdCardUnMount(void)
Unmount the FatFs file system from the SD card and unlink the disk I/O driver.
void LogPrint(const char *format,...)
Print a formatted log message over the UART interface.
bool SdmmcInit(void)
Initialize the SDMMC peripheral and the SD card.
void SdmmcDeInit(void)
De-initialize the SDMMC peripheral.
This file contains the UART-based logging function prototypes for the debug output.
This file contains the SD card disk I/O driver interface for the FatFs middleware.
This file contains the SD card FatFs file system mount and unmount function prototypes.
This file contains the SDMMC peripheral driver function prototypes for SD card initialization,...