tickstart =HAL_GetTick();/* Wait till RTC is in INIT state and if Time out is reached exit */while((READ_BIT(hrtc->Instance->ISR, RTC_ISR_INITF)==0U)&&(status != HAL_TIMEOUT)){if((HAL_GetTick()- tickstart)> RTC_TIMEOUT_VALUE){status = HAL_TIMEOUT;hrtc->State = HAL_RTC_STATE_TIMEOUT;}