Skip to content

Commit c952ae0

Browse files
committed
stm32/sai: remove unimplemented SetConfig.
1 parent 4ed7747 commit c952ae0

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

embassy-stm32/src/sai/mod.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![macro_use]
22

3-
use embassy_embedded_hal::SetConfig;
43
use embassy_hal_internal::{into_ref, PeripheralRef};
54

65
pub use crate::dma::word;
@@ -988,14 +987,6 @@ impl<'d, T: Instance, C: Channel, W: word::Word> SubBlock<'d, T, C, W> {
988987
ch.cr2().modify(|w| w.set_mute(value));
989988
}
990989

991-
#[allow(dead_code)]
992-
/// Reconfigures it with the supplied config.
993-
fn reconfigure(&mut self, _config: Config) {}
994-
995-
pub fn get_current_config(&self) -> Config {
996-
Config::default()
997-
}
998-
999990
pub async fn write(&mut self, data: &[W]) -> Result<(), Error> {
1000991
match &mut self.ring_buffer {
1001992
RingBuffer::Writable(buffer) => {
@@ -1060,13 +1051,3 @@ foreach_peripheral!(
10601051
impl Instance for peripherals::$inst {}
10611052
};
10621053
);
1063-
1064-
impl<'d, T: Instance> SetConfig for Sai<'d, T> {
1065-
type Config = Config;
1066-
type ConfigError = ();
1067-
fn set_config(&mut self, _config: &Self::Config) -> Result<(), ()> {
1068-
// self.reconfigure(*config);
1069-
1070-
Ok(())
1071-
}
1072-
}

0 commit comments

Comments
 (0)