From: Kevin Townsend Date: Sat, 24 Mar 2012 23:28:28 +0000 (+0100) Subject: v1.0.0 X-Git-Url: http://git.rohieb.name/hackover2013-badge-firmware.git/commitdiff_plain/8a8270d96b06be7c6aec0d99b080c6607b00450e?ds=inline v1.0.0 --- diff --git a/.cproject b/.cproject index 3d04d01..972f2bf 100644 --- a/.cproject +++ b/.cproject @@ -160,7 +160,7 @@ - + <?xml version="1.0" encoding="UTF-8"?> diff --git a/.project b/.project index 64d7eb7..25d4b59 100644 --- a/.project +++ b/.project @@ -1,6 +1,6 @@ - LPC1343_CodeBase_GIT + LPC1343_CodeBase diff --git a/build/crossworks/LPC1343_CodeBase.hzs b/build/crossworks/LPC1343_CodeBase.hzs index 8676df3..7de72dc 100644 --- a/build/crossworks/LPC1343_CodeBase.hzs +++ b/build/crossworks/LPC1343_CodeBase.hzs @@ -24,8 +24,6 @@ - - @@ -45,10 +43,10 @@ - - - + + + @@ -61,7 +59,7 @@ - + diff --git a/main.c b/main.c index b4e63e7..8ca68e0 100644 --- a/main.c +++ b/main.c @@ -36,6 +36,7 @@ #include #include #include +#include #include "projectconfig.h" #include "sysinit.h" 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