2014-01-26 12:48 AM
Guys,
How can I set the value for RTC alarm ? I want to set on Sunday, 26 January 2014 20:35 I can see only one integer value, do I need to convert from date time to integer ? Any ideas ? thanks Code : /** * @brief Sets the RTC alarm value. * @param AlarmValue: RTC alarm new value. * @retval None */ void RTC_SetAlarm(uint32_t AlarmValue) { RTC_EnterConfigMode(); /* Set the ALARM MSB word */ RTC->ALRH = AlarmValue >> 16; /* Set the ALARM LSB word */ RTC->ALRL = (AlarmValue & RTC_LSB_MASK); RTC_ExitConfigMode(); }