Skip to content

Commit cd4c1df

Browse files
committed
release 0.16
1 parent 14c7cb4 commit cd4c1df

File tree

9 files changed

+60
-50
lines changed

9 files changed

+60
-50
lines changed

.cargo/config

Lines changed: 0 additions & 11 deletions
This file was deleted.

.cargo/config.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[target.thumbv7em-none-eabihf]
2+
runner = 'probe-run --chip STM32F411CEUx'
3+
rustflags = [
4+
# `flip-link` moves stack at the end of flash
5+
#"-C", "linker=flip-link",
6+
"-C", "link-arg=-Tlink.x",
7+
"-C", "link-arg=-Tdefmt.x",
8+
# This is needed if your flash or ram addresses are not aligned to 0x10000 in memory.x
9+
# See https://github.com/rust-embedded/cortex-m-quickstart/pull/95
10+
#"-C", "link-arg=--nmagic",
11+
]
12+
13+
[build]
14+
target = "thumbv7em-none-eabihf"
15+
16+
[env]
17+
DEFMT_LOG = "info"

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Cache Dependencies
4646
uses: Swatinem/rust-cache@v2
4747
with:
48-
key: v0.14.0-${{ matrix.mcu }}
48+
key: v0.16.0-${{ matrix.mcu }}
4949

5050
- uses: actions-rs/cargo@v1
5151
with:

.github/workflows/clippy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Cache Dependencies
1818
uses: Swatinem/rust-cache@v2
1919
with:
20-
key: v0.14.0
20+
key: v0.16.0
2121

2222
- uses: actions-rs/clippy-check@v1
2323
with:

CHANGELOG.md

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

88
## [Unreleased]
99

10-
- Integrate new version of stm32_i2s (v0.4)
11-
- Fix mstr bit for SPI Master/Slave [#625]
10+
## [v0.15.0] - 2023-05-07
11+
12+
13+
### Changed
14+
15+
- Use `enum`s for alternate peripheral pins (generic over otype) [#594] [#596] [#600] [#610] [#617]
1216
- Add `ReadPin`, `PinSpeed` & `PinPull` traits [#623]
13-
- Add autoimplementations of `DMASet` [#614]
14-
- Simplify `gpio::Outport` [#611]
15-
- rcc `enable_unchecked`, timer features [#618]
16-
- Split SPI master and slave implementations [#609]
1717
- Split USART and UART implementations [#608]
18-
- Add `lapce` editor settings [#601]
19-
- Use `enum`s for alternate peripheral pins (generic over otype) [#594] [#596] [#600] [#610]
20-
- Add missing alternate enums [#617]
21-
- Added missing U(S)ART DMA traits for HAL serial types [#593]
18+
- Split SPI master and slave implementations [#609]
19+
- Simplify `gpio::Outport` [#611]
20+
- Add autoimplementations of `DMASet` [#614]
21+
- `ws2812::prerendered` in example [#615]
22+
- Integrate new version of stm32_i2s (v0.4) [#626]
23+
24+
### Added
25+
2226
- Improve SPI::new* docs [#587]
2327
- Add advanced timer dead time insertion example [#585]
28+
- Added missing U(S)ART DMA traits for HAL serial types [#593]
29+
- I2c dma can now use single DMA channel for TX or RX only [#598]
30+
- Improve SPI::new* docs [#587]
31+
- Implement `serial::RxISR` for `dma::Transfer<..., PERIPHERAL, ...>` where `PERIPHERAL: serial::RxISR`, add `rtic-serial-dma-rx-idle` example [#588]
32+
- Add `lapce` editor settings [#601]
33+
- rcc `enable_unchecked`, timer features [#618]
34+
35+
### Fixed
36+
2437
- Cleanups [#595]
2538
- Fix comlementary for independent channels [#599] [#603]
26-
- I2c dma can now use single DMA channel for TX or RX only [#598]
27-
- `ws2812::prerendered` in example
39+
- Fix mstr bit for SPI Master/Slave [#625]
2840

2941
[#585]: https://github.com/stm32-rs/stm32f4xx-hal/pull/585
3042
[#593]: https://github.com/stm32-rs/stm32f4xx-hal/pull/593
@@ -39,17 +51,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
3951
[#609]: https://github.com/stm32-rs/stm32f4xx-hal/pull/609
4052
[#611]: https://github.com/stm32-rs/stm32f4xx-hal/pull/611
4153
[#614]: https://github.com/stm32-rs/stm32f4xx-hal/pull/614
54+
[#615]: https://github.com/stm32-rs/stm32f4xx-hal/pull/615
4255
[#617]: https://github.com/stm32-rs/stm32f4xx-hal/pull/617
4356
[#618]: https://github.com/stm32-rs/stm32f4xx-hal/pull/618
4457
[#623]: https://github.com/stm32-rs/stm32f4xx-hal/pull/623
45-
### Changed
46-
47-
### Added
48-
49-
- Improve SPI::new* docs [#587]
50-
- Implement `serial::RxISR` for `dma::Transfer<..., PERIPHERAL, ...>` where `PERIPHERAL: serial::RxISR`, add `rtic-serial-dma-rx-idle` example [#588]
51-
52-
### Fixed
58+
[#626]: https://github.com/stm32-rs/stm32f4xx-hal/pull/626
5359

5460
## [v0.15.0] - 2023-03-13
5561

@@ -843,7 +849,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
843849

844850
- Support for stm32f407 and stm32f429.
845851

846-
[Unreleased]: https://github.com/stm32-rs/stm32f4xx-hal/compare/v0.15.0...HEAD
852+
[Unreleased]: https://github.com/stm32-rs/stm32f4xx-hal/compare/v0.16.0...HEAD
853+
[v0.16.0]: https://github.com/stm32-rs/stm32f4xx-hal/compare/v0.15.0...v0.16.0
847854
[v0.15.0]: https://github.com/stm32-rs/stm32f4xx-hal/compare/v0.14.0...v0.15.0
848855
[v0.14.0]: https://github.com/stm32-rs/stm32f4xx-hal/compare/v0.13.2...v0.14.0
849856
[v0.13.2]: https://github.com/stm32-rs/stm32f4xx-hal/compare/v0.13.1...v0.13.2

Cargo.toml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ license = "0BSD"
2020
name = "stm32f4xx-hal"
2121
readme = "README.md"
2222
repository = "https://github.com/stm32-rs/stm32f4xx-hal"
23-
version = "0.15.0"
23+
version = "0.16.0"
2424

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

2929
[dependencies]
30-
defmt = { version = "0.3.1", optional = true }
30+
defmt = { version = "0.3.4", optional = true }
3131
bxcan = { version = "0.7", optional = true }
32-
cortex-m = "0.7.4"
33-
cortex-m-rt = "0.7.1"
32+
cortex-m = { version = "0.7.7", features = ["critical-section-single-core"]}
33+
cortex-m-rt = "0.7.3"
3434
nb = "1.1"
35-
rand_core = "0.6.3"
35+
rand_core = "0.6.4"
3636
stm32f4 = "0.15.1"
3737
synopsys-usb-otg = { version = "0.3.2", features = ["cortex-m"], optional = true }
3838
sdio-host = { version = "0.6.0", optional = true }
@@ -45,7 +45,7 @@ fugit = "0.3.6"
4545
fugit-timer = "0.1.3"
4646
rtic-monotonic = { version = "1.0", optional = true }
4747
systick-monotonic = { version = "1.0", optional = true }
48-
bitflags = "1.3.2"
48+
bitflags = "2.2"
4949
embedded-storage = "0.2"
5050

5151
[dependencies.time]
@@ -61,7 +61,7 @@ version = "0.4.0"
6161
optional = true
6262

6363
[dev-dependencies]
64-
defmt = "0.3.2"
64+
defmt = "0.3.4"
6565
defmt-rtt = "0.4.0"
6666
panic-probe = { version = "0.3.0", features = [ "print-defmt" ] }
6767
panic-semihosting = "0.6.0"
@@ -73,11 +73,10 @@ embedded-graphics = "0.7.1"
7373
usb-device = "0.2.9"
7474
usbd-serial = "0.1.1"
7575
micromath = "2"
76-
cortex-m-rtic = "1.1.3"
76+
cortex-m-rtic = { version = "1.1.4", features = ["test-critical-section"] }
7777
dwt-systick-monotonic = "1.1"
7878
st7789 = "0.7.0"
79-
panic-rtt-target = { version = "0.1.2", features = ["cortex-m"] }
80-
rtt-target = { version = "0.3.1", features = ["cortex-m"] }
79+
rtt-target = { version = "0.4.0" }
8180
display-interface-spi = "0.4.1"
8281
ist7920 = "0.1.1"
8382
smart-leds = "0.3.0"
@@ -490,4 +489,3 @@ required-features = ["otg-fs", "usb_fs"] # stm32f401
490489
[[example]]
491490
name = "ws2812-spi"
492491
required-features = ["device-selected"]
493-

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ cortex-m-rt = "0.7"
9494
panic-halt = "0.2"
9595

9696
[dependencies.stm32f4xx-hal]
97-
version = "0.15.0"
97+
version = "0.16.0"
9898
features = ["stm32f407"] # replace the model of your microcontroller here
9999
# and add other required features
100100
```

examples/rtc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#![no_std]
77

88
use cortex_m_rt::entry;
9-
use panic_rtt_target as _;
9+
use panic_halt as _;
1010
use rtt_target::{rprintln, rtt_init_print};
1111

1212
use stm32f4xx_hal::{pac, prelude::*, rtc::Rtc};

src/i2s.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
55
use crate::gpio::{self, NoPin};
66
use crate::pac;
7-
use crate::rcc;
8-
use crate::rcc::Clocks;
9-
use crate::rcc::Reset;
7+
#[allow(unused)]
8+
use crate::rcc::{self, Clocks, Reset};
109
use fugit::HertzU32 as Hertz;
1110

1211
#[cfg(feature = "stm32_i2s_v12x")]

0 commit comments

Comments
 (0)