libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
#include <libopencm3/stm32/rtc.h>
Go to the source code of this file.
Functions | |
static uint8_t | _rtc_dec_to_bcd (uint8_t dec) |
void | rtc_set_prescaler (uint32_t sync, uint32_t async) |
Set RTC prescalars. More... | |
void | rtc_wait_for_synchro (void) |
Wait for RTC registers to be synchronised with the APB1 bus. More... | |
void | rtc_unlock (void) |
Unlock write access to the RTC registers. More... | |
void | rtc_lock (void) |
Lock write access to the RTC registers. More... | |
void | rtc_set_wakeup_time (uint16_t wkup_time, uint8_t rtc_cr_wucksel) |
Sets the wakeup time auto-reload value. More... | |
void | rtc_clear_wakeup_flag (void) |
Clears the wakeup flag. More... | |
void | rtc_set_init_flag (void) |
Sets the initialization flag. More... | |
void | rtc_clear_init_flag (void) |
Clears (resets) the initialization flag. More... | |
bool | rtc_init_flag_is_ready (void) |
Returns if the RTC_ISR init flag RTC_ISR_INITF is set. More... | |
void | rtc_wait_for_init_ready (void) |
Waits infinitely for initialization flag to be set in RTC_ISR. More... | |
void | rtc_enable_bypass_shadow_register (void) |
Sets the bypass shadow bit in RTC_CR. More... | |
void | rtc_disable_bypass_shadow_register (void) |
Clears the bypass shadow bit in RTC_CR. More... | |
void | rtc_set_am_format (void) |
Sets the RTC control register hour format to AM (24h) More... | |
void | rtc_set_pm_format (void) |
Sets the RTC control register hour format to PM (12h) More... | |
void | rtc_calendar_set_year (uint8_t year) |
Sets the RTC BCD calendar year value. More... | |
void | rtc_calendar_set_weekday (enum rtc_weekday rtc_dr_wdu) |
Sets the RTC BCD calendar weekday. More... | |
void | rtc_calendar_set_month (uint8_t month) |
Sets the RTC BCD calendar month value. More... | |
void | rtc_calendar_set_day (uint8_t day) |
Sets the RTC BCD calendar day value. More... | |
void | rtc_calendar_set_date (uint8_t year, uint8_t month, uint8_t day, enum rtc_weekday rtc_dr_wdu) |
Sets the RTC BCD calendar value. More... | |
void | rtc_time_set_hour (uint8_t hour, bool use_am_notation) |
Sets the RTC BCD time hour value. More... | |
void | rtc_time_set_minute (uint8_t minute) |
Sets the RTC BCD time minute value. More... | |
void | rtc_time_set_second (uint8_t second) |
Sets the RTC BCD time second value. More... | |
void | rtc_time_set_time (uint8_t hour, uint8_t minute, uint8_t second, bool use_am_notation) |
Sets the RTC BCD time. More... | |