Add adapter for implementing async traits for blocking types

This allows writing drivers relying on async traits, while still
functioning with implementations that already implement the embedded-hal
traits.

Add examples to stm32l4 for using this feature.
This commit is contained in:
Ulf Lilleengen
2021-12-17 12:50:48 +01:00
parent ad2f469407
commit 3811c0a401
8 changed files with 316 additions and 2 deletions

View File

@ -10,3 +10,4 @@ std = []
[dependencies]
defmt = { version = "0.3", optional = true }
embedded-hal = { version = "0.2.6", features = ["unproven"] }
nb = "1.0.0"