17 #include "driverlib/sysctl.h"
18 #include "driverlib/hibernate.h"
22 if(HibernateIsActive() ==
false)
25 HibernateEnableExpClk(SysCtlClockGet());
31 HibernateClockConfig(HIBERNATE_OSC_HIGHDRIVE);
40 *time = HibernateRTCGet();
45 *time_ms = ((uint64_t)HibernateRTCGet() * 1000) + (((uint64_t)HibernateRTCSSGet() * 1000) / 32768);
50 HibernateRTCSet(*time);
55 uint64_t current_time_ms;
58 if(current_time_ms < start_time_ms || current_time_ms > (start_time_ms + period_ms))
void Delay_ms(uint32_t milliseconds)
void RTC_getTime(uint32_t *time)
void RTC_setTime(uint32_t *time)
bool RTC_timerElapsed_ms(uint64_t start_time_ms, uint64_t period_ms)
void RTC_getTime_ms(uint64_t *time_ms)