Skip to content

Commit 461df42

Browse files
committed
default pin mode
1 parent e909664 commit 461df42

File tree

5 files changed

+189
-180
lines changed

5 files changed

+189
-180
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Move pin mode at the end of generics, add defaults for modes,
13+
bump MSRV to 1.59 [#418]
14+
1015
### Added
1116

1217
- Support eMMC peripherals using SDIO module [#458]
1318

19+
[#418]: https://github.com/stm32-rs/stm32f4xx-hal/pull/418
20+
[#458]: https://github.com/stm32-rs/stm32f4xx-hal/pull/458
21+
1422
## [v0.12.0] - 2022-02-23
1523

1624
### Changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[package]
2-
edition = "2018"
2+
edition = "2021"
3+
rust-version = "1.59"
34

45
authors = ["Daniel Egger <[email protected]>"]
56
categories = [

examples/i2s-audio-out-dma.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ use stm32_i2s_v12x::{MasterClock, MasterConfig, Polarity, TransmitMode};
5151
use stm32f4xx_hal::dma::config::DmaConfig;
5252
use stm32f4xx_hal::dma::MemoryToPeripheral;
5353
use stm32f4xx_hal::dma::{Stream5, StreamsTuple, Transfer};
54-
use stm32f4xx_hal::gpio::{Alternate, PushPull, PA4, PC10, PC12, PC7};
54+
use stm32f4xx_hal::gpio::{Alternate, PA4, PC10, PC12, PC7};
5555
use stm32f4xx_hal::i2c::I2c;
5656
use stm32f4xx_hal::i2s::I2s;
5757
use stm32f4xx_hal::pac::{interrupt, Interrupt};
@@ -214,10 +214,10 @@ type I2sDmaTransfer = Transfer<
214214
I2s<
215215
SPI3,
216216
(
217-
PA4<Alternate<6, PushPull>>,
218-
PC10<Alternate<6, PushPull>>,
219-
PC7<Alternate<6, PushPull>>,
220-
PC12<Alternate<6, PushPull>>,
217+
PA4<Alternate<6>>,
218+
PC10<Alternate<6>>,
219+
PC7<Alternate<6>>,
220+
PC12<Alternate<6>>,
221221
),
222222
>,
223223
TransmitMode<Data16Frame16>,

examples/rtic-tick.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use panic_halt as _;
66
#[rtic::app(device = stm32f4xx_hal::pac, dispatchers = [USART1])]
77
mod app {
88
use stm32f4xx_hal::{
9-
gpio::{Output, PushPull, PC13},
9+
gpio::{Output, PC13},
1010
pac,
1111
prelude::*,
1212
timer::MonoTimerUs,
@@ -17,7 +17,7 @@ mod app {
1717

1818
#[local]
1919
struct Local {
20-
led: PC13<Output<PushPull>>,
20+
led: PC13<Output>,
2121
}
2222

2323
#[monotonic(binds = TIM2, default = true)]

0 commit comments

Comments
 (0)