Module rtic_monotonics::systick
source · Expand description
Monotonic
based on Cortex-M SysTick.
Note: this implementation is inefficient as it
ticks and generates interrupts at a constant rate.
§Example
use rtic_monotonics::systick::prelude::*;
systick_monotonic!(Mono, 1_000);
fn init() {
// Start the monotonic
Mono::start(systick, 12_000_000);
}
async fn usage() {
loop {
// Use the monotonic
let timestamp = Mono::now();
Systick::delay(100.millis()).await;
}
}
Modules§
- Common definitions and traits for using the systick monotonic
Structs§
- SysTick: System Timer
- Systick based
TimerQueueBackend
.