stm32l053 RTC闹钟设置
/* In case of interrupt mode is used, the interrupt source must disabled */
__HAL_RTC_ALARM_DISABLE_IT(hrtc, RTC_IT_ALRA);
tickstart = HAL_GetTick();
/* Wait till RTC ALRxWF flag is set and if Time out is reached exit */
while(__HAL_RTC_ALARM_GET_FLAG(hrtc, RTC_FLAG_ALRAWF) == RESET)
我想请教下各位,在什么条件下 RTC_FLAG_ALRAWF不会置位,如果会就可以说明死机问题了,我模拟不出来什么情况会。。。。
有人看 没人回吗? 帮顶,还没用到过这方面 似乎与RTC_CR寄存器的ALRAE位有关
页:
[1]