Searched refs:counter_alarm (Results 1 – 2 of 2) sorted by relevance
705 uint32_t counter_time = 0U, counter_alarm = 0U; in HAL_RTC_SetTime() local759 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() local838 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 …]
300 uint32_t counter_alarm = 0U; in LL_RTC_ALARM_Init() local324 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()331 …counter_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()