Lines Matching refs:RTC

253 		rtc_date = LL_RTC_DATE_Get(RTC);  in rtc_stm32_read()
257 rtc_time = LL_RTC_TIME_Get(RTC); in rtc_stm32_read()
258 rtc_subseconds = LL_RTC_TIME_GetSubSecond(RTC); in rtc_stm32_read()
259 } while (rtc_time != LL_RTC_TIME_Get(RTC)); in rtc_stm32_read()
261 rtc_time = LL_RTC_TIME_Get(RTC); in rtc_stm32_read()
264 } while (rtc_date != LL_RTC_DATE_Get(RTC)); in rtc_stm32_read()
310 rtc_time = LL_RTC_TIME_Get(RTC); in rtc_stm32_read()
421 LL_RTC_DisableWriteProtection(RTC); in rtc_stm32_set_alarm()
422 ll_func_disable_alarm(RTC); in rtc_stm32_set_alarm()
423 LL_RTC_EnableWriteProtection(RTC); in rtc_stm32_set_alarm()
425 if (ll_func_init_alarm(RTC, LL_RTC_FORMAT_BIN, &rtc_alarm) != SUCCESS) { in rtc_stm32_set_alarm()
429 LL_RTC_DisableWriteProtection(RTC); in rtc_stm32_set_alarm()
432 LL_RTC_ALMA_SetSubSecondMask(RTC, 0xF); in rtc_stm32_set_alarm()
433 LL_RTC_ALMA_SetSubSecond(RTC, RTC_SYNCPRE - alarm_val_ss); in rtc_stm32_set_alarm()
435 ll_func_enable_alarm(RTC); in rtc_stm32_set_alarm()
436 ll_func_clear_alarm_flag(RTC); in rtc_stm32_set_alarm()
437 ll_func_enable_interrupt_alarm(RTC); in rtc_stm32_set_alarm()
438 LL_RTC_EnableWriteProtection(RTC); in rtc_stm32_set_alarm()
466 LL_RTC_DisableWriteProtection(RTC); in rtc_stm32_cancel_alarm()
467 ll_func_clear_alarm_flag(RTC); in rtc_stm32_cancel_alarm()
468 ll_func_disable_interrupt_alarm(RTC); in rtc_stm32_cancel_alarm()
469 ll_func_disable_alarm(RTC); in rtc_stm32_cancel_alarm()
470 LL_RTC_EnableWriteProtection(RTC); in rtc_stm32_cancel_alarm()
480 return ll_func_is_active_alarm(RTC) != 0; in rtc_stm32_get_pending_int()
514 if (ll_func_is_active_alarm(RTC) != 0 in rtc_stm32_isr()
516 || (data->irq_on_late && ll_func_isenabled_interrupt_alarm(RTC)) in rtc_stm32_isr()
520 LL_RTC_DisableWriteProtection(RTC); in rtc_stm32_isr()
521 ll_func_clear_alarm_flag(RTC); in rtc_stm32_isr()
522 ll_func_disable_interrupt_alarm(RTC); in rtc_stm32_isr()
523 ll_func_disable_alarm(RTC); in rtc_stm32_isr()
524 LL_RTC_EnableWriteProtection(RTC); in rtc_stm32_isr()
591 if (LL_RTC_DeInit(RTC) != SUCCESS) { in rtc_stm32_init()
596 if (LL_RTC_Init(RTC, ((LL_RTC_InitTypeDef *) in rtc_stm32_init()
602 LL_RTC_DisableWriteProtection(RTC); in rtc_stm32_init()
603 LL_RTC_EnableShadowRegBypass(RTC); in rtc_stm32_init()
604 LL_RTC_EnableWriteProtection(RTC); in rtc_stm32_init()