Skip to content

Commit 01e6b68

Browse files
Dirbaioeldruin
andcommitted
SPI: split into device/bus, allows sharing buses with automatic CS management.
Co-authored-by: Diego Barrios Romero <[email protected]>
1 parent ddf4375 commit 01e6b68

File tree

8 files changed

+293
-71
lines changed

8 files changed

+293
-71
lines changed

.github/bors.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ status = [
55
"ci-linux (stable, x86_64-unknown-linux-gnu)",
66
"ci-linux (stable, thumbv6m-none-eabi)",
77
"ci-linux (stable, thumbv7m-none-eabi)",
8-
"ci-linux (1.46.0, x86_64-unknown-linux-gnu)",
8+
"ci-linux (1.54.0, x86_64-unknown-linux-gnu)",
99
"ci-linux-test (stable)",
10-
"ci-linux-test (1.46.0, x86_64-unknown-linux-gnu)",
10+
"ci-linux-test (1.54.0, x86_64-unknown-linux-gnu)",
1111
"fmt",
1212
]

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
include:
2323
# Test MSRV
24-
- rust: 1.46.0
24+
- rust: 1.54.0
2525
TARGET: x86_64-unknown-linux-gnu
2626

2727
# Test nightly but don't fail

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
rust: [stable]
1717

1818
include:
19-
- rust: 1.46.0
19+
- rust: 1.54.0
2020
TARGET: x86_64-unknown-linux-gnu
2121

2222
# Test nightly but don't fail

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
### Changed
11+
- The Minimum Supported Rust Version (MSRV) is now 1.54.0
12+
- `spi`: unify all traits into `SpiReadBus`, `SpiWriteBus` and `SpiBus` (read-write).
13+
- `spi`: Add `SpiDevice` trait to represent a single device in a (possibly shared) bus, with managed chip-select (CS) pin.
14+
1015
## [v1.0.0-alpha.7] - 2022-02-09
1116

1217
*** This is (also) an alpha release with breaking changes (sorry) ***

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![crates.io](https://img.shields.io/crates/d/embedded-hal.svg)](https://crates.io/crates/embedded-hal)
22
[![crates.io](https://img.shields.io/crates/v/embedded-hal.svg)](https://crates.io/crates/embedded-hal)
33
[![Documentation](https://docs.rs/embedded-hal/badge.svg)](https://docs.rs/embedded-hal)
4-
![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.46+-blue.svg)
4+
![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.54+-blue.svg)
55

66
# `embedded-hal`
77

@@ -98,7 +98,7 @@ Because of this we only aim to support the latest `-alpha`.
9898

9999
## Minimum Supported Rust Version (MSRV)
100100

101-
This crate is guaranteed to compile on stable Rust 1.46 and up. It *might*
101+
This crate is guaranteed to compile on stable Rust 1.54 and up. It *might*
102102
compile with older versions but that may change in any new patch release.
103103

104104
## License

0 commit comments

Comments
 (0)