Commit Graph

3 Commits

Author SHA1 Message Date
Ewout van Bekkum
da2a62d890 pw_sync: Migrate upstream to use InterruptSpinLock
Migrates Pigweed off of SpinLock to use the new InterruptSpinLock
name.

Also updates some stale documentation regarding SystemClock backends
which use InterruptSpinLocks before C++ construction now that there
is a constexpr constructor, as it was already getting updated for
the rename.

Change-Id: Ie821b7c5c59f21a16bcc9bd9674c5df6a85e27b1
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/37561
Commit-Queue: Ewout van Bekkum <ewout@google.com>
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
2021-03-12 21:16:44 +00:00
Ewout van Bekkum
db455e64bb pw_chrono: simplify RTOS SystemClock backends
Simplifies the SystemClock backends for FreeRTOS, ThreadX, and
embOS using the updated pw::sync::SpinLock facade which has a
constexpr constructor which removes the need for special early
boot handling.

Change-Id: I9d69a4e0c34ab7b3a1488dce6693cbc642b282bb
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/36581
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
2021-03-10 17:14:56 +00:00
Ewout van Bekkum
f7e38b3ec3 pw_{sync,chrono}_threadx: Add initial ThreadX support
Adds initial ThreadX support through a set of backends for pw_sync
through pw_sync_threadx and pw_chrono through pw_chrono_threadx.

Change-Id: I3e310323cfce3d4bf07557273c2a86f91f6479d7
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/24900
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
2020-12-08 21:54:49 +00:00