Skip to content

Commit bb41956

Browse files
bors[bot]ElliottWatermanBOSSburrbull
authored
Merge #572
572: Fix alternate function pin definitions for FMPI2C1 r=burrbull a=ElliottWatermanBOSS Fixes #569 Co-authored-by: ElliottWatermanBOSS <[email protected]> Co-authored-by: Zgarbul Andrey <[email protected]>
2 parents 8b3a356 + 28a56a6 commit bb41956

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

CHANGELOG.md

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

1717
- `OutPortX` (X = 2..8) and `OutPortArray` structures which can handle several pins at once [#426]
1818
- `restore` for `ErasedPin` and `PartiallyErasedPin`
19-
-
19+
20+
### Fixed
21+
22+
- Fix alternate function pin definitions for FMPI2C1 [#572]
23+
2024
[#426]: https://github.com/stm32-rs/stm32f4xx-hal/pull/426
25+
[#572]: https://github.com/stm32-rs/stm32f4xx-hal/pull/572
26+
2127

2228
## [v0.14.0] - 2022-12-12
2329

src/gpio/alt.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,18 +282,18 @@ pin! {
282282

283283
#[cfg(feature = "fmpi2c1")]
284284
pin! {
285-
<i2c::Scl, FMPI2C1> for [PC6<4>],
286-
<i2c::Sda, FMPI2C1> for [PC7<4>],
287285
<i2c::Sda, FMPI2C1> for [PB3<4>],
288286
<i2c::Scl, FMPI2C1> for [PB10<9>],
289287
<i2c::Sda, FMPI2C1> for [PB14<4>],
290288
<i2c::Scl, FMPI2C1> for [PB15<4>],
289+
<i2c::Scl, FMPI2C1> for [PC6<4>],
290+
<i2c::Sda, FMPI2C1> for [PC7<4>],
291291
<i2c::Scl, FMPI2C1> for [PD12<4>],
292-
<i2c::Scl, FMPI2C1> for [PB13<4>],
292+
<i2c::Sda, FMPI2C1> for [PD13<4>],
293293
<i2c::Scl, FMPI2C1> for [PD14<4>],
294-
<i2c::Scl, FMPI2C1> for [PD15<4>],
294+
<i2c::Sda, FMPI2C1> for [PD15<4>],
295295
<i2c::Scl, FMPI2C1> for [PF14<4>],
296-
<i2c::Scl, FMPI2C1> for [PF15<4>]
296+
<i2c::Sda, FMPI2C1> for [PF15<4>]
297297
}
298298

299299
// SPI pins

0 commit comments

Comments
 (0)