embassy-rs / embassy

Modern embedded framework, using Rust and async.
https://embassy.dev
Apache License 2.0
4.9k stars 670 forks source link

Using 3rd party driver crates with embassy #1533

Open Rhvarrier opened 1 year ago

Rhvarrier commented 1 year ago

Hello,

I'm considering porting an existing rust embedded project to embassy and would like to know if embassy has any support for driver crates or should I rewrite them. From what I understand embassy doesn't seem to follow all of embedded-hal. If so is there any plan to port the existing drivers to be compatible with embassy ?

Dirbaio commented 1 year ago

Embassy HALs implement most embedded-hal and embedded-hal-async traits, so most drivers should work as-is.

Rhvarrier commented 1 year ago

Thanks for the reply. I think it would be a good idea to document this in the Readme and to at least list all the drivers that work as is with embassy