Skip to content

Commit 4951a8c

Browse files
dependabot[bot]AfoHT
authored andcommitted
Update stm32l4xx-hal requirement in /rtic_v0.5/stm32l4_heartbeat
Updates the requirements on [stm32l4xx-hal](https://github.com/MabezDev/stm32l4xx-hal) to permit the latest version. - [Release notes](https://github.com/MabezDev/stm32l4xx-hal/releases) - [Changelog](https://github.com/stm32-rs/stm32l4xx-hal/blob/master/CHANGELOG.md) - [Commits](stm32-rs/stm32l4xx-hal@v0.5.0...v0.6.0) --- updated-dependencies: - dependency-name: stm32l4xx-hal dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
1 parent 611da31 commit 4951a8c

File tree

3 files changed

+119
-44
lines changed

3 files changed

+119
-44
lines changed

rtic_v0.5/stm32l4_heartbeat/Cargo.lock

Lines changed: 112 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rtic_v0.5/stm32l4_heartbeat/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ edition = "2018"
1212
panic-semihosting = "0.6"
1313
cortex-m-semihosting = "0.5.0"
1414
embedded-hal = "0.2.3"
15-
cortex-m-rtic = "0.5.1"
16-
stm32l4xx-hal = { version = "0.5.0", features = ["rt", "stm32l4x2"] }
15+
cortex-m-rtic = { version = "0.5.9", default-features = false, features = ["cortex-m-7"] }
16+
stm32l4xx-hal = { version = "0.6.0", features = ["rt", "stm32l4x2"] }
1717
heapless = "0.7.16"
1818

1919
# this lets you use `cargo fix`!

rtic_v0.5/stm32l4_heartbeat/src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ const APP: () = {
3838
// Setup clocks
3939
let mut flash = cx.device.FLASH.constrain();
4040
let mut rcc = cx.device.RCC.constrain();
41-
let _clocks = rcc.cfgr.sysclk(CLK_SPEED_MHZ.mhz()).freeze(&mut flash.acr);
41+
let mut pwr = cx.device.PWR.constrain(&mut rcc.apb1r1);
42+
let _clocks = rcc
43+
.cfgr
44+
.sysclk(CLK_SPEED_MHZ.mhz())
45+
.freeze(&mut flash.acr, &mut pwr);
4246

4347
// Setup LED
4448
let mut gpiob = cx.device.GPIOB.split(&mut rcc.ahb2);

0 commit comments

Comments
 (0)