Commit Graph

3 Commits

Author SHA1 Message Date
Ewout van Bekkum
56bf1682e3 tests: Migrate to pw::containers::Equal instead of std::equal
Migrates existing tests and test helpers to use our port of
absl::c_equal instead of std::equal as it also compares container
size in addition to content.

Change-Id: Ieabee07a5cb5418e723ad5167c5fff0f07ca87d0
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/94863
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
2022-05-17 22:02:19 +00:00
Austin Foxley
7cabfff48d pw_spi: Add mock SPI initiator
Add a mock initiator implementation that allows tests to specify a list
of expected transactions.

Change-Id: Ifb5c1bedd9468202f11a380766e1ec4091055dae
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/92147
Reviewed-by: Mark Slevinsky <markslevinsky@google.com>
Commit-Queue: Austin Foxley <afoxley@google.com>
2022-04-22 20:31:22 +00:00
Mark Slevinsky
c01abafd95 pw_spi: Introduce SPI HAL
This change introduces a new SPI HAL API, featuring abstractions
enabling a target device to communicate with SPI peripherals in
a portable and consistent fashion.

Change-Id: Idc085c4727abb9247732c40cc84d05ee4113bd78
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/70140
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Mark Slevinsky <markslevinsky@google.com>
2021-12-16 20:05:30 +00:00