Skip to content

Commit 24dc0cb

Browse files
jbeaurivageianrrees
authored andcommitted
removed(spi)!: Remove spi_future module (#894)
PR #875
1 parent 8ec5982 commit 24dc0cb

File tree

4 files changed

+4
-575
lines changed

4 files changed

+4
-575
lines changed

hal/src/sercom/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ pub use pad::*;
5151
pub mod i2c;
5252
pub mod spi;
5353

54-
#[deprecated(
55-
since = "0.19.0",
56-
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."
57-
)]
58-
pub mod spi_future;
5954
pub mod uart;
6055

6156
#[cfg(feature = "dma")]

hal/src/sercom/spi/impl_ehal/thumbv6m.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
//! non-blocking fashion, but this can be done using
2323
#![cfg_attr(feature = "dma", doc = "[`DMA`](crate::dmac)")]
2424
#![cfg_attr(not(feature = "dma"), doc = "`DMA`")]
25-
//! or using interrupts and the [`spi_future`](crate::sercom::spi_future) module.
25+
//! .
2626
//!
2727
//! # Variations by [`Capability`]
2828
//!

hal/src/sercom/spi/impl_ehal/thumbv7em.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
//! slices, you could use either
4646
#![cfg_attr(feature = "dma", doc = "[`DMA`](crate::dmac)")]
4747
#![cfg_attr(not(feature = "dma"), doc = "`DMA`")]
48-
//! or the [`spi_future`] module.
48+
//! .
4949
//!
5050
//! # Variations by [`Capability`]
5151
//!
@@ -93,16 +93,15 @@
9393
//! the different [`Size`] and [`Capability`] options.
9494
//!
9595
//! [`Size`]: super::Size
96-
//! [`spi_future`]: crate::sercom::spi_future
9796
9897
use crate::ehal_02;
9998
use crate::ehal_nb;
99+
#[cfg(doc)]
100+
use crate::sercom::spi::Capability;
100101
use crate::sercom::spi::{
101102
AtomicSize, Config, DataWidth, Duplex, DynLength, Error, Flags, GreaterThan4, Length,
102103
MasterMode, OpMode, Receive, Rx, Slave, Spi, Status, Tx, ValidConfig, ValidPads, Word,
103104
};
104-
#[cfg(doc)]
105-
use crate::sercom::spi::Capability;
106105
use nb::Error::WouldBlock;
107106
use num_traits::{AsPrimitive, PrimInt};
108107
use typenum::{U1, U2, U3, U4};

0 commit comments

Comments
 (0)