Expand description
Traits used to adapter different embedded RTOS.
See OsInterface
§Cargo Features
alloc: Enabled by default.std: Used for unit test. Disabled by default.std-custom-mutex: Enable it when you want to useBlockingMutexinstead of STDMutexin STD environment.
Re-exports§
pub use mutex_impls::FakeRawMutex;pub use mutex_impls::Mutex;pub use os_impls::FakeOs;pub use os_impls::StdOs;pub use embedded_hal;pub use fugit;pub use mutex_traits;pub use timeout_trait;pub use notifier_impls::*;
Modules§
- delay
- duration
- embedded_
hal - crates.io crates.io Documentation Minimum Supported Rust Version
- fake_
impls - fugit
fugitprovides a comprehensive library ofDurationandInstantfor the handling of time in embedded systems. The library is specifically designed to maximize const-ification which allows for most comparisons and changes of time-base to be made at compile time, rather than run time.- mutex_
impls - notifier
- notifier_
impls - os_
impls - prelude
- std_
impls - timeout
Structs§
- Fake
Tick Instant - Tick
Delay DelayNsimplementation- Tick
Duration - Tick
Timeout
Traits§
- Const
Init - Const Init Trait
- OsInterface
- Adapter for different operating systems.
- RawMutex
- Raw mutex trait.
- Tick
Instant - It doesn’t require operation interfaces on
TickInstantitself. Embedded systems can thus implement only the relative time version.
Type Aliases§
- Duration
- Kilohertz
U32 - Alias for kilohertz rate (
u32backing storage) - Micros
Duration U32 - Alias for microsecond duration (
u32backing storage) - Timeout