commit | d8516dc7869ebe75d4bc979b5ffb4ffa980d9b84 | [log] [tgz] |
---|---|---|
author | Jack Chen <zenghuchen@google.com> | Tue Jan 10 21:09:18 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jan 10 21:09:18 2023 +0000 |
tree | a4cdeb62afcc2425213d2ddf904409bed0208328 | |
parent | aa8a946fd0a5ea4d575c45234667bb48c4892033 [diff] |
pw_spi: Refactor Linux backend Inject a valid file descriptor, instead of a bus path. Application code should open a SPI bus and pass the file descriptor to LinuxInitiator. This way, application code could detect hardware errors early. If it fails to open the SPI bus, it does not bother to instantiate LinuxInitiator. Change-Id: I738fa57f47bbe1045f83a8e6a298e21444a30684 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/124492 Reviewed-by: Anton Markov <amarkov@google.com> Commit-Queue: Jack Chen <zenghuchen@google.com> Reviewed-by: Wyatt Hepler <hepler@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.