Skip to content
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

Add alarm_pool_remaining_time() #1629

Closed
wants to merge 1 commit into from

Conversation

TheRaf974
Copy link

Add a function that returns the time remaining before triggering for a given pool and alarm id
It uses difference between an alarm register and the timerawl register. (see RP2040 datasheet chapter 4.6.3)
It also check that the alarm for which we're asking the remaining time is the actual one running on the hardware timer (and not in the alarm pool)

Refer to #1628

Add a function that returns the time remaining before triggering for a given pool and alarm id
@kilograham
Copy link
Contributor

fixes #1628

@kilograham
Copy link
Contributor

will fix this internally as part of redoing the alarm pool implementation; note the return should be 64 bit.

@kilograham kilograham closed this May 19, 2024
@kilograham kilograham reopened this May 19, 2024
@kilograham kilograham marked this pull request as draft May 19, 2024 22:23
@kilograham kilograham added this to the 1.6.0 milestone May 20, 2024
@kilograham kilograham self-assigned this Jun 5, 2024
@kilograham kilograham modified the milestones: 1.6.0, 1.6.1 Jun 5, 2024
@kilograham kilograham modified the milestones: 1.6.1, 1.6.2 Jul 20, 2024
@kilograham kilograham modified the milestones: 1.6.2, 2.0.0 Aug 8, 2024
@kilograham
Copy link
Contributor

added

@kilograham kilograham closed this Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants