Content-Length: 739548 | pFad | http://github.com/stm32-rs/stm32-rs/commit/edfe7104ececfd69ab41c90475a95d5b43cc9dc9

66 fix GPIO AFSEL + WB0/N6/MP1 · stm32-rs/stm32-rs@edfe710 · GitHub
Skip to content

Commit edfe710

Browse files
committed
fix GPIO AFSEL + WB0/N6/MP1
1 parent c76b51c commit edfe710

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+607
-237
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
* Updated to `svdtools` 0.5.0
66
* refactor COMP & OPAMP on F3/G4/L4
7+
* Fix bug in GPIO AFSEL collect
8+
* Add GPIO for WB0/N6/MP1
79

810
Family-specific:
911

devices/collect/gpio/gpioa_afsel.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
AFRH:
2+
_derive:
3+
AFSEL%s: AFRL.AFSEL%s

devices/collect/gpio/v2r.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ LCKR:
3838
description: Port x lock pin %s
3939
AFR[LH]:
4040
_array:
41-
"AFR*,AFSEL*": {}
41+
"?~AFSEL*": {}
42+
"?~AFR*": {}
4243

4344
"?~HSLVR":
4445
_array:
@@ -47,3 +48,19 @@ AFR[LH]:
4748
"?~SECCFGR":
4849
_array:
4950
SEC*: {}
51+
52+
"?~PRIVCFGR":
53+
_array:
54+
PRIV*: {}
55+
56+
"?~RCFGLOCKR":
57+
_array:
58+
RLOCK*: {}
59+
60+
"?~DELAYR[LH]":
61+
_array:
62+
DELAY*: {}
63+
64+
"?~PIOCFGR[LH]":
65+
_array:
66+
PIOCFG*: {}

devices/patches/gpio/add_pin4-7.yaml

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
# used in STM32WB0 for field arrays
2+
3+
MODER:
4+
_add:
5+
MODE4:
6+
bitOffset: 8
7+
bitWidth: 2
8+
access: read-write
9+
MODE5:
10+
bitOffset: 10
11+
bitWidth: 2
12+
access: read-write
13+
MODE6:
14+
bitOffset: 12
15+
bitWidth: 2
16+
access: read-write
17+
MODE7:
18+
bitOffset: 14
19+
bitWidth: 2
20+
access: read-write
21+
OTYPER:
22+
_add:
23+
OT4:
24+
bitOffset: 4
25+
bitWidth: 1
26+
access: read-write
27+
OT5:
28+
bitOffset: 5
29+
bitWidth: 1
30+
access: read-write
31+
OT6:
32+
bitOffset: 6
33+
bitWidth: 1
34+
access: read-write
35+
OT7:
36+
bitOffset: 7
37+
bitWidth: 1
38+
access: read-write
39+
OSPEEDR:
40+
_add:
41+
OSPEED4:
42+
bitOffset: 8
43+
bitWidth: 2
44+
access: read-write
45+
OSPEED5:
46+
bitOffset: 10
47+
bitWidth: 2
48+
access: read-write
49+
OSPEED6:
50+
bitOffset: 12
51+
bitWidth: 2
52+
access: read-write
53+
OSPEED7:
54+
bitOffset: 14
55+
bitWidth: 2
56+
access: read-write
57+
PUPDR:
58+
_add:
59+
PUPD4:
60+
bitOffset: 8
61+
bitWidth: 2
62+
access: read-write
63+
PUPD5:
64+
bitOffset: 10
65+
bitWidth: 2
66+
access: read-write
67+
PUPD6:
68+
bitOffset: 12
69+
bitWidth: 2
70+
access: read-write
71+
PUPD7:
72+
bitOffset: 14
73+
bitWidth: 2
74+
access: read-write
75+
IDR:
76+
_add:
77+
ID4:
78+
bitOffset: 4
79+
bitWidth: 1
80+
access: read-only
81+
ID5:
82+
bitOffset: 5
83+
bitWidth: 1
84+
access: read-only
85+
ID6:
86+
bitOffset: 6
87+
bitWidth: 1
88+
access: read-only
89+
ID7:
90+
bitOffset: 7
91+
bitWidth: 1
92+
access: read-only
93+
ODR:
94+
_add:
95+
OD4:
96+
bitOffset: 4
97+
bitWidth: 1
98+
access: read-write
99+
OD5:
100+
bitOffset: 5
101+
bitWidth: 1
102+
access: read-write
103+
OD6:
104+
bitOffset: 6
105+
bitWidth: 1
106+
access: read-write
107+
OD7:
108+
bitOffset: 7
109+
bitWidth: 1
110+
access: read-write
111+
BSRR:
112+
_add:
113+
BS4:
114+
bitOffset: 4
115+
bitWidth: 1
116+
access: write-only
117+
BS5:
118+
bitOffset: 5
119+
bitWidth: 1
120+
access: write-only
121+
BS6:
122+
bitOffset: 6
123+
bitWidth: 1
124+
access: write-only
125+
BS7:
126+
bitOffset: 7
127+
bitWidth: 1
128+
access: write-only
129+
BR4:
130+
bitOffset: 20
131+
bitWidth: 1
132+
access: write-only
133+
BR5:
134+
bitOffset: 21
135+
bitWidth: 1
136+
access: write-only
137+
BR6:
138+
bitOffset: 22
139+
bitWidth: 1
140+
access: write-only
141+
BR7:
142+
bitOffset: 23
143+
bitWidth: 1
144+
access: write-only
145+
LCKR:
146+
_add:
147+
LCK4:
148+
bitOffset: 4
149+
bitWidth: 1
150+
access: read-write
151+
LCK5:
152+
bitOffset: 5
153+
bitWidth: 1
154+
access: read-write
155+
LCK6:
156+
bitOffset: 6
157+
bitWidth: 1
158+
access: read-write
159+
LCK7:
160+
bitOffset: 7
161+
bitWidth: 1
162+
access: read-write
163+
BRR:
164+
_add:
165+
BR4:
166+
bitOffset: 4
167+
bitWidth: 1
168+
access: read-write
169+
BR5:
170+
bitOffset: 5
171+
bitWidth: 1
172+
access: read-write
173+
BR6:
174+
bitOffset: 6
175+
bitWidth: 1
176+
access: read-write
177+
BR7:
178+
bitOffset: 7
179+
bitWidth: 1
180+
access: read-write

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/stm32-rs/stm32-rs/commit/edfe7104ececfd69ab41c90475a95d5b43cc9dc9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy