cancel
Showing results for 
Search instead for 
Did you mean: 

RTC_SetDate + RTC_SetTime race condition?

mreuter
Associate
Posted on July 07, 2014 at 17:44

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.

0 REPLIES 0