Skip to content

Commit c4a6183

Browse files
committed
deps update, board changed to STM32F303RE for blinky
1 parent 15d6a22 commit c4a6183

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

rtic_v1/stm32f3_blinky/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ name = "stm32f3-blinky"
66
version = "0.1.0"
77

88
[dependencies]
9-
embedded-hal = "0.2.6"
9+
embedded-hal = "0.2.7"
1010
cortex-m-rtic = "1.1.4"
11-
systick-monotonic = "1.0.0"
11+
systick-monotonic = "1.0.1"
1212
panic-rtt-target = { version = "0.1.2", features = ["cortex-m"] }
1313
rtt-target = { version = "0.3.1", features = ["cortex-m"] }
1414

rtic_v1/stm32f3_blinky/Embed.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[default.general]
2+
chip = "stm32f303re"
3+
4+
5+
[default.rtt]
6+
enabled = true
7+
8+
[default.gdb]
9+
enabled = false

rtic_v1/stm32f3_blinky/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# STM32F3 RTIC Blink example
22

3-
Working example of simple LED blinking application for STM32 F3 Discovery boards based on the STM32F303VC chip. Example uses schedule API and peripherials access. This example is based on blue-pill blinky example.
3+
Working example of simple LED blinking application for STM32 F303 Nucleo-64 board based on the STM32F303RE chip. Example uses schedule API and peripherials access. This example is based on blue-pill blinky example.
44

55
## How-to
66

rtic_v1/stm32f3_blinky/src/main.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use panic_rtt_target as _;
77
use rtic::app;
88
use rtt_target::{rprintln, rtt_init_print};
9-
use stm32f3xx_hal::gpio::{Output, PushPull, PE10};
9+
use stm32f3xx_hal::gpio::{Output, PushPull, PA5};
1010
use stm32f3xx_hal::prelude::*;
1111
use systick_monotonic::{fugit::Duration, Systick};
1212

@@ -19,7 +19,7 @@ mod app {
1919

2020
#[local]
2121
struct Local {
22-
led: PE10<Output<PushPull>>,
22+
led: PA5<Output<PushPull>>,
2323
state: bool,
2424
}
2525

@@ -45,10 +45,10 @@ mod app {
4545
.freeze(&mut flash.acr);
4646

4747
// Setup LED
48-
let mut gpioe = cx.device.GPIOE.split(&mut rcc.ahb);
49-
let mut led = gpioe
50-
.pe10
51-
.into_push_pull_output(&mut gpioe.moder, &mut gpioe.otyper);
48+
let mut gpioa = cx.device.GPIOA.split(&mut rcc.ahb);
49+
let mut led = gpioa
50+
.pa5
51+
.into_push_pull_output(&mut gpioa.moder, &mut gpioa.otyper);
5252
led.set_high().unwrap();
5353

5454
// Schedule the blinking task

0 commit comments

Comments
 (0)