Skip to content

Commit e6b0086

Browse files
bors[bot]burrbull
andauthored
Merge #98
98: svd-encode 0.13 with, empty access, release v0.2.1 r=adamgreig a=burrbull Co-authored-by: Andrey Zgarbul <[email protected]>
2 parents e6174fa + 6948233 commit e6b0086

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

CHANGELOG-rust.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ This changelog tracks the Rust `svdtools` project. See
55

66
## [Unreleased]
77

8+
## [v0.2.1] 2022-02-12
9+
10+
* Use `svd-encoder` 0.13.1
11+
* Remove register `access` if empty
12+
813
## [v0.2.0] 2022-01-15
914

1015
* Use `svd-parser` 0.13.1
@@ -17,6 +22,7 @@ This changelog tracks the Rust `svdtools` project. See
1722

1823
* Initial release with feature-parity with the Python project.
1924

20-
[Unreleased]: https://github.com/stm32-rs/stm32-rs/compare/v0.2.0...HEAD
25+
[Unreleased]: https://github.com/stm32-rs/stm32-rs/compare/v0.2.1...HEAD
26+
[v0.2.1]: https://github.com/stm32-rs/svdtools/compare/v0.2.0...v0.2.1
2127
[v0.2.0]: https://github.com/stm32-rs/svdtools/compare/35c3a79...v0.2.0
2228
[v0.1.0]: https://github.com/stm32-rs/svdtools/pull/84

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "svdtools"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
repository = "https://github.com/stm32-rs/svdtools"
55
description = "Tool for modifying bugs in CMSIS SVD"
66
authors = [
@@ -27,9 +27,9 @@ edition = "2021"
2727
clap = { version = "3.0", features = ["derive"] }
2828
serde = { version = "1.0", features = ["derive"] }
2929
quick-xml = { version = "0.18", features = ["serialize"] }
30-
svd-rs = { version = "0.13.0", features = ["serde"] }
30+
svd-rs = { version = "0.13.1", features = ["serde"] }
3131
svd-parser = "0.13.1"
32-
svd-encoder = "0.13.0"
32+
svd-encoder = "0.13.1"
3333
yaml-rust = "0.4"
3434
serde_yaml = "0.8.23"
3535
serde_json = { version = "1.0", features = ["preserve_order"] }

src/patch/peripheral.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ impl PeripheralExt for Peripheral {
317317
fn modify_register(&mut self, rspec: &str, rmod: &Hash) -> PatchResult {
318318
for rtag in self.iter_registers(rspec) {
319319
rtag.modify_from(make_register(rmod)?, VAL_LVL)?;
320+
if let Some("") = rmod.get_str("access")? {
321+
rtag.properties.access = None;
322+
}
320323
}
321324
Ok(())
322325
}

0 commit comments

Comments
 (0)