Commit Graph

3 Commits

Author SHA1 Message Date
Wyatt Hepler
f79b9d0770 pw_function: Pass by reference or rvalue reference
Pass pw::Function by rvalue reference instead of by value, which saves
unnecessary moves and reduces code size.

Requires: pigweed-internal:17601
Change-Id: Ib96da4c35e95e2f2c54595ae0e6b0a9e58298f09
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/67943
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
2021-11-09 20:36:59 +00:00
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