-
Notifications
You must be signed in to change notification settings - Fork 1.3k
RTC enabled #3422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTC enabled #3422
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question. Otherwise, this looks good. Thank you!
This reverts commit f9f614b.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thank you!
fwiw, calibration is enabled on SAMD51, but it's a small adjustment relative to some typical drifts. For example, my PyPortal gains about a second per minute, well outside of the calibration range. |
I looked at the other ports, picked the simplest one that had RTC an copied it.
In the original port it used
tv
in the espressif docs it usedtv_now
.This is a partial implemenation for #3321
NOTES:
ESP32S2_RTC_CLK_SRC_INT_RC
. It might be better (but more power hungry) to useESP32S2_RTC_CLK_SRC_INT_8MD256
as they claim it has less wander. I'm not 100% sure if that's going to be true with CP today as I believe this has to do with lower power modes.Seems like its working... Tested on a Kaluga