Commit Graph

2 Commits

Author SHA1 Message Date
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
41daf160ce embos: add third_party, SystemClock, and SpinLock support
Adds initial support for embOS v4 for 32bit targets. For now this
only adds third_party support to depend on embOS's RTOS.h header,
the pw::chrono::SystemClock based on OS_GetTime32 and the
pw::sync::SpinLock based on OS_IncDI & OS_DecRI.

Change-Id: I6faf815ab05a0b00b7006b4bcc62df713b219dfe
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/35601
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
2021-03-10 00:21:24 +00:00