riscv-rust / k210-pac

Peripheral access API crate (PAC) for K210 SoC, generated by svd2rust
29 stars 23 forks source link

CLINT (WIP needs 64-bit support in svd2rust) #16

Closed laanwj closed 5 years ago

laanwj commented 5 years ago

Based on lib/drivers/include/clint.h in SDK, and loosely based on e310x.

mtimecmp and mtime are only read/written as 64-bit units in he SDK. I don't know if anything else is allowed.

Disasm commented 5 years ago

I am going to merge this in order to test svd2rust. Library code will be updated later.