![]() |
LPCOpen Platform for LPC112X microcontrollers
112X
LPCOpen Platform for the NXP LPC112X family of Microcontrollers
|
#include "rtc_ut.h"
Go to the source code of this file.
Macros | |
#define | SECSPERMIN (60) |
#define | MINSPERHOUR (60) |
#define | SECSPERHOUR (SECSPERMIN * MINSPERHOUR) |
#define | HOURSPERDAY (24) |
#define | SECSPERDAY (SECSPERMIN * MINSPERHOUR * HOURSPERDAY) |
#define | DAYSPERWEEK (7) |
#define | MONETHSPERYEAR (12) |
#define | DAYSPERYEAR (365) |
#define | DAYSPERLEAPYEAR (366) |
Functions | |
static void | GetDMLY (int dayOff, struct tm *pTime) |
void | ConvertRtcTime (uint32_t rtcTick, struct tm *pTime) |
Converts a RTC tick time to Universal time. More... | |
void | ConvertTimeRtc (struct tm *pTime, uint32_t *rtcTick) |
Converts a Universal time to RTC tick time. More... | |
Variables | |
static uint8_t | daysPerMonth [2][MONETHSPERYEAR] |
#define SECSPERDAY (SECSPERMIN * MINSPERHOUR * HOURSPERDAY) |
#define SECSPERHOUR (SECSPERMIN * MINSPERHOUR) |
|
static |
|
static |