/* Adds or subtracts one hour from the current time depending on the daylight saving parameter.  */
void RTC_DayLightSavingConfig(RTC_DayLightSaving_TypeDef RTC_DayLightSaving, RTC_StoreOperation_TypeDef RTC_StoreOperation)
/* Adds or subtracts one hour from the current time depending on the daylight saving parameter.  */
void RTC_DayLightSavingConfig(RTC_DayLightSaving_TypeDef RTC_DayLightSaving, RTC_StoreOperation_TypeDef RTC_StoreOperation)
{
  assert_param(IS_RTC_DAYLIGHT_SAVING(RTC_DayLightSaving));
  assert_param(IS_RTC_STORE_OPERATION(RTC_StoreOperation));
  RTC_WriteProtectionCmd(DISABLE);
  RTC->CR3 &= (uint8_t)~(RTC_CR3_BCK);
  RTC->CR3 |= (uint8_t)((uint8_t)RTC_DayLightSaving | (uint8_t)RTC_StoreOperation);
  RTC_WriteProtectionCmd(ENABLE);
}