riscv-rust / e310x-hal

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

Rewrite clock generation #5

Closed Disasm closed 5 years ago

Disasm commented 5 years ago

Now it's possible to set arbitrary clock frequencies both for external clocks (without environment variables) and coreclk.

dvc94ch commented 5 years ago

I don't recall the details of the pll, but it seems good to me. You have a higher investment in rust on riscv so go ahead! :)

Disasm commented 5 years ago

Thanks! Seems like PLL works (at least on my Hifive1). I can't test low-frequency internal oscillator, because it's externally disabled in HiFive1, but I hope someone with LoFive board can test it.