Home
last modified time | relevance | path

Searched refs:RTC (Results 1 – 1 of 1) sorted by relevance

/device/google/contexthub/firmware/src/platform/stm32f4xx/
Drtc.c57 #define RTC ((struct StmRtc*)RTC_BASE) macro
120 RTC->WPR = 0xCA; in rtcSetDefaultDateTimeAndPrescalar()
121 RTC->WPR = 0x53; in rtcSetDefaultDateTimeAndPrescalar()
124 RTC->ISR |= RTC_ISR_INIT; in rtcSetDefaultDateTimeAndPrescalar()
128 while ((RTC->ISR & RTC_ISR_INITF) == 0); in rtcSetDefaultDateTimeAndPrescalar()
131 RTC->PRER = RTC_PREDIV_S; in rtcSetDefaultDateTimeAndPrescalar()
132 RTC->PRER |= (RTC_PREDIV_A << 16); in rtcSetDefaultDateTimeAndPrescalar()
133 RTC->CALR = (RTC_CALP << 15) | (RTC_CALM & 0x1FF); in rtcSetDefaultDateTimeAndPrescalar()
136 RTC->CR &= ~RTC_CR_FMT; in rtcSetDefaultDateTimeAndPrescalar()
139 RTC->CR |= RTC_CR_BYPSHAD; in rtcSetDefaultDateTimeAndPrescalar()
[all …]