Skip to content

a driver for the RTC using LSE clocksource and gets timestamps with msec resolutions

License

Notifications You must be signed in to change notification settings

StefJar/zephyr_stm32_rtc_driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

STM32F4 RTC with msec resolution and getter and setter function

Simple ZephyrOS device driver using RTC as system/sample clock. This clock can be set and read.

Setup: The driver uses the LSE as clock source and assumes that it is connected to an 32768Hz oscilator.

With the current pre-divers setup the sub second resolutions is around 4ms. The miliseconds are calculated according to the datasheet.

note: The time stamping function of the stm32 rtc is not used. Means that if the ZephyrOS switches the context inside "stm32_rtc_getTimestamp" function, the result in ss, t, d can have some offset.

sources:

About

a driver for the RTC using LSE clocksource and gets timestamps with msec resolutions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages