STM32L071 - RTC ISR flags clearing
In the following HAL function, RTC ISR register is cleared by "Read/Modify/Write" instruction.
Couldn't this cause eventual clearing of the ISR flags which may be raised by RTC periphery between "load" AND "store" ?
If somebody can confirm that such situation may happen, wouldn't be safer solution to rather write all other bits to "1", since ISR register has only of read-only or clear-only bits or reserved bits?
AL_StatusTypeDef HAL_RTC_WaitForSynchro(RTC_HandleTypeDef *hrtc)
{
uint32_t tickstart;
/* Clear RSF flag */
hrtc->Instance->ISR &= (uint32_t)RTC_RSF_MASK;AL_StatusTypeDef HAL_RTC_WaitForSynchro(RTC_HandleTypeDef *hrtc)
{
uint32_t tickstart;
/* Clear RSF flag */
hrtc->Instance->ISR &= (uint32_t)RTC_RSF_MASK;
