Skip to content

Commit 137ef19

Browse files
danielgallagher0Sh3Rm4n
authored andcommitted
Update SPI impls for STM32F334
Based on the datasheet, the following pins and peripherals are supported: - SPI1: - SCK: PA5<AF5>, PB3<AF5> - MISO: PA6<AF5>, PB4<AF5> - MOSI: PA7<AF5>, PB5<AF5>
1 parent 40fea79 commit 137ef19

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/spi.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ use crate::gpio::gpiob::{PB14, PB15, PB5};
5151
feature = "stm32f303",
5252
feature = "stm32f318",
5353
feature = "stm32f328",
54+
feature = "stm32f334",
5455
feature = "stm32f358",
5556
feature = "stm32f373",
5657
feature = "stm32f378",
@@ -161,6 +162,7 @@ unsafe impl SckPin<SPI1> for PA12<AF6> {}
161162
feature = "stm32f302xe",
162163
feature = "stm32f303",
163164
feature = "stm32f328",
165+
feature = "stm32f334",
164166
feature = "stm32f358",
165167
feature = "stm32f373",
166168
feature = "stm32f378",
@@ -269,6 +271,7 @@ unsafe impl MisoPin<SPI1> for PA13<AF6> {}
269271
feature = "stm32f302xe",
270272
feature = "stm32f303",
271273
feature = "stm32f328",
274+
feature = "stm32f334",
272275
feature = "stm32f358",
273276
feature = "stm32f373",
274277
feature = "stm32f378",

0 commit comments

Comments
 (0)