/* Wait until last write operation on RTC registers has finished.  */
void RTC_WaitForLastTask(void)
/* Wait until last write operation on RTC registers has finished.  */
void RTC_WaitForLastTask(void)
{
    while (RTC->CSTS_B.OCFLG == BIT_RESET)
    {
    }
}