-
Notifications
You must be signed in to change notification settings - Fork 194
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
implement fetching the RTC timer value in milliseconds and mircroseconds #476
Conversation
Awesome! Maybe it would be good to align the field names in the SVD/PACs but that can also be done afterwards Is there anything blocking you here? |
Blocked only by because I'm vacationing in Japan. :-) |
I'm happy to update the PACs (either before or after merging this, makes no difference to me), so just lemme know if/when you'd like that done! In the meantime, enjoy your vacation! |
@jessebraham ok - lets go ahead and review/merge this. We can adjust the PACs after. |
ok - I added what esp-idf does for esp32 - they delay 1us between checks of the update bit to avoid flooding the RTC bus |
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.
Seems to be working as far as I can tell so LGTM, thanks for contributing this! I'll get the PACs cleaned up, then whenever we publish them next we can revisit this.
…nds (esp-rs#476) * implement fetching the rtc timer value in miliseconds and mircroseconds * fmt cleanup * add rtc_time examples * get_time_raw/esp32: delay 1us between time update checks like esp-idf * cargo fmt
This implements
get_time_ms()
andget_time_us()
onrtc_cntl::Rtc
examples are included and have been tested on all cpu types exceptesp32c2
.Random notes: