diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-01-27 00:08:02 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-01-27 00:08:02 +0100 |
| commit | 0719b05d63a1d80d3b8ea39a411545a6e8e22ec2 (patch) | |
| tree | 9abf789ef5213c191433466b0b201edde967eaed /docs/modules | |
| parent | d76cd5ceaf5140c48ef97180beae156c0c0e07c8 (diff) | |
traits: migrate Delay to embedded-hal 1.0+async, remove Rng and Flash.
Diffstat (limited to 'docs/modules')
| -rw-r--r-- | docs/modules/ROOT/pages/traits.adoc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/docs/modules/ROOT/pages/traits.adoc b/docs/modules/ROOT/pages/traits.adoc index 96f3e88bb..38b8f2862 100644 --- a/docs/modules/ROOT/pages/traits.adoc +++ b/docs/modules/ROOT/pages/traits.adoc | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | Embassy provides a set of traits and types specifically designed for `async` usage. Many of these futures will be upstreamed to the `embedded-hal` crate at some point in the future, probably when the required GAT (Generic Associated Types) feature is stabilized in Rust. | 3 | Embassy provides a set of traits and types specifically designed for `async` usage. Many of these futures will be upstreamed to the `embedded-hal` crate at some point in the future, probably when the required GAT (Generic Associated Types) feature is stabilized in Rust. |
| 4 | 4 | ||
| 5 | * `embassy::io`: `AsyncBufRead`, `AsyncWrite`. Traits for byte-stream IO, essentially `no_std` compatible versions of `futures::io`. The primary reason for re-defining these traits is that the `futures::io` variant requires `std::io::Error`, which does not work in the `no_std` environment. | 5 | * `embassy::io`: `AsyncBufRead`, `AsyncWrite`. Traits for byte-stream IO, essentially `no_std` compatible versions of `futures::io`. The primary reason for re-defining these traits is that the `futures::io` variant requires `std::io::Error`, which does not work in the `no_std` environment. |
| 6 | * `embassy::traits`: Async traits for Flash, SPI, I2C, UART, RNG, GPIO and more. | ||
| 7 | * `embassy::time`: Time `Driver` trait that is implemented for different platforms. Time in Embassy is represented using the `Duration` and `Instant` types. | 6 | * `embassy::time`: Time `Driver` trait that is implemented for different platforms. Time in Embassy is represented using the `Duration` and `Instant` types. |
| 8 | 7 | ||
| 9 | These traits are implemented by the platform-specific crates, such as `embassy-nrf` or `embassy-stm32`. | 8 | These traits are implemented by the platform-specific crates, such as `embassy-nrf` or `embassy-stm32`. |
