Home
last modified time | relevance | path

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

/hal_stm32-latest/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_hal_rtc.c706 uint32_t counter_time = 0U, counter_alarm = 0U; in HAL_RTC_SetTime() local
728 counter_time = (uint32_t)(((uint32_t)sTime->Hours * 3600U) + \ in HAL_RTC_SetTime()
738 counter_time = (((uint32_t)(RTC_Bcd2ToByte(sTime->Hours)) * 3600U) + \ in HAL_RTC_SetTime()
744 if (RTC_WriteTimeCounter(hrtc, counter_time) != HAL_OK) in HAL_RTC_SetTime()
765 if (counter_alarm < counter_time) in HAL_RTC_SetTime()
805 uint32_t counter_time = 0U, counter_alarm = 0U, days_elapsed = 0U, hours = 0U; in HAL_RTC_GetTime() local
823 counter_time = RTC_ReadTimeCounter(hrtc); in HAL_RTC_GetTime()
826 hours = counter_time / 3600U; in HAL_RTC_GetTime()
827 sTime->Minutes = (uint8_t)((counter_time % 3600U) / 60U); in HAL_RTC_GetTime()
828 sTime->Seconds = (uint8_t)((counter_time % 3600U) % 60U); in HAL_RTC_GetTime()
[all …]
Dstm32f1xx_ll_rtc.c224 uint32_t counter_time = 0U; in LL_RTC_TIME_Init() local
249 counter_time = (uint32_t)(((uint32_t)RTC_TimeStruct->Hours * 3600U) + \ in LL_RTC_TIME_Init()
252 LL_RTC_TIME_Set(RTCx, counter_time); in LL_RTC_TIME_Init()
256 counter_time = (((uint32_t)(__LL_RTC_CONVERT_BCD2BIN(RTC_TimeStruct->Hours)) * 3600U) + \ in LL_RTC_TIME_Init()
259 LL_RTC_TIME_Set(RTCx, counter_time); in LL_RTC_TIME_Init()