Dan Whitman

Results 56 comments of Dan Whitman

@jbeaurivage I appreciate the response! While I have never used RTIC v1, my impression is that the [`Monotonic`](https://docs.rs/rtic-monotonic/latest/rtic_monotonic/trait.Monotonic.html) driver was a critical component in that you couldn't even use RTIC...

Status update: [here](https://github.com/kyp44/atsamd/tree/rtic-v2) I have got an RTC-based monotonic pretty much fully working, but am still working on ironing out some async behaviors that may or may not even be...

# Update While I am still putting them through their paces a bit: I have completed RTIC v2 monotonics using the RTC. @jbeaurivage and I have had some discussion about...

@maximeborges You are correct, and actually, in this case, setting the clock is only a single line of code. I also forgot to mention above that the RTC clock frequency...

So the `mode1` monotonic does half-period counting using the convenient [`rtic_time::half_period_counter`](https://docs.rs/rtic-time/latest/rtic_time/half_period_counter/index.html). Because of this, the monotonic counter is a `u64` value, which extends it into the millions of years even...

I like the idea in principle, however all the ATSAMD variant infrastructure is in the HAL, not the workspace, so we wouldn't be able to take advantage of that. Really...

> Just to be sure: You mean the other way round? You are correct, good catch! Added correcting edit note in the original comment. Yeah, the issue about the counter...

# Status update In preparation for temporary publication in the HAL, I merged both monotonics into a [new branch](https://github.com/kyp44/atsamd/tree/rtic-v2-rtc-monotonics) with a clean commit history, refactored a bit, and documented everything....

@AfoHT The other PR is for a timer-based monotonic, whereas this uses the RTC peripheral. For sure though they would share some general ATSAMD infrastructure in `rtic-monotonics`, e.g. chip selection...

@sjroe Glad to hear this! I'm not sure how embassy time drivers compare with RTIC monotonics, but it would be great to be able to collaborate on this and maybe...