aboutsummaryrefslogtreecommitdiff
path: root/embassy-embedded-hal/src/adapter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-embedded-hal/src/adapter.rs')
-rw-r--r--embassy-embedded-hal/src/adapter.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/embassy-embedded-hal/src/adapter.rs b/embassy-embedded-hal/src/adapter.rs
index 7d25d89fc..1c43f015f 100644
--- a/embassy-embedded-hal/src/adapter.rs
+++ b/embassy-embedded-hal/src/adapter.rs
@@ -1,9 +1,12 @@
1//! Adapters between embedded-hal traits.
2
1use core::future::Future; 3use core::future::Future;
2 4
3use embedded_hal_02::{blocking, serial}; 5use embedded_hal_02::{blocking, serial};
4 6
5/// BlockingAsync is a wrapper that implements async traits using blocking peripherals. This allows 7/// Wrapper that implements async traits using blocking implementations.
6/// driver writers to depend on the async traits while still supporting embedded-hal peripheral implementations. 8///
9/// This allows driver writers to depend on the async traits while still supporting embedded-hal peripheral implementations.
7/// 10///
8/// BlockingAsync will implement any async trait that maps to embedded-hal traits implemented for the wrapped driver. 11/// BlockingAsync will implement any async trait that maps to embedded-hal traits implemented for the wrapped driver.
9/// 12///