Skip to content

Commit

Permalink
remove deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
burrbull committed Aug 27, 2022
1 parent dc763d6 commit 21425a4
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 27 deletions.
5 changes: 0 additions & 5 deletions src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,4 @@ where
pub fn release(self) -> (I2C, PINS) {
(self.i2c, self.pins)
}

#[deprecated(since = "0.7.1", note = "Please use release instead")]
pub fn free(self) -> (I2C, PINS) {
self.release()
}
}
10 changes: 0 additions & 10 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,6 @@ pub use stm32f1::stm32f103 as pac;
#[cfg(any(feature = "stm32f105", feature = "stm32f107"))]
pub use stm32f1::stm32f107 as pac;

#[cfg(feature = "device-selected")]
#[deprecated(since = "0.6.0", note = "please use `pac` instead")]
#[doc(hidden)]
pub use crate::pac as device;

#[cfg(feature = "device-selected")]
#[deprecated(since = "0.6.0", note = "please use `pac` instead")]
#[doc(hidden)]
pub use crate::pac as stm32;

#[cfg(feature = "device-selected")]
pub mod adc;
#[cfg(feature = "device-selected")]
Expand Down
8 changes: 0 additions & 8 deletions src/serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -704,10 +704,6 @@ macro_rules! serialdma {
}

impl $rxdma {
#[deprecated(since = "0.7.1", note = "Please use release instead")]
pub fn split(self) -> (Rx<$USARTX>, $dmarxch) {
self.release()
}
pub fn release(mut self) -> (Rx<$USARTX>, $dmarxch) {
self.stop();
unsafe { (*$USARTX::ptr()).cr3.modify(|_, w| w.dmar().clear_bit()); }
Expand All @@ -720,10 +716,6 @@ macro_rules! serialdma {
}

impl $txdma {
#[deprecated(since = "0.7.1", note = "Please use release instead")]
pub fn split(self) -> (Tx<$USARTX>, $dmatxch) {
self.release()
}
pub fn release(mut self) -> (Tx<$USARTX>, $dmatxch) {
self.stop();
unsafe { (*$USARTX::ptr()).cr3.modify(|_, w| w.dmat().clear_bit()); }
Expand Down
4 changes: 0 additions & 4 deletions src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,6 @@ where
SPI: Instance,
FrameSize: Copy,
{
#[deprecated(since = "0.6.0", note = "Please use release instead")]
pub fn free(self) -> (SPI, PINS) {
self.release()
}
pub fn release(self) -> (SPI, PINS) {
(self.spi, self.pins)
}
Expand Down

0 comments on commit 21425a4

Please sign in to comment.