Bootload from SD card to sector 0, and jump to sector 24 where new firmware resides
Fork of Panel-Controller-Bootloader by
Diff: rtc.h
- Revision:
- 0:c3a652eff606
diff -r 000000000000 -r c3a652eff606 rtc.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rtc.h Tue Apr 21 09:30:11 2015 +0000 @@ -0,0 +1,21 @@ +#ifndef RTC_H_ + +#include <stdint.h> +#include <stdbool.h> + +typedef struct { + uint16_t year; /* 1..4095 */ + uint8_t month; /* 1..12 */ + uint8_t mday; /* 1.. 31 */ + uint8_t wday; /* 0..6, Sunday = 0*/ + uint8_t hour; /* 0..23 */ + uint8_t min; /* 0..59 */ + uint8_t sec; /* 0..59 */ + uint8_t dst; /* 0 Winter, !=0 Summer */ +} RTC_t; + +int rtc_init(void); +bool rtc_gettime (RTC_t*); /* Get time */ +bool rtc_settime (const RTC_t*); /* Set time */ + +#endif