Skip to content

Commit c718bc8

Browse files
committed
deprecate rt feature
1 parent d64708f commit c718bc8

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

CHANGELOG.md

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

1010
### Changed
1111

12+
- Depracate "rt" feature as enabled by-default in `pac` []
1213
- Add `Pin::interrupt()` helper method [#476]
1314
- Add restriction for setting pins in alternate mode (`IntoAF`), add docs [#474]
1415
- Explicit order for PINS, more smart aliases for peripherals [#472]

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"

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ pub use stm32f4::stm32f469 as pac;
103103
pub use stm32f4::stm32f469 as pac;
104104

105105
// Enable use of interrupt macro
106-
#[cfg(feature = "rt")]
107106
pub use crate::pac::interrupt;
108107

109108
#[cfg(feature = "device-selected")]

0 commit comments

Comments
 (0)