unleashed-firmware/firmware/targets/f7/fatfs/fatfs.c
Sergey Gavrilov f7024cff78
SD Driver: reinit sd card on error (#2493)
* SD Driver: reinit sd card on error
* SD Driver: cleanup fatfs bindings
* Storage: optimized glue
* Storage: move fatfs initialization to appropriate subsystems, minor code cleanup
* SD Driver: minor code cleanup

Co-authored-by: あく <alleteam@gmail.com>
2023-03-20 22:09:10 +09:00

20 lines
318 B
C

#include "fatfs.h"
/** logical drive path */
char fatfs_path[4];
/** File system object */
FATFS fatfs_object;
void fatfs_init(void) {
FATFS_LinkDriver(&sd_fatfs_driver, fatfs_path);
}
/**
* @brief Gets Time from RTC
* @param None
* @retval Time in DWORD
*/
DWORD get_fattime(void) {
return 0;
}