Skip to content

Commit d38e912

Browse files
bors[bot]burrbull
andauthored
Merge #476
476: Exti docs, deprecate rt r=therealprof a=burrbull Co-authored-by: Andrey Zgarbul <[email protected]>
2 parents 23f0397 + 05f498a commit d38e912

File tree

14 files changed

+54
-39
lines changed

14 files changed

+54
-39
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ jobs:
5353
- uses: actions-rs/cargo@v1
5454
with:
5555
command: check
56-
args: --features=${{ matrix.mcu }},rt,usb_fs,sdio-host,can,i2s,fsmc_lcd --examples
56+
args: --features=${{ matrix.mcu }},usb_fs,sdio-host,can,i2s,fsmc_lcd --examples

.github/workflows/clippy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
- uses: actions-rs/clippy-check@v1
2727
with:
2828
token: ${{ secrets.GITHUB_TOKEN }}
29-
args: --examples --features=stm32f479,rt,usb_fs,sdio-host
29+
args: --examples --features=stm32f479,usb_fs,sdio-host

CHANGELOG.md

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,42 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Changed
1111

12-
- Add `Pin::interrupt()` helper method
13-
- Add restriction for setting pins in alternate mode (`IntoAF`), add docs
14-
- Explicit order for PINS, more smart aliases for peripherals
15-
- Add `AFn` type aliases for `Alternate<n>`
16-
- CI updates + cache
17-
- Add missing `embedded-hal 1.0` for `DynamicPin`
18-
- Remove pull resistor from `Input` mode, use `Pull` enum instead, add universal `into_mode` pin converter
12+
- Depracate "rt" feature as enabled by-default in `pac` [#476]
13+
- Add `Pin::interrupt()` helper method [#476]
14+
- Add restriction for setting pins in alternate mode (`IntoAF`), add docs [#474]
15+
- Explicit order for PINS, more smart aliases for peripherals [#472]
16+
- Add `AFn` type aliases for `Alternate<n>` [#471]
17+
- CI updates + cache [#468]
18+
- Add missing `embedded-hal 1.0` for `DynamicPin` [#470]
19+
- Remove pull resistor from `Input` mode, use `Pull` enum instead, add universal `into_mode` pin converter [#467]
1920
- Move pin mode at the end of generics, add defaults for modes,
2021
bump MSRV to 1.59 [#418]
21-
- Move hd44780-driver to dev-dependencies
22+
- Move hd44780-driver to dev-dependencies [#465]
2223

2324
### Fixed
24-
- Fixed RCC example.
25+
- Fixed RCC example [#473]
2526
- Enable the defmt feature on fugit when the defmt feature on the
26-
crate is enabled
27+
crate is enabled [#465]
2728

2829
### Added
2930

3031
- Support eMMC peripherals using SDIO module [#458]
31-
- `defmt::Format` derive on enums behind `defmt` feature
32+
- `defmt::Format` derive on enums behind `defmt` feature [#460]
3233
- SPI transactional impl [#464]
3334

3435
[#418]: https://github.com/stm32-rs/stm32f4xx-hal/pull/418
3536
[#458]: https://github.com/stm32-rs/stm32f4xx-hal/pull/458
37+
[#460]: https://github.com/stm32-rs/stm32f4xx-hal/pull/460
3638
[#464]: https://github.com/stm32-rs/stm32f4xx-hal/pull/464
39+
[#465]: https://github.com/stm32-rs/stm32f4xx-hal/pull/465
40+
[#467]: https://github.com/stm32-rs/stm32f4xx-hal/pull/467
41+
[#468]: https://github.com/stm32-rs/stm32f4xx-hal/pull/468
42+
[#470]: https://github.com/stm32-rs/stm32f4xx-hal/pull/470
43+
[#471]: https://github.com/stm32-rs/stm32f4xx-hal/pull/471
44+
[#472]: https://github.com/stm32-rs/stm32f4xx-hal/pull/472
45+
[#473]: https://github.com/stm32-rs/stm32f4xx-hal/pull/473
46+
[#474]: https://github.com/stm32-rs/stm32f4xx-hal/pull/474
47+
[#476]: https://github.com/stm32-rs/stm32f4xx-hal/pull/476
3748

3849
## [v0.12.0] - 2022-02-23
3950

Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repository = "https://github.com/stm32-rs/stm32f4xx-hal"
2323
version = "0.12.0"
2424

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

2929
[dependencies]
@@ -88,7 +88,7 @@ features = ["macros"]
8888

8989
[features]
9090
device-selected = []
91-
rt = ["stm32f4/rt"]
91+
rt = [] # deprecated
9292
# Note: stm32f4 has only one feature for some very similar device families,
9393
# so it's intended for e.g. stm32f405/415 to both enable stm32f4/stm32f405.
9494
stm32f401 = ["stm32f4/stm32f401", "device-selected", "gpio-f401",
@@ -355,7 +355,7 @@ uart8 = []
355355
uart9 = []
356356
uart10 = []
357357

358-
rtic = ["rt", "rtic-monotonic"]
358+
rtic = ["rtic-monotonic"]
359359

360360
[profile.dev]
361361
debug = true
@@ -368,7 +368,7 @@ opt-level = "s"
368368

369369
[[example]]
370370
name = "blinky-timer-irq"
371-
required-features = ["rt", "tim2"] # stm32f411
371+
required-features = ["tim2"] # stm32f411
372372

373373
[[example]]
374374
name = "usb_serial"
@@ -396,11 +396,11 @@ required-features = ["device-selected"] # stm32f411
396396

397397
[[example]]
398398
name = "stopwatch-with-ssd1306-and-interrupts"
399-
required-features = ["rt", "tim2"] # stm32f411
399+
required-features = ["tim2"] # stm32f411
400400

401401
[[example]]
402402
name = "analog-stopwatch-with-spi-ssd1306"
403-
required-features = ["rt", "spi4", "tim2", "gpioe", "gpiog"] # stm32f429
403+
required-features = ["spi4", "tim2", "gpioe", "gpiog"] # stm32f429
404404

405405
[[example]]
406406
name = "rng-display"
@@ -420,7 +420,7 @@ required-features = ["stm32f411", "i2s"]
420420

421421
[[example]]
422422
name = "i2s-audio-out-dma"
423-
required-features = ["stm32f411", "rt", "i2s"]
423+
required-features = ["stm32f411", "i2s"]
424424

425425
[[example]]
426426
name = "rtic"
@@ -460,7 +460,7 @@ required-features = ["device-selected"]
460460

461461
[[example]]
462462
name = "spi_dma"
463-
required-features = ["rt", "stm32f411"]
463+
required-features = ["stm32f411"]
464464

465465
[[example]]
466466
name = "dynamic_gpio"

examples/f413disco_lcd_ferris.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//! To run this feature you can (after installing `probe-run` use:
55
//!
66
//! ```bash
7-
//! cargo run --release --example f413disco_lcd_ferris --features="stm32f413,rt,fsmc_lcd"
7+
//! cargo run --release --example f413disco_lcd_ferris --features="stm32f413,fsmc_lcd"
88
//! ```
99
1010
#![no_main]

examples/rng-display.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//! Generate random numbers using the RNG peripheral and display the values.
22
//! This example is specifically tuned to run correctly on the
33
//! stm32f4-discovery board (model STM32F407G-DISC1)
4-
//! This example requires the `rt` feature to be enabled. For example:
4+
//! For example:
55
//!
66
//! ```bash
7-
//! cargo run --release --features stm32f407,rt --example rng-display
7+
//! cargo run --release --features stm32f407 --example rng-display
88
//! ```
99
//!
1010
//! Note that this example requires the `--release` build flag because it is too

examples/ssd1306-image.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//! Draw Ferris the Rust mascot on an SSD1306 display
22
//!
3-
//! This example requires the `rt` feature to be enabled. For example, to run on an STM32F411 Nucleo
3+
//! For example, to run on an STM32F411 Nucleo
44
//! dev board, run the following:
55
//!
66
//! ```bash
7-
//! cargo run --features stm32f411,rt --release --example ssd1306-image
7+
//! cargo run --features stm32f411--release --example ssd1306-image
88
//! ```
99
//!
1010
//! Note that `--release` is required to fix link errors for smaller devices.

examples/st7789-lcd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//!
77
//! Procedure: Compile this example, load it onto the microcontroller, and run it.
88
//!
9-
//! Example run command: `cargo run --release --features stm32f412,rt,fsmc_lcd --example st7789-lcd`
9+
//! Example run command: `cargo run --release --features stm32f412,fsmc_lcd --example st7789-lcd`
1010
//!
1111
//! Expected behavior: The display shows a black background with four colored circles. Periodically,
1212
//! the color of each circle changes.

examples/stopwatch-with-ssd1306-and-interrupts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//! A simple stopwatch app running on an SSD1306 display
22
//!
3-
//! This example requires the `rt` feature to be enabled. For example, to run on an STM32F411 Nucleo
3+
//! For example, to run on an STM32F411 Nucleo
44
//! dev board, run the following:
55
//!
66
//! ```bash
7-
//! cargo run --features stm32f411,rt --release --example stopwatch-with-ssd1306-and-interrupts
7+
//! cargo run --features stm32f411 --release --example stopwatch-with-ssd1306-and-interrupts
88
//! ```
99
//!
1010
//! Note that `--release` is required to fix link errors for smaller devices.

examples/timer-periph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//! stm32f4-discovery board (model STM32F407G-DISC1).
55
//!
66
//! ```bash
7-
//! cargo run --release --features stm32f407,rt --example timer-periph
7+
//! cargo run --release --features stm32f407 --example timer-periph
88
//! ```
99
1010
#![no_std]

0 commit comments

Comments
 (0)