Skip to content

Commit

Permalink
Deprecate the spi_future module
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeaurivage committed Jan 23, 2024
1 parent e7f8e12 commit 47ffb3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions hal/src/sercom/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ pub use pad::*;

pub mod i2c;
pub mod spi;

#[deprecated(
since = "0.17.0",
note = "spi_future is deprecated and will be removed in a later version of atsamd_hal. Consider using the `async` APIs available in the `spi` module as a replacement."
)]
pub mod spi_future;
pub mod uart;

Expand Down
3 changes: 2 additions & 1 deletion hal/src/sercom/spi_future.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(rustdoc::broken_intra_doc_links)]
//! A [`Future`]-like interface for SPI transactions
//!
//! An [`SpiFuture`] takes ownership of an [`Spi`] `struct` and a `[u8]`-like
Expand Down Expand Up @@ -172,6 +171,8 @@
//! [`Poll`]: core::task::Poll
//! [RTIC]: https://rtic.rs/
#![allow(rustdoc::broken_intra_doc_links)]

use core::convert::Infallible;
use core::task::Poll;

Expand Down

0 comments on commit 47ffb3a

Please sign in to comment.