mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 12:55:23 +01:00
Add rtic-timer (timerqueue + monotonic) and rtic-monotonics (systick-monotonic)
This commit is contained in:
parent
b8b881f446
commit
306aa47170
276 changed files with 607 additions and 713 deletions
6
rtic-monotonics/.gitignore
vendored
Normal file
6
rtic-monotonics/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
**/*.rs.bk
|
||||
.#*
|
||||
.gdb_history
|
||||
/target
|
||||
Cargo.lock
|
||||
*.hex
|
||||
12
rtic-monotonics/Cargo.toml
Normal file
12
rtic-monotonics/Cargo.toml
Normal 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" }
|
||||
4
rtic-monotonics/rust-toolchain.toml
Normal file
4
rtic-monotonics/rust-toolchain.toml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[toolchain]
|
||||
channel = "nightly"
|
||||
components = [ "rust-src", "rustfmt", "llvm-tools-preview" ]
|
||||
targets = [ "thumbv6m-none-eabi", "thumbv7m-none-eabi" ]
|
||||
11
rtic-monotonics/src/lib.rs
Normal file
11
rtic-monotonics/src/lib.rs
Normal 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;
|
||||
1
rtic-monotonics/src/systick_monotonic.rs
Normal file
1
rtic-monotonics/src/systick_monotonic.rs
Normal file
|
|
@ -0,0 +1 @@
|
|||
//! ...
|
||||
Loading…
Add table
Add a link
Reference in a new issue