mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-23 19:23:09 +00:00
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>
19 lines
318 B
C
19 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;
|
|
}
|