@@ -12,7 +12,7 @@ use crate::pac;
12
12
use crate :: rcc:: { self , Clocks , Reset } ;
13
13
use fugit:: HertzU32 as Hertz ;
14
14
15
- #[ cfg( feature = "stm32_i2s_v12x " ) ]
15
+ #[ cfg( feature = "i2s " ) ]
16
16
pub use stm32_i2s_v12x;
17
17
18
18
// I2S pins are mostly the same as the corresponding SPI pins:
@@ -202,7 +202,7 @@ macro_rules! i2s {
202
202
}
203
203
}
204
204
205
- #[ cfg( feature = "stm32_i2s_v12x " ) ]
205
+ #[ cfg( feature = "i2s " ) ]
206
206
impl stm32_i2s_v12x:: WsPin for gpio:: alt:: $i2s:: Ws {
207
207
fn is_high( & self ) -> bool {
208
208
use crate :: gpio:: ReadPin ;
@@ -214,7 +214,7 @@ macro_rules! i2s {
214
214
}
215
215
}
216
216
217
- #[ cfg( feature = "stm32_i2s_v12x " ) ]
217
+ #[ cfg( feature = "i2s " ) ]
218
218
unsafe impl stm32_i2s_v12x:: I2sPeripheral for I2s <$SPI>
219
219
where
220
220
$SPI: rcc:: Reset ,
@@ -375,7 +375,7 @@ macro_rules! dual_i2s {
375
375
type I2sExtPeripheral = $I2SEXT;
376
376
}
377
377
378
- #[ cfg( feature = "stm32_i2s_v12x " ) ]
378
+ #[ cfg( feature = "i2s " ) ]
379
379
unsafe impl stm32_i2s_v12x:: DualI2sPeripheral for DualI2s <$SPI>
380
380
where
381
381
$SPI: rcc:: Reset ,
@@ -420,7 +420,7 @@ dual_i2s!(pac::SPI3, pac::I2S3EXT, DualI2s3, i2s3, i2s_clk);
420
420
dual_i2s ! ( pac:: SPI3 , pac:: I2S3EXT , DualI2s3 , i2s3, i2s_apb1_clk) ;
421
421
422
422
// DMA support: reuse existing mappings for SPI
423
- #[ cfg( feature = "stm32_i2s_v12x " ) ]
423
+ #[ cfg( feature = "i2s " ) ]
424
424
mod dma {
425
425
use super :: * ;
426
426
use crate :: dma:: traits:: { DMASet , PeriAddress } ;
0 commit comments