Skip to content

Commit e5f5370

Browse files
committed
release 0.20
1 parent 2f8b2f8 commit e5f5370

8 files changed

+50
-31
lines changed

.lapce/settings.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[lapce-rust]
22
check.allTargets = false
33
check.targets = "thumbv7em-none-eabihf"
4-
cargo.features = ["rtic", "stm32f411"]
4+
cargo.features = ["defmt", "rtic1", "stm32f411"]

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"rust-analyzer.check.targets": "thumbv7em-none-eabihf",
44
"rust-analyzer.cargo.features": [
55
"defmt",
6-
"rtic",
6+
"rtic1",
77
"stm32f411"
88
],
99
}

CHANGELOG.md

+36-18
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,24 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [v0.20.0] - 2024-01-14
11+
1012
### Changed
1113

12-
- shorten gpio ptr access
13-
- bump embedded-hal to `1.0` (no more RC!)
14-
- make `embedded-hal` `1.0` main implementation
15-
- add `embedded-hal-nb::serial`
16-
- rename `rtic` feature to `rtic1`, add `rtic2`
14+
- shorten gpio ptr access [#719]
15+
- bump embedded-hal to `1.0` (no more RC!) [#723]
16+
- make `embedded-hal` `1.0` main implementation [#720]
17+
- add `embedded-hal-nb::serial` [#726]
18+
- rename `rtic` feature to `rtic1`, add `rtic2` [#727]
19+
- rename `stm32_i2s_v12x` feature to `i2s` [#718]
20+
- Check features enabled in `build-rs` [#718]
21+
22+
[#718]: https://github.com/stm32-rs/stm32f4xx-hal/pull/718
23+
[#719]: https://github.com/stm32-rs/stm32f4xx-hal/pull/719
24+
[#720]: https://github.com/stm32-rs/stm32f4xx-hal/pull/720
25+
[#723]: https://github.com/stm32-rs/stm32f4xx-hal/pull/723
26+
[#726]: https://github.com/stm32-rs/stm32f4xx-hal/pull/726
27+
[#727]: https://github.com/stm32-rs/stm32f4xx-hal/pull/727
1728

1829
## [v0.19.0] - 2023-12-11
1930

@@ -22,42 +33,48 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2233
- Added an example to show how to do DMA with UART (Rx only) [#698]
2334

2435
### Changed
25-
26-
- Check features enabled in `build-rs`
27-
- bump embedded-hal to `1.0-rc2`
28-
- Use `as_ptr` for register address casting
29-
- Updated `synopsys-usb-otg` to `0.4.0`
30-
- use `repr(u32)` for flags, revert `spi::CrcError` clean,
31-
- revert `spi::check_read`/`check_write`
36+
- bump embedded-hal to `1.0-rc2` [#704]
37+
- Use `as_ptr` for register address casting [#703]
38+
- Updated `synopsys-usb-otg` to `0.4.0` [#699]
39+
- use `repr(u32)` for flags, revert `spi::CrcError` clean [#709]
40+
- revert `spi::check_read`/`check_write` [#712]
3241

3342
### Fixed
3443

35-
- Wait at least given time in `embedded-hal` `delay`
44+
- Wait at least given time in `embedded-hal` `delay` [#704]
3645

3746
## [v0.18.0] - 2023-11-19
3847

39-
- bump embedded-hal to `1.0-rc1` (remove `serial` part)
48+
- bump embedded-hal to `1.0-rc1` (remove `serial` part) [#694]
4049
- complete and rework Dma Stream API [#666]
4150
- Use `enumflags2::BitFlags` for interrupt flags and events [#673]
4251
- SPI bidi takes 2 pins [#526]
4352
- `Fast Read Quad I/O (EBh)` in `qspi-w25q` example now matches W25QXX datasheet. [#682]
44-
- `embedded-storage` version bumped to 0.3
53+
- `embedded-storage` version bumped to 0.3 [#693]
4554

4655
### Fixed
4756

48-
- fix serial RxN & TxN alises
57+
- fix serial RxN & TxN alises [#680]
4958

5059
### Added
5160

52-
- add `.set_count()` for QEI, add `.write_count()` for TIM [#677]
61+
- add `.set_count()` for QEI, add `.write_count()` for TIM [#677]
5362
- add "Fast start" section in README [#678]
5463

5564
[#526]: https://github.com/stm32-rs/stm32f4xx-hal/pull/526
5665
[#666]: https://github.com/stm32-rs/stm32f4xx-hal/pull/666
5766
[#673]: https://github.com/stm32-rs/stm32f4xx-hal/pull/673
5867
[#677]: https://github.com/stm32-rs/stm32f4xx-hal/pull/677
5968
[#678]: https://github.com/stm32-rs/stm32f4xx-hal/pull/678
69+
[#680]: https://github.com/stm32-rs/stm32f4xx-hal/pull/680
6070
[#682]: https://github.com/stm32-rs/stm32f4xx-hal/pull/682
71+
[#693]: https://github.com/stm32-rs/stm32f4xx-hal/pull/693
72+
[#694]: https://github.com/stm32-rs/stm32f4xx-hal/pull/694
73+
[#699]: https://github.com/stm32-rs/stm32f4xx-hal/pull/699
74+
[#703]: https://github.com/stm32-rs/stm32f4xx-hal/pull/703
75+
[#704]: https://github.com/stm32-rs/stm32f4xx-hal/pull/704
76+
[#709]: https://github.com/stm32-rs/stm32f4xx-hal/pull/709
77+
[#712]: https://github.com/stm32-rs/stm32f4xx-hal/pull/712
6178

6279
## [v0.17.1] - 2023-07-24
6380

@@ -981,7 +998,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
981998

982999
- Support for stm32f407 and stm32f429.
9831000

984-
[Unreleased]: https://github.com/stm32-rs/stm32f4xx-hal/compare/v0.19.0...HEAD
1001+
[Unreleased]: https://github.com/stm32-rs/stm32f4xx-hal/compare/v0.20.0...HEAD
1002+
[v0.20.0]: https://github.com/stm32-rs/stm32f4xx-hal/compare/v0.19.0...v0.20.0
9851003
[v0.19.0]: https://github.com/stm32-rs/stm32f4xx-hal/compare/v0.18.0...v0.19.0
9861004
[v0.18.0]: https://github.com/stm32-rs/stm32f4xx-hal/compare/v0.17.1...v0.18.0
9871005
[v0.17.1]: https://github.com/stm32-rs/stm32f4xx-hal/compare/v0.17.0...v0.17.1

Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ license = "0BSD"
2020
name = "stm32f4xx-hal"
2121
readme = "README.md"
2222
repository = "https://github.com/stm32-rs/stm32f4xx-hal"
23-
version = "0.19.0"
23+
version = "0.20.0"
2424

2525
[package.metadata.docs.rs]
2626
features = ["stm32f429", "usb_fs", "can", "i2s", "fsmc_lcd", "rtic1", "defmt"]
2727
targets = ["thumbv7em-none-eabihf"]
2828

2929
[dependencies]
30-
defmt = { version = "0.3.4", optional = true }
30+
defmt = { version = "0.3.5", optional = true }
3131
bxcan = { version = "0.7", optional = true }
3232
cortex-m = { version = "0.7.7", features = ["critical-section-single-core"]}
3333
cortex-m-rt = "0.7.3"
@@ -44,7 +44,7 @@ fugit = "0.3.7"
4444
fugit-timer = "0.1.3"
4545
# rtic1
4646
rtic-monotonic = { version = "1.0", optional = true }
47-
systick-monotonic = { version = "1.0", optional = true }
47+
systick-monotonic = { version = "1.0.1", optional = true }
4848
cortex-m-rtic = { version = "1.1.4", features = ["test-critical-section"], optional = true }
4949
# rtic2
5050
rtic-time = { version = "1.3", optional = true }
@@ -90,7 +90,7 @@ usbd-serial = "0.2.0"
9090
micromath = "2"
9191
dwt-systick-monotonic = "1.1"
9292
st7789 = "0.7.0"
93-
rtt-target = { version = "0.4.0" }
93+
rtt-target = { version = "0.5.0" }
9494
display-interface-spi = "0.4.1"
9595
ist7920 = "0.1.1"
9696
smart-leds = "0.3.0"

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ single model.
4848

4949
### Other optional features
5050

51-
* `rtic` — support monotonic timers that can be used by [RTIC framework](https://crates.io/crates/cortex-m-rtic).
51+
* `rtic1` — support [RTICv1 framework](https://crates.io/crates/cortex-m-rtic).
52+
* `rtic2` — support [RTICv2 framework](https://crates.io/crates/rtic) (incompatible with `rtic1`, require nightly compiller).
5253
* `defmt` — implementation of `defmt::Format` for public enums and structures. See [defmt](https://crates.io/crates/defmt).
5354
* `can` — bxCAN peripheral support. See [bxcan](https://crates.io/crates/bxcan).
5455
* `i2s` — I2S peripheral support. See [stm32_i2s_v12x](https://crates.io/crates/stm32_i2s_v12x).

examples/f413disco-lcd-ferris.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#![no_std]
1212

1313
use panic_halt as _;
14-
use rtt_target::{self, rtt_init_print};
14+
use rtt_target::{self, rtt_init_print, ChannelMode};
1515

1616
use stm32f4xx_hal as hal;
1717

@@ -694,7 +694,7 @@ const FERRIS: [u8; 11008] = [
694694
#[cortex_m_rt::entry]
695695
fn main() -> ! {
696696
// Initialise RTT so you can see panics and other output in your `probe-run` output
697-
rtt_init_print!(NoBlockTrim);
697+
rtt_init_print!(ChannelMode::NoBlockTrim);
698698

699699
if let (Some(p), Some(cp)) = (Peripherals::take(), CorePeripherals::take()) {
700700
// Split all the GPIO blocks we need

examples/rtic-dual-i2s-audio-in-out.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ mod app {
133133
let channels = rtt_init! {
134134
up: {
135135
0: {
136-
size: 128
136+
size: 128,
137137
name: "Logs"
138138
}
139139
1: {
140-
size: 128
140+
size: 128,
141141
name: "Panics"
142142
}
143143
}

examples/rtic-i2s-audio-in-out.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ mod app {
136136
let channels = rtt_init! {
137137
up: {
138138
0: {
139-
size: 128
139+
size: 128,
140140
name: "Logs"
141141
}
142142
1: {
143-
size: 128
143+
size: 128,
144144
name: "Panics"
145145
}
146146
}

0 commit comments

Comments
 (0)