Skip to content

Commit 039f944

Browse files
bors[bot]sphwadamgreigburrbull
authored
Merge #715 #725
715: Fix various issues with STM32L562 r=adamgreig a=sphw This PR fixes two issues with the STM32L562's SVD files. In particular the DMA registers CCR registers only included the correct fields on the first register. This PR fixes that. It also merges the GTZC VCTR into an array, rather than individual fields. 725: f7 jpeg mem r=adamgreig a=burrbull Co-authored-by: Sascha Wise <me@saschawise.com> Co-authored-by: Adam Greig <adam@adamgreig.com> Co-authored-by: Andrey Zgarbul <zgarbul.andrey@gmail.com>
3 parents fa72d11 + 7548836 + 353f0ec commit 039f944

File tree

5 files changed

+198
-2
lines changed

5 files changed

+198
-2
lines changed

devices/common_patches/jpeg/ram.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
JPEG:
2+
_array:
3+
"QMEM0_*":
4+
name: QMEM0%s
5+
"QMEM1_*":
6+
name: QMEM1%s
7+
"QMEM2_*":
8+
name: QMEM2%s
9+
"QMEM3_*":
10+
name: QMEM3%s
11+
"HUFFMIN_*":
12+
name: HUFFMIN%s
13+
"HUFFBASE*": {}
14+
"HUFFSYMB*": {}
15+
"DHTMEM*": {}
16+
"HUFFENC_AC0_*":
17+
name: HUFFENC_AC0%s
18+
"HUFFENC_AC1_*":
19+
name: HUFFENC_AC1%s
20+
"HUFFENC_DC0_*":
21+
name: HUFFENC_DC0%s
22+
"HUFFENC_DC1_*":
23+
name: HUFFENC_DC1%s

devices/stm32f765.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ _include:
176176
- ../peripherals/eth/eth_mac_cstf.yaml
177177
- ../peripherals/eth/eth_mmc_common.yaml
178178
- ../peripherals/eth/eth_mmc_mcfhp_mcp.yaml
179+
- common_patches/jpeg/ram.yaml
179180
- ../peripherals/wwdg/wwdg.yaml
180181
- ../peripherals/pwr/pwr_f7.yaml
181182
- ../peripherals/pwr/pwr_v2.yaml

devices/stm32f7x7.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ _include:
313313
- ../peripherals/eth/eth_mac_cstf.yaml
314314
- ../peripherals/eth/eth_mmc_common.yaml
315315
- ../peripherals/eth/eth_mmc_mcfhp_mcp.yaml
316+
- common_patches/jpeg/ram.yaml
316317
- ../peripherals/wwdg/wwdg.yaml
317318
- ../peripherals/pwr/pwr_f7.yaml
318319
- ../peripherals/pwr/pwr_v2.yaml

devices/stm32f7x9.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ _include:
320320
- ../peripherals/eth/eth_mac_cstf.yaml
321321
- ../peripherals/eth/eth_mmc_common.yaml
322322
- ../peripherals/eth/eth_mmc_mcfhp_mcp.yaml
323+
- common_patches/jpeg/ram.yaml
323324
- ../peripherals/wwdg/wwdg.yaml
324325
- ../peripherals/pwr/pwr_f7.yaml
325326
- ../peripherals/pwr/pwr_v2.yaml

devices/stm32l562.yaml

Lines changed: 172 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ _modify:
99
fpuPresent: "true"
1010
nvicPrioBits: 3
1111
vendorSystickConfig: "false"
12-
1312
FMC:
1413
_strip:
1514
- "FMC_"
@@ -29,10 +28,15 @@ PKA:
2928
GTZC_MPCBB1:
3029
_strip:
3130
- "MPCBB1_"
32-
31+
_array:
32+
"VCTR*":
33+
name: VCTR%s
3334
GTZC_MPCBB2:
3435
_strip:
3536
- "MPCBB2_"
37+
_array:
38+
"VCTR*":
39+
name: VCTR%s
3640

3741
GTZC_TZIC:
3842
_strip:
@@ -42,6 +46,172 @@ GTZC_TZSC:
4246
_strip:
4347
- "TZSC_"
4448

49+
"DMA[1-2]":
50+
"CNDTR[2-4]":
51+
_add:
52+
NDT:
53+
description: Number of data to transfer
54+
bitOffset: 0
55+
bitWidth: 18
56+
_delete:
57+
- MA
58+
"CNDTR[6-8]":
59+
_add:
60+
NDT:
61+
description: Number of data to transfer
62+
bitOffset: 0
63+
bitWidth: 16
64+
_delete:
65+
- MA
66+
67+
# exclude CCR1 and CCR5, since they already contains the correct regs
68+
"CCR[2-4]":
69+
_add:
70+
MEM2MEM:
71+
description: Memory to memory mode
72+
bitOffset: 14
73+
bitWidth: 1
74+
PL:
75+
description: Channel priority level
76+
bitOffset: 12
77+
bitWidth: 2
78+
MSIZE:
79+
description: Memory size
80+
bitOffset: 10
81+
bitWidth: 2
82+
PSIZE:
83+
description: Peripheral size
84+
bitOffset: 8
85+
bitWidth: 2
86+
MINC:
87+
description: Memory increment mdoe
88+
bitOffset: 7
89+
bitWidth: 1
90+
PINC:
91+
description: Peripheral increment mode
92+
bitOffset: 7
93+
bitWidth: 1
94+
CIRC:
95+
description: Ciruclar mode
96+
bitOffset: 5
97+
bitWidth: 1
98+
DIR:
99+
description: Data transfer direction
100+
bitOffset: 4
101+
bitWidth: 1
102+
TEIE:
103+
description: Transfer error interupt enable
104+
bitOffset: 3
105+
bitWidth: 1
106+
HTIE:
107+
description: Half transfer interrupt enable
108+
bitOffset: 2
109+
bitWidth: 1
110+
TCIE:
111+
description: Transfer complete interrupt enable
112+
bitOffset: 1
113+
bitWidth: 1
114+
EN:
115+
description: Channel enable
116+
bitOffset: 0
117+
bitWidth: 1
118+
DBM:
119+
description: double-buffer mode
120+
bitOffset: 15
121+
bitWidth: 1
122+
CT:
123+
description: Current target memory of DMA transfer in double-bufer mode
124+
bitOffset: 16
125+
bitWidth: 1
126+
SECM:
127+
bitOffset: 17
128+
bitWidth: 1
129+
SSEC:
130+
bitOffset: 18
131+
bitWidth: 1
132+
DSEC:
133+
bitOffset: 19
134+
bitWidth: 1
135+
PRIV:
136+
description: privileged mode
137+
bitOffset: 20
138+
bitWidth: 1
139+
_delete:
140+
- MA
141+
"CCR[6-8]":
142+
_add:
143+
MEM2MEM:
144+
description: Memory to memory mode
145+
bitOffset: 14
146+
bitWidth: 1
147+
PL:
148+
description: Channel priority level
149+
bitOffset: 12
150+
bitWidth: 2
151+
MSIZE:
152+
description: Memory size
153+
bitOffset: 10
154+
bitWidth: 2
155+
PSIZE:
156+
description: Peripheral size
157+
bitOffset: 8
158+
bitWidth: 2
159+
MINC:
160+
description: Memory increment mdoe
161+
bitOffset: 7
162+
bitWidth: 1
163+
PINC:
164+
description: Peripheral increment mode
165+
bitOffset: 7
166+
bitWidth: 1
167+
CIRC:
168+
description: Ciruclar mode
169+
bitOffset: 5
170+
bitWidth: 1
171+
DIR:
172+
description: Data transfer direction
173+
bitOffset: 4
174+
bitWidth: 1
175+
TEIE:
176+
description: Transfer error interupt enable
177+
bitOffset: 3
178+
bitWidth: 1
179+
HTIE:
180+
description: Half transfer interrupt enable
181+
bitOffset: 2
182+
bitWidth: 1
183+
TCIE:
184+
description: Transfer complete interrupt enable
185+
bitOffset: 1
186+
bitWidth: 1
187+
EN:
188+
description: Channel enable
189+
bitOffset: 0
190+
bitWidth: 1
191+
DBM:
192+
description: double-buffer mode
193+
bitOffset: 15
194+
bitWidth: 1
195+
CT:
196+
description: Current target memory of DMA transfer in double-bufer mode
197+
bitOffset: 16
198+
bitWidth: 1
199+
SECM:
200+
bitOffset: 17
201+
bitWidth: 1
202+
SSEC:
203+
bitOffset: 18
204+
bitWidth: 1
205+
DSEC:
206+
bitOffset: 19
207+
bitWidth: 1
208+
PRIV:
209+
description: privileged mode
210+
bitOffset: 20
211+
bitWidth: 1
212+
_delete:
213+
- MA
214+
45215
_include:
46216
- common_patches/dma_interrupt_names.yaml
47217
- ../peripherals/gpio/gpio_l5.yaml

0 commit comments

Comments
 (0)