Skip to content

Commit fc9bd52

Browse files
committed
Add missing MosiPin for PB5
This impl was accidentally removed after refactoring and is a regression at least from previous versions Fix #320
1 parent 4212122 commit fc9bd52

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1414

1515
## Unreleased
1616

17-
No changes.
17+
### Fixed
18+
19+
- Missing `MosiPin` impl for `PB5` ([#322])
1820

1921
## [v0.9.0] - 2022-03-06
2022

@@ -554,6 +556,7 @@ let clocks = rcc
554556
[defmt]: https://github.com/knurling-rs/defmt
555557
[filter]: https://defmt.ferrous-systems.com/filtering.html
556558

559+
[#322]: https://github.com/stm32-rs/stm32f3xx-hal/pull/322
557560
[#314]: https://github.com/stm32-rs/stm32f3xx-hal/pull/314
558561
[#309]: https://github.com/stm32-rs/stm32f3xx-hal/pull/309
559562
[#308]: https://github.com/stm32-rs/stm32f3xx-hal/pull/308

src/spi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ pub trait MosiPin<SPI>: crate::private::Sealed {}
5353
impl SckPin<SPI1> for gpio::PA5<AF5<PushPull>> {}
5454
impl MisoPin<SPI1> for gpio::PA6<AF5<PushPull>> {}
5555
impl MosiPin<SPI1> for gpio::PA7<AF5<PushPull>> {}
56+
impl MosiPin<SPI1> for gpio::PB5<AF5<PushPull>> {}
5657

5758
#[cfg(not(feature = "gpio-f373"))]
5859
impl SckPin<SPI2> for gpio::PB13<AF5<PushPull>> {}

0 commit comments

Comments
 (0)