1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00
LibrePilot/flight/Libraries/FatFS/fattime.c
dankers d2c0dea556 Case Change for Libraries part 2.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@91 ebee16cc-31ac-478f-84a7-5cbb03baadba
2009-12-21 21:52:25 +00:00

21 lines
518 B
C

/* Gussy - 11/09 */
#include "integer.h"
#include "fattime.h"
DWORD get_fattime (void)
{
DWORD res;
/* For now proper timing is not implemented, the time below is the current time of writing, nothing special. */
/* Is the need arises, proper RTC time should be implemented. */
res = (((DWORD)2009 - 1980) << 25) //Year
| ((DWORD)11 << 21) //Month
| ((DWORD)26 << 16) //Day
| (WORD)(03 << 11) //Hour
| (WORD)(46 << 5) //Min
| (WORD)(25 >> 1); //Sec
return res;
}