Bootload from SD card to sector 0, and jump to sector 24 where new firmware resides
Fork of Panel-Controller-Bootloader by
fattime.c
- Committer:
- bonchenko
- Date:
- 2015-04-22
- Revision:
- 2:0fa89ba8f6fe
- Parent:
- 0:c3a652eff606
File content as of revision 2:0fa89ba8f6fe:
/* Martin Thomas 4/2009 */ #include "integer.h" #include "fattime.h" #include "rtc.h" DWORD get_fattime (void) { DWORD res; RTC_t rtc; rtc_gettime( &rtc ); res = (((DWORD)rtc.year - 1980) << 25) | ((DWORD)rtc.month << 21) | ((DWORD)rtc.mday << 16) | (WORD)(rtc.hour << 11) | (WORD)(rtc.min << 5) | (WORD)(rtc.sec >> 1); return res; }