riscv-rust / e310x-hal

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

Implement more reliable mtimecmp update #19

Closed Disasm closed 5 years ago

Disasm commented 5 years ago

https://github.com/riscv-rust/e310x-hal/blob/ff78049936a7c28abd45bd3feea8f0e889107320/src/clint.rs#L85-L88

Volume II: RISC-V Privileged Architectures V1.10 p.31 contains an example for more reliable mtimecmp update sequence.