Commit Graph

2 Commits

Author SHA1 Message Date
Ewout van Bekkum
021a0fe783 pw_chrono_embos: Always defer callback to the timer ISR
Updates the embOS backend for the SystemTimer to always pass a
non-zero timer period to the native embOS API. This means that
expired deadlines will no longer be executed at the callsite and
may be delayed up to a tick.

This is consistent with the FreeRTOS SystemTimer backend.

Change-Id: I78a4c54c85bc6bec6bcbf6162c9715f70a225191
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/63762
Reviewed-by: Max Koopman <koopman@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
2021-10-05 20:42:05 +00:00
Ewout van Bekkum
666935dd6d pw_chrono_embos: adds SystemTimer backend
Adds a backend for pw::chrono::SystemTimer based on embOS's
software timer API.

Change-Id: I0d03c2b2b6474bcefb968a20897748f552ca1a7e
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/50860
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
2021-06-30 03:48:58 +00:00