WIP: Add alarm_pool_remaining_time() #1629

Closed
TheRaf974 wants to merge 1 commit from develop into develop
TheRaf974 commented 2024-02-06 16:20:36 -06:00 (Migrated from github.com)

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 It uses difference between an alarm register and the timerawl register. (see [RP2040 datasheet](https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf) 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
kilograham commented 2024-05-19 16:45:45 -05:00 (Migrated from github.com)

fixes #1628

fixes #1628
kilograham commented 2024-05-19 16:47:26 -05:00 (Migrated from github.com)

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

will fix this internally as part of redoing the alarm pool implementation; note the return should be 64 bit.
kilograham commented 2024-08-09 14:54:35 -05:00 (Migrated from github.com)

added

added

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk!1629
No description provided.