Major refactor of RTC-related code
This commit is contained in:
@@ -1,6 +1,23 @@
|
||||
#ifndef __TIME_H__
|
||||
#define __TIME_H__
|
||||
|
||||
#define TIME_2_INT(TIME) ((TIME).hour*60 + (TIME).minute)
|
||||
|
||||
struct DATE_YMDW
|
||||
{
|
||||
uint16_t year;
|
||||
uint8_t month;
|
||||
uint8_t day;
|
||||
uint8_t weekday;
|
||||
};
|
||||
|
||||
struct DATE_YMD
|
||||
{
|
||||
uint16_t year;
|
||||
uint8_t month;
|
||||
uint8_t day;
|
||||
};
|
||||
|
||||
struct TIME_HMS
|
||||
{
|
||||
uint8_t hour;
|
||||
|
||||
Reference in New Issue
Block a user