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

@ -27,6 +27,7 @@ atomic-polyfill = "0.1.5"
stm32-metapac = { version = "0.1.0", path = "../stm32-metapac", features = ["rt"] }
vcell = { version = "0.1.3", optional = true }
bxcan = "0.6.2"
nb = "1.0.0"
seq-macro = "0.2.2"