projects
/
hackover2013-badge-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Booten in Titelbild.
[hackover2013-badge-firmware.git]
/
sysinit.c
diff --git
a/sysinit.c
b/sysinit.c
index
6d8d385
..
0385a21
100644
(file)
--- a/
sysinit.c
+++ b/
sysinit.c
@@
-103,8
+103,16
@@
DWORD get_fattime ()
{
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
}
#endif
@@
-356,4
+364,4
@@
signed int printf(const char *pFormat, ...)
return result;
}
return result;
}
-#endif
\ No newline at end of file
+#endif
This page took
0.019696 seconds
and
4
git commands to generate.