svd2rust 0.24.0 will incorrectly alias some bitfield writers.
For example in the stm32wl crate in the 0.15 release of stm32-rs I see this:
#[doc = "Field `AESEN` writer - AESEN"]
pub use PKAEN_W as AESEN_W;
/* ... */
pub type PKAEN_W<'a> = crate::BitWriter<'a, u32, AHB3ENR_SPEC, PKAEN_A, 16>;
AESEN_W should not alias PKAEN_W in this case because it has a different bit position.
AESEN_W should probably look more like this:
pub type AESEN_W<'a> = crate::BitWriter<'a, u32, AHB3ENR_SPEC, AESEN_A, 17>;
This only occurs in 0.24. I generated stm32-rs with version 0.23 and did not have this problem.
svd2rust0.24.0 will incorrectly alias some bitfield writers.For example in the
stm32wlcrate in the 0.15 release ofstm32-rsI see this:AESEN_Wshould not aliasPKAEN_Win this case because it has a different bit position.AESEN_Wshould probably look more like this:This only occurs in 0.24. I generated
stm32-rswith version 0.23 and did not have this problem.