Skip to content

Commit 2b27903

Browse files
authored
Merge branch 'stm32-rs:master' into master
2 parents 5fc1836 + d3edddd commit 2b27903

File tree

22 files changed

+2835
-3038
lines changed

22 files changed

+2835
-3038
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10+
### Changed
11+
12+
- move gpio, dma impls, adc pins in subdir, remove unused `From` impls [#658] [#664]
13+
- Bump `embedded-hal` to `1.0.0-alpha.10`. See [their changelog][embedded-hal-1.0.0-alpha.10] for further details. Note that this included breaking changes to the previous alpha APIs. [#663]
14+
15+
[#658]: https://github.com/stm32-rs/stm32f4xx-hal/pull/658
16+
[#663]: https://github.com/stm32-rs/stm32f4xx-hal/pull/663
17+
[#664]: https://github.com/stm32-rs/stm32f4xx-hal/pull/664
18+
[embedded-hal-1.0.0-alpha.10]: https://github.com/rust-embedded/embedded-hal/blob/v1.0.0-alpha.10/embedded-hal/CHANGELOG.md
19+
1020
## [v0.16.2] - 2023-06-27
1121

1222
### Changed

Cargo.toml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ embedded-dma = "0.2.0"
4040
bare-metal = { version = "1" }
4141
void = { default-features = false, version = "1.0.2" }
4242
embedded-hal = { features = ["unproven"], version = "0.2.7" }
43+
embedded-hal-nb = "1.0.0-alpha.2"
4344
display-interface = { version = "0.4.1", optional = true }
4445
fugit = "0.3.6"
4546
fugit-timer = "0.1.3"
@@ -53,7 +54,7 @@ version = "0.3.14"
5354
default-features = false
5455

5556
[dependencies.embedded-hal-one]
56-
version = "=1.0.0-alpha.8"
57+
version = "=1.0.0-alpha.10"
5758
package = "embedded-hal"
5859

5960
[dependencies.stm32_i2s_v12x]
@@ -99,20 +100,20 @@ rt = [] # deprecated
99100
stm32f401 = ["stm32f4/stm32f401", "device-selected", "gpio-f401",]
100101
stm32f405 = ["stm32f4/stm32f405", "device-selected", "gpio-f417"]
101102
stm32f407 = ["stm32f4/stm32f407", "device-selected", "gpio-f417"]
102-
stm32f415 = ["stm32f4/stm32f405", "device-selected", "gpio-f417"]
103-
stm32f417 = ["stm32f4/stm32f407", "device-selected", "gpio-f417"]
103+
stm32f415 = ["stm32f4/stm32f405", "device-selected", "gpio-f417", "cryp"]
104+
stm32f417 = ["stm32f4/stm32f407", "device-selected", "gpio-f417", "cryp"]
104105
stm32f410 = ["stm32f4/stm32f410", "device-selected", "gpio-f410"]
105106
stm32f411 = ["stm32f4/stm32f411", "device-selected", "gpio-f411"]
106107
stm32f412 = ["stm32f4/stm32f412", "device-selected", "gpio-f412"]
107108
stm32f413 = ["stm32f4/stm32f413", "device-selected", "gpio-f413"]
108-
stm32f423 = ["stm32f4/stm32f413", "device-selected", "gpio-f413"]
109+
stm32f423 = ["stm32f4/stm32f413", "device-selected", "gpio-f413", "aes"]
109110
stm32f427 = ["stm32f4/stm32f427", "device-selected", "gpio-f427", "fsmc"]
110111
stm32f429 = ["stm32f4/stm32f429", "device-selected", "gpio-f427", "fmc"]
111-
stm32f437 = ["stm32f4/stm32f427", "device-selected", "gpio-f427", "fsmc"]
112-
stm32f439 = ["stm32f4/stm32f429", "device-selected", "gpio-f427", "fmc"]
112+
stm32f437 = ["stm32f4/stm32f427", "device-selected", "gpio-f427", "fsmc", "cryp"]
113+
stm32f439 = ["stm32f4/stm32f429", "device-selected", "gpio-f427", "fmc", "cryp"]
113114
stm32f446 = ["stm32f4/stm32f446", "device-selected", "gpio-f446"]
114115
stm32f469 = ["stm32f4/stm32f469", "device-selected", "gpio-f469"]
115-
stm32f479 = ["stm32f4/stm32f469", "device-selected", "gpio-f469"]
116+
stm32f479 = ["stm32f4/stm32f469", "device-selected", "gpio-f469", "cryp"]
116117

117118
gpio-f401 = [
118119
"gpiod", "gpioe",
@@ -258,16 +259,20 @@ i2s = ["stm32_i2s_v12x"]
258259
fsmc_lcd = ["display-interface"]
259260

260261
defmt = ["dep:defmt", "fugit/defmt", "nb/defmt-0-3"]
262+
dfsdm = []
263+
sai = []
261264

262265
adc2 = []
263266
adc3 = []
267+
aes = []
264268
can1 = []
265269
can2 = []
266270
can3 = []
271+
cryp = []
267272
dac = []
268273
dcmi = []
269-
dfsdm1 = []
270-
dfsdm2 = []
274+
dfsdm1 = ["dfsdm"]
275+
dfsdm2 = ["dfsdm"]
271276
dsihost = []
272277
eth = []
273278
fmc = []
@@ -287,8 +292,8 @@ quadspi = []
287292
otg-fs = []
288293
otg-hs = []
289294
rng = []
290-
sai1 = []
291-
sai2 = []
295+
sai1 = ["sai"]
296+
sai2 = ["sai"]
292297
sdio = []
293298
spi3 = []
294299
spi4 = []

examples/rtc_alarm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use panic_halt as _;
99
use rtt_target::{rprintln, rtt_init_print};
1010

1111
use crate::hal::prelude::*;
12-
use crate::hal::rtc::{Alarm, AlarmDay, Event, Rtc};
12+
use crate::hal::rtc::{Alarm, Event, Rtc};
1313
use cortex_m::interrupt::{free, Mutex};
1414
use time::{
1515
macros::{date, time},
@@ -40,7 +40,7 @@ fn main() -> ! {
4040
.unwrap();
4141

4242
// Set alarm A for 1 minute
43-
rtc.set_alarm(Alarm::AlarmA, AlarmDay::Date(today), time!(21:58:32))
43+
rtc.set_alarm(Alarm::AlarmA, today, time!(21:58:32))
4444
.unwrap();
4545
rtc.enable_wakeup(8.secs());
4646
rtc.listen(&mut p.EXTI, Event::AlarmA);

0 commit comments

Comments
 (0)