165 RTC_ALRL = (alarm_time & 0x0000ffff);
166 RTC_ALRH = (alarm_time & 0xffff0000) >> 16;
203 RTC_PRLL = prescale_val & 0x0000ffff;
204 RTC_PRLH = (prescale_val & 0x000f0000) >> 16;
250 RTC_CNTH = (counter_val & 0xffff0000) >> 16;
251 RTC_CNTL = counter_val & 0x0000ffff;
void pwr_disable_backup_domain_write_protect(void)
Disable Backup Domain Write Protection.
void rcc_set_rtc_clock_source(enum rcc_osc clock_source)
RCC Set the Source for the RTC clock.
void rcc_periph_clock_enable(enum rcc_periph_clken clken)
Enable Peripheral Clock in running mode.
void rcc_enable_rtc_clock(void)
RCC Enable the RTC clock.
uint32_t rcc_rtc_clock_enabled_flag(void)
RCC RTC Clock Enabled Flag.
rtcflag_t
RTC Interrupt Flags.
@ RTC_ALR
Alarm Event Flag.
@ RTC_SEC
Counter Second Flag.
@ RTC_OW
Counter Overflow Flag.
uint32_t rtc_get_counter_val(void)
RTC return the Counter Value.
void rtc_awake_from_standby(void)
RTC Start RTC after Standby Mode.
void rtc_set_prescale_val(uint32_t prescale_val)
RTC Set the prescaler Value.
void rtc_clear_flag(rtcflag_t flag_val)
RTC Clear an Interrupt Flag.
void rtc_set_alarm_time(uint32_t alarm_time)
RTC Set the Alarm Time.
void rtc_interrupt_disable(rtcflag_t flag_val)
RTC Disable Interrupt.
void rtc_disable_alarm(void)
RTC Disable the Alarm.
void rtc_auto_awake(enum rcc_osc clock_source, uint32_t prescale_val)
RTC Configuration on Wakeup.
uint32_t rtc_get_alarm_val(void)
RTC return the Alarm Value.
uint32_t rtc_check_flag(rtcflag_t flag_val)
RTC Return a Flag Setting.
void rtc_exit_config_mode(void)
RTC Leave Configuration Mode.
void rtc_awake_from_off(enum rcc_osc clock_source)
RTC Set Operational from the Off state.
void rtc_interrupt_enable(rtcflag_t flag_val)
RTC Enable Interrupt.
void rtc_enable_alarm(void)
RTC Enable the Alarm.
uint32_t rtc_get_prescale_div_val(void)
RTC return the prescaler Value.
void rtc_set_counter_val(uint32_t counter_val)
RTC set the Counter.
void rtc_enter_config_mode(void)
RTC Enter Configuration Mode.