riscv-rust / k210-pac

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

Add interrupts for all peripherals #28

Closed laanwj closed 5 years ago

laanwj commented 5 years ago

Use the same names and numbers as in lib/drivers/include/plic.h in the SDK.

Regenerate the lib.rs using svd2rust, I used the current master commit, but this seems to change some type names! I'm not sure what version to use, actually, so let me know if you prefer a different one.

Disasm commented 5 years ago

Thanks! svd2rust is under heavy development at the moment, so I'd prefer to bind to a specific version/commit for a while. Maybe 0.16.0 release is good enough.

laanwj commented 5 years ago

Thanks, regenerated the last commit with v0.16.0.

It still has the variant enum type name change from *W to *_A but I personally think that's okay, that seems to be the only thing that I've needed to update.

Disasm commented 5 years ago

IIRC, these new enums should be reexported under the old names.