Release rtic v2.1.0, rtic-macros v2.1.0

This commit is contained in:
Emil Fresk 2024-02-27 13:34:02 +01:00
parent b1467c62b4
commit 0b365f03eb
6 changed files with 10 additions and 11 deletions

View file

@ -8,17 +8,14 @@ license = "MIT OR Apache-2.0"
[dependencies.rtic] [dependencies.rtic]
path="../../rtic" path="../../rtic"
version = "=2.0"
features = ["thumbv7-backend"] features = ["thumbv7-backend"]
[dependencies.rtic-monotonics] [dependencies.rtic-monotonics]
path="../../rtic-monotonics" path="../../rtic-monotonics"
version = "=1.5"
features = ["cortex-m-systick"] features = ["cortex-m-systick"]
[dependencies.rtic-sync] [dependencies.rtic-sync]
path="../../rtic-sync" path="../../rtic-sync"
version = "=1.3"
[dependencies] [dependencies]
# Change stm32g431cb to your chip name, if necessary. Also change .cargo/config.toml # Change stm32g431cb to your chip name, if necessary. Also change .cargo/config.toml

View file

@ -2,9 +2,7 @@
#![deny(warnings)] #![deny(warnings)]
#![no_main] #![no_main]
#![no_std] #![no_std]
#![feature(type_alias_impl_trait)]
use defmt::*;
use embassy_stm32::gpio::{Level, Output, Speed}; use embassy_stm32::gpio::{Level, Output, Speed};
use rtic::app; use rtic::app;
use rtic_monotonics::systick::*; use rtic_monotonics::systick::*;
@ -32,10 +30,10 @@ mod app {
Systick::start(cx.core.SYST, 25_000_000, systick_mono_token); Systick::start(cx.core.SYST, 25_000_000, systick_mono_token);
let p = embassy_stm32::init(Default::default()); 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); let mut led = Output::new(p.PC6, Level::High, Speed::Low);
info!("high"); defmt::info!("high");
led.set_high(); led.set_high();
// Schedule the blinking task // Schedule the blinking task
@ -48,7 +46,7 @@ mod app {
async fn blink(_cx: blink::Context, mut led: Output<'static, embassy_stm32::peripherals::PC6>) { async fn blink(_cx: blink::Context, mut led: Output<'static, embassy_stm32::peripherals::PC6>) {
let mut state = true; let mut state = true;
loop { loop {
info!("blink"); defmt::info!("blink");
if state { if state {
led.set_high(); led.set_high();
} else { } else {

View file

@ -7,6 +7,8 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top!
## [Unreleased] ## [Unreleased]
## [v2.1.0] - 2024-02-27
### Added ### Added
- RTIC v2 now works on stable. - RTIC v2 now works on stable.

View file

@ -22,7 +22,7 @@ name = "rtic-macros"
readme = "../README.md" readme = "../README.md"
repository = "https://github.com/rtic-rs/rtic" repository = "https://github.com/rtic-rs/rtic"
version = "2.0.1" version = "2.1.0"
[lib] [lib]
proc-macro = true proc-macro = true

View file

@ -7,6 +7,8 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top!
## [Unreleased] ## [Unreleased]
## [v2.1.0] - 2024-02-27
### Added ### Added
- Unstable support for ESP32-C3 - Unstable support for ESP32-C3

View file

@ -22,7 +22,7 @@ name = "rtic"
readme = "../README.md" readme = "../README.md"
repository = "https://github.com/rtic-rs/rtic" repository = "https://github.com/rtic-rs/rtic"
version = "2.0.1" version = "2.1.0"
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["rtic-macros/test-template"] features = ["rtic-macros/test-template"]
@ -38,7 +38,7 @@ bare-metal = "1.0.0"
#portable-atomic = { version = "0.3.19" } #portable-atomic = { version = "0.3.19" }
atomic-polyfill = "1" atomic-polyfill = "1"
rtic-monotonics = { path = "../rtic-monotonics", version = "1.4.0", optional = true } rtic-monotonics = { path = "../rtic-monotonics", version = "1.4.0", optional = true }
rtic-macros = { path = "../rtic-macros", version = "2.0.1" } rtic-macros = { path = "../rtic-macros", version = "=2.1.0" }
rtic-core = "1" rtic-core = "1"
critical-section = "1" critical-section = "1"