f7024cff78
* 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>
20 lines
318 B
C
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;
|
|
}
|