Hacker News new | ask | show | jobs
by dirbaio 1065 days ago
> It appears unsuitable for use with DMA, which I use for all runtime IO

The `embedded-hal-async` traits can be implemented with DMA, the Embassy HALs do so. This is a problem with the `nb` traits only.

> The APIs tend to be a mess due to heavy use of typestates

This is an issue of some HAL crates implementing the traits, not with the `embedded-hal` traits themselves. I also dislike the heavy use of typestates/generics, Embassy tries to implement the traits while keeping typestates at a minimum.

(disclaimer: Embassy maintainer here)