e310x-hal icon indicating copy to clipboard operation
e310x-hal copied to clipboard

Peripherals

Open dvc94ch opened this issue 7 years ago • 7 comments

  • [x] gpio
  • [x] uart
  • [x] clint
  • [x] clock
  • [ ] pwm (wip)
  • [x] plic (wip)
  • [x] spi
  • [x] rtc
  • [x] wdog
  • [x] pmu

dvc94ch avatar Nov 20 '17 06:11 dvc94ch

SPI support would be nice to have !

laanwj avatar Oct 02 '18 15:10 laanwj

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 avatar Mar 13 '19 11:03 laanwj

@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 avatar Mar 13 '19 13:03 Disasm

@Disasm thanks!

laanwj avatar Mar 13 '19 19:03 laanwj

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

Disasm avatar Mar 14 '19 19:03 Disasm

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

laanwj avatar Mar 15 '19 16:03 laanwj

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

romancardenas avatar Nov 18 '22 11:11 romancardenas