diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-12-18 23:48:17 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-12-19 00:06:30 +0100 |
| commit | c952ae0f49a21ade19758e4f6f1e2bec503e413e (patch) | |
| tree | 08fd731d20d0aaaa30d13f37e33dc55b189f5612 | |
| parent | 4ed7747a98ddd67df52093b3a1ed545b4ed97996 (diff) | |
stm32/sai: remove unimplemented SetConfig.
| -rw-r--r-- | embassy-stm32/src/sai/mod.rs | 19 |
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 | ||
| 3 | use embassy_embedded_hal::SetConfig; | ||
| 4 | use embassy_hal_internal::{into_ref, PeripheralRef}; | 3 | use embassy_hal_internal::{into_ref, PeripheralRef}; |
| 5 | 4 | ||
| 6 | pub use crate::dma::word; | 5 | pub 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 | |||
| 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 | } | ||
