diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2024-02-27 13:34:02 +0100 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2024-02-27 13:51:47 +0100 |
| commit | 0b365f03eb77302663b751305aac7641b2721eb3 (patch) | |
| tree | 5ba79003b8f05c262e96b21b48de7ccc6bfea7dd /examples/embassy-stm32g4 | |
| parent | b1467c62b4b4f61ce53b6572c30920a72550ea45 (diff) | |
Release rtic v2.1.0, rtic-macros v2.1.0
Diffstat (limited to 'examples/embassy-stm32g4')
| -rw-r--r-- | examples/embassy-stm32g4/Cargo.toml | 3 | ||||
| -rw-r--r-- | examples/embassy-stm32g4/src/bin/blinky.rs | 8 |
2 files changed, 3 insertions, 8 deletions
diff --git a/examples/embassy-stm32g4/Cargo.toml b/examples/embassy-stm32g4/Cargo.toml index f4efbe9..dd97fdb 100644 --- a/examples/embassy-stm32g4/Cargo.toml +++ b/examples/embassy-stm32g4/Cargo.toml @@ -8,17 +8,14 @@ license = "MIT OR Apache-2.0" [dependencies.rtic] path="../../rtic" -version = "=2.0" features = ["thumbv7-backend"] [dependencies.rtic-monotonics] path="../../rtic-monotonics" -version = "=1.5" features = ["cortex-m-systick"] [dependencies.rtic-sync] path="../../rtic-sync" -version = "=1.3" [dependencies] # Change stm32g431cb to your chip name, if necessary. Also change .cargo/config.toml diff --git a/examples/embassy-stm32g4/src/bin/blinky.rs b/examples/embassy-stm32g4/src/bin/blinky.rs index 9cc4899..6855b1e 100644 --- a/examples/embassy-stm32g4/src/bin/blinky.rs +++ b/examples/embassy-stm32g4/src/bin/blinky.rs @@ -2,9 +2,7 @@ #![deny(warnings)] #![no_main] #![no_std] -#![feature(type_alias_impl_trait)] -use defmt::*; use embassy_stm32::gpio::{Level, Output, Speed}; use rtic::app; use rtic_monotonics::systick::*; @@ -32,10 +30,10 @@ mod app { Systick::start(cx.core.SYST, 25_000_000, systick_mono_token); let p = embassy_stm32::init(Default::default()); - info!("Hello World!"); + defmt::info!("Hello World!"); let mut led = Output::new(p.PC6, Level::High, Speed::Low); - info!("high"); + defmt::info!("high"); led.set_high(); // Schedule the blinking task @@ -48,7 +46,7 @@ mod app { async fn blink(_cx: blink::Context, mut led: Output<'static, embassy_stm32::peripherals::PC6>) { let mut state = true; loop { - info!("blink"); + defmt::info!("blink"); if state { led.set_high(); } else { |
