diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-07-19 05:59:36 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-07-19 05:59:36 +0000 |
| commit | 26fdfdb00a1819f4a21c8d0fe1220c079983eecc (patch) | |
| tree | f5eac13ddbed4e67aa1b1a6243b880f233658352 /embassy-embedded-hal/src/adapter.rs | |
| parent | e5d3f01bc444c257dbdfc75e504767e8e13d2a02 (diff) | |
| parent | d2f4a9bf8df8de9f51b29659b464b4509af47dc6 (diff) | |
Merge #869
869: Add some docs. r=Dirbaio a=Dirbaio
bors r+
Co-authored-by: Dario Nieuwenhuis <[email protected]>
Diffstat (limited to 'embassy-embedded-hal/src/adapter.rs')
| -rw-r--r-- | embassy-embedded-hal/src/adapter.rs | 7 |
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 | |||
| 1 | use core::future::Future; | 3 | use core::future::Future; |
| 2 | 4 | ||
| 3 | use embedded_hal_02::{blocking, serial}; | 5 | use 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 | /// |
