embassy-stm32

Crates

git

Versions

stm32f103rg

Flavors

Skip to main content

Module rtc

Module rtc 

Source
Expand description

Real Time Clock (RTC)

The STM32F1 RTC is a 32-bit counter that increments once per second. It has no calendar: what the count means (for example, seconds since the Unix epoch) is up to the application.

The counter is in the backup domain, so it keeps counting across resets, and while VDD is off if VBAT is powered and the RTC runs from the LSE. init sets the prescaler to 1 Hz when it configures the RTC clock (config.rcc.ls), which only happens after a backup domain reset or when the RTC clock source changes.

Structsยง

Rtc
RTC driver.