Level, Credits.
[hackover2013-badge-firmware.git] / sysinit.c
index 6d8d385..0385a21 100644 (file)
--- a/sysinit.c
+++ b/sysinit.c
 
   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
This page took 0.022593 seconds and 4 git commands to generate.