Add rtic-timer (timerqueue + monotonic) and rtic-monotonics (systick-monotonic)

This commit is contained in:
Emil Fresk 2023-01-23 20:05:47 +01:00 committed by Henrik Tjäder
parent b8b881f446
commit 306aa47170
276 changed files with 607 additions and 713 deletions

6
rtic-monotonics/.gitignore vendored Normal file
View file

@ -0,0 +1,6 @@
**/*.rs.bk
.#*
.gdb_history
/target
Cargo.lock
*.hex

View file

@ -0,0 +1,12 @@
[package]
name = "rtic-timer"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
cortex-m = { version = "0.7.6" }
embedded-hal-async = "0.2.0-alpha.0"
fugit = { version = "0.3.6", features = ["defmt"] }
rtic-timer = { version = "1.0.0", path = "../rtic-timer" }

View file

@ -0,0 +1,4 @@
[toolchain]
channel = "nightly"
components = [ "rust-src", "rustfmt", "llvm-tools-preview" ]
targets = [ "thumbv6m-none-eabi", "thumbv7m-none-eabi" ]

View file

@ -0,0 +1,11 @@
//! Crate
#![no_std]
#![no_main]
#![deny(missing_docs)]
#![allow(incomplete_features)]
#![feature(async_fn_in_trait)]
pub use rtic_timer::{Monotonic, TimeoutError, TimerQueue};
pub mod systick_monotonic;

View file

@ -0,0 +1 @@
//! ...