File tree Expand file tree Collapse file tree 2 files changed +16
-17
lines changed Expand file tree Collapse file tree 2 files changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2222- PWM output on complementary channels only for single channel timers (TIM16 + TIM17)
2323- impl embedded_hal_1::spi::SpiBus for SPI
2424- impl embedded_hal_1::digital traits for Pins
25+ - Enable AF1 on GPIOE for pins [ 13, 14, 15] to support SPI communication
2526
2627### Fixed
2728
Original file line number Diff line number Diff line change @@ -136,23 +136,21 @@ spi_pins! {
136136 mosi => [ gpiob:: PB15 <Alternate <AF0 >>] ,
137137 }
138138}
139- // TODO: The ST SVD files are missing the entire PE enable register.
140- // So those pins do not exist in the register definitions.
141- // Re-enable as soon as this gets fixed.
142- // #[cfg(any(
143- // feature = "stm32f071",
144- // feature = "stm32f072",
145- // feature = "stm32f078",
146- // feature = "stm32f091",
147- // feature = "stm32f098",
148- // ))]
149- // spi_pins! {
150- // SPI1 => {
151- // sck => [gpioe::PE13<Alternate<AF1>>],
152- // miso => [gpioe::PE14<Alternate<AF1>>],
153- // mosi => [gpioe::PE15<Alternate<AF1>>],
154- // }
155- // }
139+
140+ #[ cfg( any(
141+ feature = "stm32f071" ,
142+ feature = "stm32f072" ,
143+ feature = "stm32f078" ,
144+ feature = "stm32f091" ,
145+ feature = "stm32f098" ,
146+ ) ) ]
147+ spi_pins ! {
148+ SPI1 => {
149+ sck => [ gpioe:: PE13 <Alternate <AF1 >>] ,
150+ miso => [ gpioe:: PE14 <Alternate <AF1 >>] ,
151+ mosi => [ gpioe:: PE15 <Alternate <AF1 >>] ,
152+ }
153+ }
156154
157155#[ cfg( any(
158156 feature = "stm32f030x8" ,
You can’t perform that action at this time.
0 commit comments