Skip to content

Commit 2ae9f99

Browse files
committed
spi4/5
1 parent fc9d5b8 commit 2ae9f99

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/i2s.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,15 +282,10 @@ i2s!(pac::SPI2, I2s2, i2s2);
282282
#[cfg(feature = "spi3")]
283283
i2s!(pac::SPI3, I2s3, i2s3);
284284

285-
#[cfg(any(feature = "gpio-f411", feature = "gpio-f412", feature = "gpio-f413"))]
285+
#[cfg(feature = "spi4")]
286286
i2s!(pac::SPI4, I2s4, i2s4);
287287

288-
#[cfg(any(
289-
feature = "gpio-f410",
290-
feature = "gpio-f411",
291-
feature = "gpio-f412",
292-
feature = "gpio-f413"
293-
))]
288+
#[cfg(feature = "spi5")]
294289
i2s!(pac::SPI5, I2s5, i2s5);
295290

296291
/// A wrapper around a SPI and a I2SEXT object and pins for full duplex I2S operation

0 commit comments

Comments
 (0)