AnsweredAssumed Answered

STM32F0 RTC Alarm

Question asked by g.m on Sep 9, 2013
Hi,
how can I set loop RTC alarm? NowI do itlike this:
I setup RTC_AlarmStructure for "first" alarm (for example 01:00:00)

RTC_AlarmStructure.RTC_AlarmTime.RTC_H12 = RTC_HourFormat_24; RTC_AlarmStructure.RTC_AlarmTime.RTC_Hours = 0; RTC_AlarmStructure.RTC_AlarmTime.RTC_Minutes = 1; RTC_AlarmStructure.RTC_AlarmTime.RTC_Seconds = 0; RTC_AlarmStructure.RTC_AlarmDateWeekDay = 0x31; RTC_AlarmStructure.RTC_AlarmDateWeekDaySel = RTC_AlarmDateWeekDaySel_Date; RTC_AlarmStructure.RTC_AlarmMask = RTC_AlarmMask_DateWeekDay;
RTC_SetAlarm(RTC_Format_BIN, RTC_Alarm_A, &RTC_AlarmStructure);

And then I set in RTC_IRQHandler new alarm (edit RTC_AlarmStructure)...

It is possible setup loop alarm through AlarmMask?

Thank you for answer, MG

Outcomes