rust-embedded / svd2rust

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

Incorrect mapping of ZeroToSet #826

Closed BigPeteB closed 3 months ago

BigPeteB commented 3 months ago

It looks like the fix in #673 has a bug. At https://github.com/rust-embedded/svd2rust/blame/6de189fc83268cfd5f66377c65a5aa2430de9e74/src/generate/register.rs#L858, ZeroToSet maps to "BitWriter0C". Should this not be "BitWriter0S"?

burrbull commented 3 months ago

Yes. It's a typo. It is strange nobody's found this yet. Open PR, please.