2023-01-23 20:05:47 +01:00
|
|
|
//! Crate
|
|
|
|
|
|
|
|
#![no_std]
|
|
|
|
#![deny(missing_docs)]
|
2023-01-27 13:18:29 +01:00
|
|
|
//deny_warnings_placeholder_for_ci
|
2023-01-23 20:05:47 +01:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
#![feature(async_fn_in_trait)]
|
|
|
|
|
2023-01-23 20:57:56 +01:00
|
|
|
pub use rtic_time::{Monotonic, TimeoutError, TimerQueue};
|
2023-01-23 20:05:47 +01:00
|
|
|
|
2023-03-04 02:26:34 +01:00
|
|
|
#[cfg(feature = "cortex-m-systick")]
|
2023-02-10 07:52:50 +01:00
|
|
|
pub mod systick;
|
|
|
|
|
|
|
|
#[cfg(feature = "rp2040")]
|
|
|
|
pub mod rp2040;
|
2023-03-11 20:47:39 +01:00
|
|
|
|
|
|
|
/// This marker is implemented on an interrupt token to enforce that the right tokens
|
|
|
|
/// are given to the correct monotonic implementation.
|
|
|
|
///
|
|
|
|
/// This trait is implemented by this crate and not intended for user implementation.
|
|
|
|
///
|
|
|
|
/// # Safety
|
|
|
|
///
|
|
|
|
/// This is only safely implemented by this crate.
|
|
|
|
pub unsafe trait InterruptToken<Periperhal> {}
|