M2M_T_RTC_RESULT m2m_rtc_set_alarm(M2M_T_RTC_DATE date, M2M_T_RTC_TIME time)
Description: the function sets a wake up alarm. On the expiration of the alarm timer, the control calls the M2M_onWakeUp (…) callback function contained in the M2M_hwEvents.c file, refer to document [1]. Be careful, the system supports one alarm at a time.
Parameters:
date: allocated data structure
filled with year/month/day;
time: allocated data structure filled with
hour/minute/second.
Return
value:
refer to
M2M_T_RTC_RESULT enum.