e310x-hal
e310x-hal copied to clipboard
Peripherals
- [x] gpio
- [x] uart
- [x] clint
- [x] clock
- [ ] pwm (wip)
- [x] plic (wip)
- [x] spi
- [x] rtc
- [x] wdog
- [x] pmu
SPI support would be nice to have !
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?
@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.
@Disasm thanks!
Added SPI example: https://github.com/riscv-rust/riscv-rust-quickstart/blob/master/examples/spi.rs
Very cool, going to try around with SPI and SSD1306 display in Rust soon.
PWM is already implemented. I guess that this issue is already completed.