rust-embedded / svd2rust

Generate Rust register maps (`struct`s) from SVD files
Apache License 2.0
709 stars 151 forks source link

array accessors #579

Closed burrbull closed 2 years ago

burrbull commented 2 years ago

Closes #578

rust-highfive commented 2 years ago

r? @reitermarkus

(rust-highfive has picked a reviewer for you, use r? to override)

burrbull commented 2 years ago

r? @adamgreig

burrbull commented 2 years ago

@adamgreig @therealprof ping

Emilgardis commented 2 years ago

I can't get this to work, do you have an example svd to demonstrate with?

burrbull commented 2 years ago

I can't get this to work, do you have an example svd to demonstrate with?

Any SVD from https://stm32-rs.github.io/stm32-rs/

bors[bot] commented 2 years ago

Build failed:

Emilgardis commented 2 years ago

SiliconLabs svds has moved to subfolders

https://github.com/posborne/cmsis-svd/blob/master/data/SiliconLabs/SiM3_NRND/SIM3C1x4.svd for example

burrbull commented 2 years ago

SiliconLabs svds has moved to subfolders

https://github.com/posborne/cmsis-svd/blob/master/data/SiliconLabs/SiM3_NRND/SIM3C1x4.svd for example

Yes. And I don't see how to better fix this.

bors[bot] commented 2 years ago

Canceled.

bors[bot] commented 2 years ago

Build succeeded: