aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/src/sai/mod.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/embassy-stm32/src/sai/mod.rs b/embassy-stm32/src/sai/mod.rs
index 3d7f65996..96acd9e48 100644
--- a/embassy-stm32/src/sai/mod.rs
+++ b/embassy-stm32/src/sai/mod.rs
@@ -1,6 +1,5 @@
1#![macro_use] 1#![macro_use]
2 2
3use embassy_embedded_hal::SetConfig;
4use embassy_hal_internal::{into_ref, PeripheralRef}; 3use embassy_hal_internal::{into_ref, PeripheralRef};
5 4
6pub use crate::dma::word; 5pub use crate::dma::word;
@@ -988,14 +987,6 @@ impl<'d, T: Instance, C: Channel, W: word::Word> SubBlock<'d, T, C, W> {
988 ch.cr2().modify(|w| w.set_mute(value)); 987 ch.cr2().modify(|w| w.set_mute(value));
989 } 988 }
990 989
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
999 pub async fn write(&mut self, data: &[W]) -> Result<(), Error> { 990 pub async fn write(&mut self, data: &[W]) -> Result<(), Error> {
1000 match &mut self.ring_buffer { 991 match &mut self.ring_buffer {
1001 RingBuffer::Writable(buffer) => { 992 RingBuffer::Writable(buffer) => {
@@ -1060,13 +1051,3 @@ foreach_peripheral!(
1060 impl Instance for peripherals::$inst {} 1051 impl Instance for peripherals::$inst {}
1061 }; 1052 };
1062); 1053);
1063
1064impl<'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}