Skip to content

Conversation

McBandaska
Copy link

in previous version, there was possibility to have 2 timers but only 4 alarms total, here are changes, that makes possible to configure up to 4 alarms for each timer

Copy link
Member

@ithinuel ithinuel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes seem sensible. 👍
I didn’t cross check with the datasheet nor the hardware so I’m only leaving this review as a comment.

@thejpster
Copy link
Member

If there are only four alarms for each timer, we only need a single AtomicU8, right?

Whilst we're here, I think we can use https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.fetch_and instead of a critical section.

@thejpster thejpster force-pushed the feature/4_alarms_for_both_timers branch from 1ffc6c4 to cb0bc7e Compare August 12, 2025 17:57
@thejpster
Copy link
Member

Updated to use CAS operations. Needs a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants