crash when linking SD-modules. Static variable initialization?

This commit is contained in:
Markus Fröschle
2012-12-06 08:00:52 +00:00
parent f1120bb563
commit 99e9417752
6 changed files with 69 additions and 13 deletions

View File

@@ -348,6 +348,20 @@ typedef struct {
#endif
/*---------------------------------------------------------*/
/* User Provided Timer Function for FatFs module */
/*---------------------------------------------------------*/
DWORD get_fattime (void)
{
return ((DWORD)(2012 - 1980) << 25) /* Year = 2012 */
| ((DWORD)1 << 21) /* Month = 1 */
| ((DWORD)1 << 16) /* Day_m = 1*/
| ((DWORD)0 << 11) /* Hour = 0 */
| ((DWORD)0 << 5) /* Min = 0 */
| ((DWORD)0 >> 1); /* Sec = 0 */
}
/* Character code support macros */
#define IsUpper(c) (((c)>='A')&&((c)<='Z'))
#define IsLower(c) (((c)>='a')&&((c)<='z'))
@@ -4135,5 +4149,8 @@ int f_printf (
return (cc == EOF) ? cc : res;
}
#endif /* !_FS_READONLY */
#endif /* _USE_STRFUNC */