折腾了 好几周了
现象是:
RTC_WaitForLastTask();
RTC_EnterConfigMode();
RTC_ITConfig(RTC_IT_ALR, ENABLE); //RTC报警中断
RTC_ExitConfigMode();
RTC_WaitForLastTask();
void RTC_ITConfig(u16 RTC_IT, FunctionalState NewState)
{
/* Check the parameters */
assert_param(IS_RTC_IT(RTC_IT));
assert_param(IS_FUNCTIONAL_STATE(NewState));
printf("here(((((((((((((((((5.11
");
if (NewState != DISABLE)
{
printf("here(((((((((((((((((5.12
"); //<------------------------------------------------这句有打出
RTC->CRH |= RTC_IT;
printf("here(((((((((((((((((5.13
") ;//<------------------------------------------------这句没有打出!!!
}
else
{
RTC->CRH &= (u16)~RTC_IT;
}
}
求高手帮忙解答下!!!谢谢!!
此帖出自
小平头技术问答
一周热门 更多>