Lines Matching refs:hrtc
66 RTC_HandleTypeDef hrtc; variable
258 hrtc.Instance = RTC; in MX_RTC_Init()
259 if(HAL_RTCEx_BKUPRead(&hrtc, RTC_BKP_DR0) != 0x32F2){ in MX_RTC_Init()
260 hrtc.Init.HourFormat = RTC_HOURFORMAT_24; in MX_RTC_Init()
261 hrtc.Init.AsynchPrediv = 127; in MX_RTC_Init()
262 hrtc.Init.SynchPrediv = 255; in MX_RTC_Init()
263 hrtc.Init.OutPut = RTC_OUTPUT_DISABLE; in MX_RTC_Init()
264 hrtc.Init.OutPutRemap = RTC_OUTPUT_REMAP_NONE; in MX_RTC_Init()
265 hrtc.Init.OutPutPolarity = RTC_OUTPUT_POLARITY_HIGH; in MX_RTC_Init()
266 hrtc.Init.OutPutType = RTC_OUTPUT_TYPE_OPENDRAIN; in MX_RTC_Init()
267 if (HAL_RTC_Init(&hrtc) != HAL_OK) in MX_RTC_Init()
279 if (HAL_RTC_SetTime(&hrtc, &sTime, RTC_FORMAT_BIN) != HAL_OK) in MX_RTC_Init()
289 if (HAL_RTC_SetDate(&hrtc, &sDate, RTC_FORMAT_BIN) != HAL_OK) in MX_RTC_Init()
294 HAL_RTCEx_BKUPWrite(&hrtc,RTC_BKP_DR0,0x32F2); in MX_RTC_Init()