HPM SDK
HPMicro Software Development Kit
hpm_rtc_drv.c File Reference
#include "hpm_common.h"
#include "hpm_rtc_drv.h"

Functions

hpm_stat_t rtc_config_time (RTC_Type *base, time_t time)
 Configure the RTC time. More...
 
time_t rtc_get_time (RTC_Type *base)
 Get the time returned by RTC module. More...
 
struct timeval rtc_get_timeval (RTC_Type *base)
 Get accurate time return by RTC module. More...
 
hpm_stat_t rtc_config_alarm (RTC_Type *base, rtc_alarm_config_t *config)
 Configure RTC Alarm. More...