How can I set RTC alarm value ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-01-26 12:48 AM
Posted on January 26, 2014 at 09:48
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(); }
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
