Skip to content

Commit c83b5d9

Browse files
authored
Merge pull request #1189 from z-av/s2r-0.36.1
update svd2rust
2 parents 8106e60 + 39359d5 commit c83b5d9

12 files changed

+65
-19
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ svdconv/
1414

1515
# automatically generated crates
1616
/stm32*/
17+
.zed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
## [Unreleased]
44

5-
* Updated to `svd2rust` 0.36.0, `svdtools` 0.4.5, `form` 0.12.1, use tools binaries for CI (#1174)
5+
* Updated to `svd2rust` 0.36.1, `svdtools` 0.4.6, `form` 0.12.1, use tools binaries for CI (#1174)
6+
* bump `defmt` depencency to 1.0
67
* Use `svd2rust.toml` config, use custom ident suffixes (#948)
78
* Replace `makehtml.py` with `svdtools html` (#881)
89
* Remove workaround for bug in duckscript's `mv` (#981)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ contain the latest patches and updates.
9696
current version used by stm32-rs
9797
* Otherwise, build using `cargo` (double check versions against `scripts/tool_install.sh`):
9898
* `cargo install form --version 0.12.1`
99-
* `cargo install svdtools --version 0.4.5`
100-
* `cargo install svd2rust --version 0.36.0`
99+
* `cargo install svdtools --version 0.4.6`
100+
* `cargo install svd2rust --version 0.36.1`
101101
* Install rustfmt: `rustup component add rustfmt`
102102
* Generate patched SVD files: `make patch` (you probably want `-j` for all `make` invocations)
103103
* Alternatively you could install `cargo-make` runner and then use it instead of `make`. Works on MS Windows natively:

devices/collect/tim/tim11_derive.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ _derive:
99
CNT: TIM10.CNT
1010
PSC: TIM10.PSC
1111
ARR: TIM10.ARR
12-
#CCR%s: TIM10.CCR%s
12+
CCR%s: TIM10.CCR%s

devices/collect/tim/tim14_derive.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ _derive:
99
CNT: TIM13.CNT
1010
PSC: TIM13.PSC
1111
ARR: TIM13.ARR
12-
#CCR%s: TIM13.CCR%s
12+
CCR%s: TIM13.CCR%s

devices/collect/tim/tim17_derive.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ _derive:
1111
PSC: TIM16.PSC
1212
ARR: TIM16.ARR
1313
RCR: TIM16.RCR
14-
#CCR%s: TIM16.CCR%s
14+
CCR%s: TIM16.CCR%s
1515
BDTR: TIM16.BDTR
1616
"?~DTR2": TIM16.DTR2
1717
DCR: TIM16.DCR

devices/collect/tim/tim22_derive.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
_derive:
22
CR1: TIM21.CR1
33
CR2: TIM21.CR2
4-
SMCR: TIM21.SMCR
54
DIER: TIM21.DIER
65
SR: TIM21.SR
76
EGR: TIM21.EGR
@@ -11,4 +10,13 @@ _derive:
1110
CNT: TIM21.CNT
1211
PSC: TIM21.PSC
1312
ARR: TIM21.ARR
14-
#CCR%s: TIM21.CCR%s
13+
CCR%s: TIM21.CCR%s
14+
15+
SMCR:
16+
_derive:
17+
MSM: TIM21.SMCR.MSM
18+
ETF: TIM21.SMCR.ETF
19+
ETPS: TIM21.SMCR.ETPS
20+
ECE: TIM21.SMCR.ECE
21+
ETP: TIM21.SMCR.ETP
22+
SMS: TIM21.SMCR.SMS

devices/collect/tim/tim4_derive.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
_derive:
22
CR1: TIM3.CR1
33
CR2: TIM3.CR2
4-
SMCR: TIM3.SMCR
54
DIER: TIM3.DIER
65
SR: TIM3.SR
76
EGR: TIM3.EGR
@@ -13,7 +12,20 @@ _derive:
1312
CNT: TIM3.CNT
1413
PSC: TIM3.PSC
1514
ARR: TIM3.ARR
16-
#CCR%s: TIM3.CCR%s
15+
CCR%s: TIM3.CCR%s
1716
DCR: TIM3.DCR
1817
DMAR: TIM3.DMAR
1918
"?~ECR": TIM3.ECR
19+
20+
SMCR:
21+
_derive:
22+
"?~OCCS": TIM3.SMCR.OCCS
23+
MSM: TIM3.SMCR.MSM
24+
ETF: TIM3.SMCR.ETF
25+
ETPS: TIM3.SMCR.ETPS
26+
ECE: TIM3.SMCR.ECE
27+
ETP: TIM3.SMCR.ETP
28+
"?~SMSPE": TIM3.SMCR.SMSPE
29+
"?~SMSPS": TIM3.SMCR.SMSPS
30+
#SMS: TIM3.SMCR.SMS
31+
#"?~SMS_3": TIM3.SMCR.SMS_3

devices/collect/tim/tim5_derive.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
_derive:
22
CR1: TIM2.CR1
33
CR2: TIM2.CR2
4-
SMCR: TIM2.SMCR
54
DIER: TIM2.DIER
65
SR: TIM2.SR
76
EGR: TIM2.EGR
@@ -13,7 +12,20 @@ _derive:
1312
CNT: TIM2.CNT
1413
PSC: TIM2.PSC
1514
ARR: TIM2.ARR
16-
#CCR%s: TIM2.CCR%s
15+
CCR%s: TIM2.CCR%s
1716
DCR: TIM2.DCR
1817
DMAR: TIM2.DMAR
1918
"?~ECR": TIM2.ECR
19+
20+
SMCR:
21+
_derive:
22+
"?~OCCS": TIM2.SMCR.OCCS
23+
MSM: TIM2.SMCR.MSM
24+
ETF: TIM2.SMCR.ETF
25+
ETPS: TIM2.SMCR.ETPS
26+
ECE: TIM2.SMCR.ECE
27+
ETP: TIM2.SMCR.ETP
28+
"?~SMSPE": TIM2.SMCR.SMSPE
29+
"?~SMSPS": TIM2.SMCR.SMSPS
30+
#SMS: TIM2.SMCR.SMS
31+
#"?~SMS_3": TIM2.SMCR.SMS_3

devices/collect/tim/tim8_derive.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
_derive:
22
CR1: TIM1.CR1
33
CR2: TIM1.CR2
4-
SMCR: TIM1.SMCR
54
DIER: TIM1.DIER
65
SR: TIM1.SR
76
EGR: TIM1.EGR
@@ -14,7 +13,7 @@ _derive:
1413
PSC: TIM1.PSC
1514
ARR: TIM1.ARR
1615
RCR: TIM1.RCR
17-
#CCR%s: TIM1.CCR%s
16+
CCR%s: TIM1.CCR%s
1817
BDTR: TIM1.BDTR
1918
DCR: TIM1.DCR
2019
DMAR: TIM1.DMAR
@@ -23,3 +22,16 @@ _derive:
2322
"?~ECR": TIM1.ECR
2423
CCR5: TIM1.CCR5
2524
CCR6: TIM1.CCR6
25+
26+
SMCR:
27+
_derive:
28+
"?~OCCS": TIM1.SMCR.OCCS
29+
MSM: TIM1.SMCR.MSM
30+
ETF: TIM1.SMCR.ETF
31+
ETPS: TIM1.SMCR.ETPS
32+
ECE: TIM1.SMCR.ECE
33+
ETP: TIM1.SMCR.ETP
34+
"?~SMSPE": TIM1.SMCR.SMSPE
35+
"?~SMSPS": TIM1.SMCR.SMSPS
36+
#SMS: TIM1.SMCR.SMS
37+
#"?~SMS_3": TIM1.SMCR.SMS_3

scripts/makecrates.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
VERSION = {
2020
"default": "0.16.0",
2121
}
22-
SVD2RUST_VERSION = "0.36.0"
22+
SVD2RUST_VERSION = "0.36.1"
2323

2424
CRATE_DOC_FEATURES = {
2525
"stm32c0": ["atomics", "critical-section", "defmt", "rt", "stm32c011", "stm32c031", "stm32c071"],
@@ -84,8 +84,8 @@
8484
[dependencies]
8585
critical-section = {{ version = "1.0", optional = true }}
8686
cortex-m = "0.7.7"
87-
cortex-m-rt = {{ version = "0.7.3", optional = true }}
88-
defmt = {{ version = "0.3.5", optional = true }}
87+
cortex-m-rt = {{ version = "0.7.5", optional = true }}
88+
defmt = {{ version = "1", optional = true }}
8989
vcell = "0.1.3"
9090
portable-atomic = {{ version = "1", default-features = false, optional = true }}
9191

scripts/tool_install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ set -euo pipefail
55
CARGO_HOME="${CARGO_HOME:-$HOME/.cargo/}"
66

77
FORM_VERSION="${FORM_VERSION:-v0.12.1}"
8-
SVDTOOLS_VERSION="${SVDTOOLS_VERSION:-v0.4.5}"
9-
SVD2RUST_VERSION="${SVD2RUST_VERSION:-v0.36.0}"
8+
SVDTOOLS_VERSION="${SVDTOOLS_VERSION:-v0.4.6}"
9+
SVD2RUST_VERSION="${SVD2RUST_VERSION:-v0.36.1}"
1010
SVDCONV_VERSION="${SVDCONV_VERSION:-3.3.46}"
1111

1212
case "${1:-}" in

0 commit comments

Comments
 (0)