riscv-rust / e310x-hal

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

Peripherals #4

Open dvc94ch opened 6 years ago

dvc94ch commented 6 years ago
laanwj commented 5 years ago

SPI support would be nice to have !

laanwj commented 5 years ago

I'd really like PWM and SPI support; would love to use rust with this board instead of C. I'm willing to help here when I have some time, I'm new to rust BSPs though, is there a specific interface these should conform to?

Disasm commented 5 years ago

@laanwj I'm trying to implement SPI support at the moment. For PWM you need to use Pwm and PwmPin traits from the embedded-hal crate.

laanwj commented 5 years ago

@Disasm thanks!

Disasm commented 5 years ago

Added SPI example: https://github.com/riscv-rust/riscv-rust-quickstart/blob/master/examples/spi.rs

laanwj commented 5 years ago

Very cool, going to try around with SPI and SSD1306 display in Rust soon.

romancardenas commented 1 year ago

PWM is already implemented. I guess that this issue is already completed.