riscv-rust / e310x-hal

Implementation of the `embedded-hal` traits for E310x microcontrollers
17 stars 18 forks source link

embedded-hal v1.0.0-alpha.8 support #45

Open almindor opened 2 years ago

almindor commented 2 years ago

Adds support for embedded-hal v1.0.0-alpha.8 by refactoring existing SPI device implementation into using the new traits.

Tested with write only so far.

Requires: https://github.com/riscv-rust/e310x/pull/26 https://github.com/rust-embedded/riscv-rt/pull/101 https://github.com/rust-embedded/riscv/pull/106

Based off of @ahmedcharles work in #42 which I kind of botched up by merging to master too soon. @ahmedcharles if you feel strongly about the contribution loss here please ping me here and we can figure out how to best combine these changes so you get the proper credit for the alpha.7 changes.

ahmedcharles commented 2 years ago

I'm fine with a mention in the commit message. Thanks. :)

almindor commented 2 years ago

I'm fine with a mention in the commit message. Thanks. :)

Added in the commit msg for alpha.7 support