Skip to content

Commit

Permalink
Drop shared-bus dependency
Browse files Browse the repository at this point in the history
Farewell, old friend.  You had a good run.
  • Loading branch information
Rahix committed Feb 16, 2024
1 parent b8f7a3d commit c2ea2e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ std = []
[dependencies]
critical-section = { version = "1.1.2", optional = true }
embedded-hal = { version = "1.0.0" }
shared-bus = "0.3.0"

[dev-dependencies]
embedded-hal-mock = "0.10.0"
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ a similar existing implementation as inspiration. Contributions welcome!
- [`PI4IOE5V6408`](https://docs.rs/port-expander/latest/port_expander/dev/pi4ioe5v6408/struct.Pi4ioe5v6408.html)

## Non-local sharing
`port-expander` uses the `BusMutex` from
[`shared-bus`](https://crates.io/crates/shared-bus) under the hood. This means
you can also make the pins shareable across task/thread boundaries, given that
you provide an appropriate mutex type:
`port-expander` uses a custom trait for abstracting different kinds of mutexes:
[`PortMutex`](https://docs.rs/port-expander/latest/port_expander/trait.PortMutex.html).
This means you can also make the pins shareable across task/thread boundaries,
given that you provide an appropriate mutex type:

```rust
// Initialize I2C peripheral from HAL
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
//! - [`TCA6408A`](Tca6408a)
//!
//! ## Non-local sharing
//! `port-expander` uses the `BusMutex` from [`shared-bus`](https://crates.io/crates/shared-bus)
//! under the hood. This means you can also make the pins shareable across task/thread boundaries,
//! `port-expander` uses a custom trait for abstracting different kinds of mutexes:
//! [`PortMutex`]. This means you can also make the pins shareable across task/thread boundaries,
//! given that you provide an appropriate mutex type:
//!
//! ```ignore
Expand Down

0 comments on commit c2ea2e3

Please sign in to comment.