AnsweredAssumed Answered

RTC_SetDate + RTC_SetTime race condition?

Question asked by reuter.mike on Jul 7, 2014
Can the standard peripheral library functions RTC_SetDate and RTC_SetTime be used sequentially without worrying about a date rollover between the two calls?  Reading the STM32L reference manual gives the impression that the RTC_ISR_INITF should be used to disable the RTC before setting the date and time and then enable the RTC again after.  However, RTC_SetDate and RTC_SetTime individually set/reset RTC_ISR_INITF, so there is no way to disable the RTC across both calls.  Am I missing something obvious?  Thanks.

Outcomes