Crates.io | embassy-time-driver |
lib.rs | embassy-time-driver |
version | 0.1.0 |
source | src |
created_at | 2024-01-11 22:55:55.442576 |
updated_at | 2024-01-11 22:55:55.442576 |
description | Driver trait for embassy-time |
homepage | |
repository | https://github.com/embassy-rs/embassy |
max_upload_size | |
id | 1097041 |
size | 42,642 |
This crate contains the driver trait necessary for adding embassy-time
support
for a new hardware platform.
If you want to use embassy-time
with already made drivers, you should depend on the main embassy-time
crate, not on this crate.
If you are writing a driver, you should depend only on this crate, not on the main embassy-time
crate.
This will allow your driver to continue working for newer embassy-time
major versions, without needing an update,
if the driver trait has not had breaking changes.
embassy-time
is backed by a global "time driver" specified at build time.
Only one driver can be active in a program.
All methods and structs transparently call into the active driver. This makes it
possible for libraries to use embassy-time
in a driver-agnostic way without
requiring generic parameters.