Searched refs:RTC (Results 1 – 1 of 1) sorted by relevance
57 #define RTC ((struct StmRtc*)RTC_BASE) macro120 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 …]