diff --git a/CHANGELOG-rust.md b/CHANGELOG-rust.md index 00da4ac6..7418142f 100644 --- a/CHANGELOG-rust.md +++ b/CHANGELOG-rust.md @@ -5,6 +5,11 @@ This changelog tracks the Rust `svdtools` project. See ## [Unreleased] +## [v0.2.1] 2022-02-12 + +* Use `svd-encoder` 0.13.1 +* Remove register `access` if empty + ## [v0.2.0] 2022-01-15 * Use `svd-parser` 0.13.1 @@ -17,6 +22,7 @@ This changelog tracks the Rust `svdtools` project. See * Initial release with feature-parity with the Python project. -[Unreleased]: https://github.com/stm32-rs/stm32-rs/compare/v0.2.0...HEAD +[Unreleased]: https://github.com/stm32-rs/stm32-rs/compare/v0.2.1...HEAD +[v0.2.1]: https://github.com/stm32-rs/svdtools/compare/v0.2.0...v0.2.1 [v0.2.0]: https://github.com/stm32-rs/svdtools/compare/35c3a79...v0.2.0 [v0.1.0]: https://github.com/stm32-rs/svdtools/pull/84 diff --git a/Cargo.toml b/Cargo.toml index f36f48b7..4b064ec8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "svdtools" -version = "0.2.0" +version = "0.2.1" repository = "https://github.com/stm32-rs/svdtools" description = "Tool for modifying bugs in CMSIS SVD" authors = [ @@ -27,9 +27,9 @@ edition = "2021" clap = { version = "3.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] } quick-xml = { version = "0.18", features = ["serialize"] } -svd-rs = { version = "0.13.0", features = ["serde"] } +svd-rs = { version = "0.13.1", features = ["serde"] } svd-parser = "0.13.1" -svd-encoder = "0.13.0" +svd-encoder = "0.13.1" yaml-rust = "0.4" serde_yaml = "0.8.23" serde_json = { version = "1.0", features = ["preserve_order"] } diff --git a/src/patch/peripheral.rs b/src/patch/peripheral.rs index bc8380bb..4ef344ee 100644 --- a/src/patch/peripheral.rs +++ b/src/patch/peripheral.rs @@ -317,6 +317,9 @@ impl PeripheralExt for Peripheral { fn modify_register(&mut self, rspec: &str, rmod: &Hash) -> PatchResult { for rtag in self.iter_registers(rspec) { rtag.modify_from(make_register(rmod)?, VAL_LVL)?; + if let Some("") = rmod.get_str("access")? { + rtag.properties.access = None; + } } Ok(()) }