Home
last modified time | relevance | path

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

/hal_stm32-3.5.0/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_hal_rtc.c705 uint32_t counter_time = 0U, counter_alarm = 0U; in HAL_RTC_SetTime() local
759 counter_alarm = RTC_ReadAlarmCounter(hrtc); in HAL_RTC_SetTime()
762 if (counter_alarm != RTC_ALARM_RESETVALUE) in HAL_RTC_SetTime()
764 if (counter_alarm < counter_time) in HAL_RTC_SetTime()
767 counter_alarm += (uint32_t)(24U * 3600U); in HAL_RTC_SetTime()
770 if (RTC_WriteAlarmCounter(hrtc, counter_alarm) != HAL_OK) in HAL_RTC_SetTime()
804 uint32_t counter_time = 0U, counter_alarm = 0U, days_elapsed = 0U, hours = 0U; in HAL_RTC_GetTime() local
838 counter_alarm = RTC_ReadAlarmCounter(hrtc); in HAL_RTC_GetTime()
841 if ((counter_alarm != RTC_ALARM_RESETVALUE) && (counter_alarm > counter_time)) in HAL_RTC_GetTime()
843 counter_alarm -= counter_time; in HAL_RTC_GetTime()
[all …]
Dstm32f1xx_ll_rtc.c300 uint32_t counter_alarm = 0U; in LL_RTC_ALARM_Init() local
324 counter_alarm = (uint32_t)(((uint32_t)RTC_AlarmStruct->AlarmTime.Hours * 3600U) + \ in LL_RTC_ALARM_Init()
327 LL_RTC_ALARM_Set(RTCx, counter_alarm); in LL_RTC_ALARM_Init()
331counter_alarm = (((uint32_t)(__LL_RTC_CONVERT_BCD2BIN(RTC_AlarmStruct->AlarmTime.Hours)) * 3600U) … in LL_RTC_ALARM_Init()
334 LL_RTC_ALARM_Set(RTCx, counter_alarm); in LL_RTC_ALARM_Init()