Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 = [
Expand All @@ -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"] }
Expand Down
3 changes: 3 additions & 0 deletions src/patch/peripheral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down