The DS3231 is an I2C real-time clock with internal temperature compensated oscillator, maintaining civil time to 1 s precision with nominal 2 ppm accuracy from 0-40 Cel. The basic functionality is exposed as a counter that is always running at 1 Hz. Much more functionality is exposed as driver-specific API, including the ability to translate between the time scale of the DS3231 and the time scale of the Zephyr uptime clock. This allows correlation of events in the system clock to UTC, TAI, or whatever time scale is used to maintain the DS3231. Signed-off-by: Peter A. Bigot <pab@pabigot.com>
17 lines
364 B
Plaintext
17 lines
364 B
Plaintext
CONFIG_PRINTK=y
|
|
|
|
CONFIG_I2C=y
|
|
CONFIG_COUNTER=y
|
|
CONFIG_COUNTER_MAXIM_DS3231=y
|
|
|
|
# Minimal libc doesn't have strftime()
|
|
CONFIG_NEWLIB_LIBC=y
|
|
|
|
# Optional step that syncs RTC and local clock. Don't enable this if
|
|
# your RTC has already been synchronized and you want to keep its
|
|
# setting.
|
|
CONFIG_APP_SET_ALIGNED_CLOCK=y
|
|
|
|
#CONFIG_LOG=y
|
|
#CONFIG_COUNTER_LOG_LEVEL_DBG=y
|