X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/81ccc776bec25bb48917f651cc8e3b81022cd118..b2d84a4b240edc1e4e15793180529eacce45cec8:/sysinit.c diff --git a/sysinit.c b/sysinit.c index 6d8d385..0385a21 100644 --- a/sysinit.c +++ b/sysinit.c @@ -103,8 +103,16 @@ DWORD get_fattime () { - // ToDo! - return 0; + DWORD tmr = 0; + + // tmr = (((DWORD)rtcYear - 80) << 25) + // | ((DWORD)rtcMon << 21) + // | ((DWORD)rtcMday << 16) + // | (WORD)(rtcHour << 11) + // | (WORD)(rtcMin << 5) + // | (WORD)(rtcSec >> 1); + + return tmr; } #endif @@ -356,4 +364,4 @@ signed int printf(const char *pFormat, ...) return result; } -#endif \ No newline at end of file +#endif