From 8a8270d96b06be7c6aec0d99b080c6607b00450e Mon Sep 17 00:00:00 2001 From: Kevin Townsend Date: Sun, 25 Mar 2012 00:28:28 +0100 Subject: [PATCH] v1.0.0 --- .cproject | 2 +- .project | 2 +- build/crossworks/LPC1343_CodeBase.hzs | 10 ++++------ main.c | 1 + sysinit.c | 14 +++++++++++--- 5 files changed, 18 insertions(+), 11 deletions(-) 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 -- 2.20.1