Skip to content

Commit 371fc81

Browse files
bors[bot]hydra
andauthored
Merge #822
822: H5 updates 1 r=adamgreig a=hydra Updates to the SVDs patches. Note: * The H50x doesn't have the same peripheral set as the H56x/H57x. * The H563/H573 have additional security related peripherals not found on the H562. Changes: * removing prefixes * removing unneeded patches * re-ordered peripherals so they're in alphabetical order. * applied existing set of H562 patches to the H563 and H573 too. Enjoy! Co-authored-by: Dominic Clifton <me@dominicclifton.name>
2 parents 8d9acd7 + e68b149 commit 371fc81

File tree

7 files changed

+206
-28
lines changed

7 files changed

+206
-28
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
ETH:
3+
_strip:
4+
- "ETH_"

devices/common_patches/h5.yaml

Lines changed: 76 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,28 @@
11
_clear_fields: ["*"]
22

3-
RCC:
4-
_strip:
5-
- "RCC_"
6-
73
ADC,ADC?:
84
_strip:
95
- "ADC_"
106

11-
DBGMCU:
7+
CRC:
128
_strip:
13-
- "DBGMCU_"
9+
- "CRC_"
1410

15-
GPDMA1:
11+
CRS:
1612
_strip:
17-
- "GPDMA_"
13+
- "CRS_"
1814

19-
CRC:
15+
DAC:
2016
_strip:
21-
- "CRC_"
17+
- "DAC_"
2218

23-
FLASH:
19+
DBGMCU:
2420
_strip:
25-
- "FLASH_"
26-
21+
- "DBGMCU_"
2722

28-
RTC:
23+
DTS:
2924
_strip:
30-
- "RTC_"
25+
- "DTS_"
3126

3227
EXTI:
3328
_strip:
@@ -38,30 +33,90 @@ EXTI:
3833
name: EXTI4_15
3934
description: "EXTI line 4 to 15 interrupt"
4035

41-
GPIO?:
36+
FLASH:
4237
_strip:
43-
- "GPIO?_"
38+
- "FLASH_"
4439

45-
USART?:
40+
FDCAN?:
4641
_strip:
47-
- "USART_"
42+
- "FDCAN?_"
4843

49-
SPI?:
44+
GPDMA1:
5045
_strip:
51-
- "SPI_"
46+
- "GPDMA_"
47+
48+
GPIO?:
49+
_strip:
50+
- "GPIO?_"
51+
52+
HASH:
53+
_strip:
54+
- "HASH_"
5255

5356
I2C?:
5457
_strip:
5558
- "I2C_"
5659

60+
ICACHE:
61+
_strip:
62+
- "ICACHE_"
63+
5764
IWDG:
5865
_strip:
5966
- "IWDG_"
6067

68+
LPTIM?:
69+
_strip:
70+
- "LPTIM_"
71+
72+
LPUART:
73+
_strip:
74+
- "LPUART_"
75+
6176
PWR:
6277
_strip:
6378
- "PWR_"
6479

80+
RAMCFG:
81+
_strip:
82+
- "RAMCFG_"
83+
84+
RCC:
85+
_strip:
86+
- "RCC_"
87+
88+
RNG:
89+
_strip:
90+
- "RNG_"
91+
92+
RTC:
93+
_strip:
94+
- "RTC_"
95+
96+
SBS:
97+
_strip:
98+
- "SBS_"
99+
100+
SPI?:
101+
_strip:
102+
- "SPI_"
103+
104+
TAMP:
105+
_strip:
106+
- "TAMP_"
107+
108+
TIM1:
109+
_strip:
110+
- "TIM1_"
111+
112+
USART?:
113+
_strip:
114+
- "USART_"
115+
116+
USB:
117+
_strip:
118+
- "USB_"
119+
65120
WWDG:
66121
_strip:
67122
- "WWDG_"
@@ -72,8 +127,3 @@ WWDG:
72127
# _modify:
73128
# CNT_alternate:
74129
# name: "CNT"
75-
76-
# TIM?:
77-
# _strip:
78-
# - "TIM?_"
79-
# - "TIM??_"

devices/common_patches/h56x_h57x.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
DLYBOS?:
2+
_strip:
3+
- "DLYB_"
4+
5+
DCACHE:
6+
_strip:
7+
- "DCACHE_"
8+
9+
DCMI:
10+
_strip:
11+
- "DCMI_"
12+
13+
FMAC:
14+
_strip:
15+
- "FMAC_"
16+
17+
FMC:
18+
_strip:
19+
- "FMC_"
20+
21+
GTZC1_TZSC:
22+
_strip:
23+
- "GTZC1_TZSC_"
24+
25+
I3C:
26+
_strip:
27+
- "I3C_"
28+
29+
OCTOSPI:
30+
_strip:
31+
- "OCTOSPI_"
32+
33+
PSSI:
34+
_strip:
35+
- "PSSI_"
36+
37+
SAI?:
38+
_strip:
39+
- "SAI_"
40+
41+
SDMMC?:
42+
_strip:
43+
- "SDMMC_"
44+
45+
UCPD?:
46+
_strip:
47+
- "UCPD_"
48+
49+
VREFBUF:
50+
_strip:
51+
- "VREFBUF_"
52+
53+
# TIM3:
54+
# _delete:
55+
# - CNT
56+
# _modify:
57+
# CNT_alternate:
58+
# name: "CNT"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
AES:
3+
_strip:
4+
- "AES_"
5+
6+
CORDIC:
7+
_strip:
8+
- "CORDIC_"
9+
10+
OTFDEC?:
11+
_strip:
12+
- "OTFDEC_"
13+
14+
PKA:
15+
_strip:
16+
- "PKA_"
17+
18+
SAES:
19+
_strip:
20+
- "SAES_"

devices/stm32h562.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ _svd: ../svd/stm32h562.svd
44
# todo place them in the common/h5.yaml
55
_include:
66
- common_patches/h5.yaml
7+
- common_patches/h56x_h57x.yaml
78

89
- common_patches/crc/crc_rename_init.yaml
910
- ../peripherals/crc/crc_advanced.yaml
1011
# - ../peripherals/crc/crc_idr_32bit.yaml
1112
- ../peripherals/crc/crc_pol.yaml
12-
- common_patches/crc/h7_addr_fix.yaml
1313

1414

1515
# - common_patches/flash/l5_array.yaml
@@ -25,4 +25,4 @@ _include:
2525
- common_patches/rtc/rtc_cr.yaml
2626
# - ../peripherals/rtc/rtc_common.yaml
2727

28-
- ../peripherals/sai/sai.yaml
28+
- ../peripherals/sai/sai.yaml

devices/stm32h563.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,26 @@ _svd: ../svd/stm32h563.svd
22

33
_include:
44
- common_patches/h5.yaml
5+
- common_patches/h56x_h57x.yaml
6+
- common_patches/ethernet/h5.yaml
7+
8+
- common_patches/crc/crc_rename_init.yaml
9+
- ../peripherals/crc/crc_advanced.yaml
10+
# - ../peripherals/crc/crc_idr_32bit.yaml
11+
- ../peripherals/crc/crc_pol.yaml
12+
13+
14+
# - common_patches/flash/l5_array.yaml
15+
16+
- ../peripherals/gpio/v3/common.yaml
17+
18+
# - ../peripherals/rcc/rcc_v3.yaml
19+
# - ../peripherals/rcc/rcc_v3_pll.yaml
20+
# - ../peripherals/rcc/rcc_v3_h7_ccip.yaml
21+
22+
- common_patches/rtc/alarm.yaml
23+
# - common_patches/rtc/rtc_bkpr.yaml
24+
- common_patches/rtc/rtc_cr.yaml
25+
# - ../peripherals/rtc/rtc_common.yaml
26+
27+
- ../peripherals/sai/sai.yaml

devices/stm32h573.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,26 @@ _svd: ../svd/stm32h573.svd
22

33
_include:
44
- common_patches/h5.yaml
5+
- common_patches/h56x_h57x.yaml
6+
- common_patches/h5_security.yaml
7+
- common_patches/ethernet/h5.yaml
8+
9+
- common_patches/crc/crc_rename_init.yaml
10+
- ../peripherals/crc/crc_advanced.yaml
11+
# - ../peripherals/crc/crc_idr_32bit.yaml
12+
- ../peripherals/crc/crc_pol.yaml
13+
14+
# - common_patches/flash/l5_array.yaml
15+
16+
- ../peripherals/gpio/v3/common.yaml
17+
18+
# - ../peripherals/rcc/rcc_v3.yaml
19+
# - ../peripherals/rcc/rcc_v3_pll.yaml
20+
# - ../peripherals/rcc/rcc_v3_h7_ccip.yaml
21+
22+
- common_patches/rtc/alarm.yaml
23+
# - common_patches/rtc/rtc_bkpr.yaml
24+
- common_patches/rtc/rtc_cr.yaml
25+
# - ../peripherals/rtc/rtc_common.yaml
26+
27+
- ../peripherals/sai/sai.yaml

0 commit comments

Comments
 (0)