Skip to content

Commit e4e76e5

Browse files
committed
f7: fix rcc registers
1 parent 65c3dee commit e4e76e5

8 files changed

+135
-15
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
RCC:
2+
APB1RSTR:
3+
_delete:
4+
- SPDIFRXRST
5+
- I2C4RST
6+
- CAN2RST
7+
- CECRST
8+
AHB1LPENR:
9+
_delete:
10+
- ETH*
11+
- DMA2DLPEN
12+
- GPIOKLPEN
13+
- GPIOJLPEN
14+
APB1LPENR:
15+
_delete:
16+
- CAN2LPEN
17+
_add:
18+
RTCAPBLPEN:
19+
description: RTCAPB clock enable during Sleep mode
20+
bitOffset: 10
21+
bitWidth: 1
22+
23+
124
_include:
225
- f730_f7x2_f7x3_syscfg.yaml
326
- f730_f7x2_f7x3_tim.yaml
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
_copy:
2+
PWR:
3+
from: ../svd/stm32f7x3.svd:PWR
4+
5+
RCC:
6+
AHB1ENR:
7+
_modify:
8+
CCMDATARAMEN:
9+
name: DTCMRAMEN
10+
APB1ENR:
11+
_modify:
12+
LPTMI1EN:
13+
name: LPTIM1EN
14+
AHB1LPENR:
15+
_add:
16+
AXILPEN:
17+
description: AXI to AHB bridge clock enable during Sleep mode
18+
bitOffset: 13
19+
bitWidth: 1
20+
DTCMLPEN:
21+
description: DTCM RAM interface clock enable during Sleep mode
22+
bitOffset: 20
23+
bitWidth: 1
24+
125
_include:
226
- f745_f750_f765_f7x6_f7x7_f7x9_tim.yaml
327
- f745_f750_f765_f7x6_f7x7_f7x9_syscfg.yaml
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
RCC:
2+
APB1RSTR:
3+
_add:
4+
CAN3RST:
5+
description: CAN 3 reset
6+
bitOffset: 13
7+
bitWidth: 1
8+
APB2RSTR:
9+
_add:
10+
MDIORST:
11+
description: MDIO reset
12+
bitOffset: 30
13+
bitWidth: 1
14+
DFSDM1RST:
15+
description: DFSDM 1 reset
16+
bitOffset: 29
17+
bitWidth: 1
18+
DSIRST:
19+
description: DSI reset
20+
bitOffset: 27
21+
bitWidth: 1
22+
AHB2ENR:
23+
_add:
24+
JPEGEN:
25+
description: JPEG enable
26+
bitOffset: 1
27+
bitWidth: 1
28+
APB1ENR:
29+
_add:
30+
CAN3EN:
31+
description: CAN 3 enable
32+
bitOffset: 13
33+
bitWidth: 1
34+
APB2ENR:
35+
_add:
36+
MDIOEN:
37+
description: MDIO clock enable
38+
bitOffset: 30
39+
bitWidth: 1
40+
DFSDM1EN:
41+
description: DFSDM1 clock enable
42+
bitOffset: 29
43+
bitWidth: 1
44+
DSIEN:
45+
description: DSI clock enable
46+
bitOffset: 27
47+
bitWidth: 1
48+
AHB2LPENR:
49+
_add:
50+
JPEGLPEN:
51+
description: JPEG module enabled during Sleep mode
52+
bitOffset: 1
53+
bitWidth: 1
54+
APB1LPENR:
55+
_add:
56+
CAN3EN:
57+
description: CAN 3 clock enable during Sleep mode
58+
bitOffset: 13
59+
bitWidth: 1
60+
APB2LPENR:
61+
_add:
62+
MDIOLPEN:
63+
description: MDIO clock enable during Sleep mode
64+
bitOffset: 30
65+
bitWidth: 1
66+
DFSDM1LPEN:
67+
description: DFSDM1 clock enable during Sleep mode
68+
bitOffset: 29
69+
bitWidth: 1
70+
DSILPEN:
71+
description: DSI clock enable during Sleep mode
72+
bitOffset: 27
73+
bitWidth: 1
74+
SDMMC2LPEN:
75+
description: SDMMC2 clock enable during Sleep mode
76+
bitOffset: 7
77+
bitWidth: 1

devices/stm32f745.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ SYSCFG:
9090
MEMRMP:
9191
_delete:
9292
- FB_MODE
93+
#
94+
#RCC:
95+
# DCKCFGR1:
96+
# _delete:
97+
# - ADFSDM1SEL
98+
# - DFSDM1SEL
9399

94100
_include:
95101
- common_patches/f7_interrupts.yaml
@@ -118,7 +124,6 @@ _include:
118124
- common_patches/f7_rcc_rename_dckcfgr.yaml
119125
- common_patches/f7_rcc_dckcfgr.yaml
120126
- common_patches/f7_rcc_dckcfgr_sdmmc1.yaml
121-
- common_patches/f7_rcc_dckcfgr_RM0410.yaml
122127
- ../peripherals/dac/dac_wavegen.yaml
123128
- ../peripherals/dac/dac_common_2ch.yaml
124129
- ../peripherals/dac/dac_dmaudr.yaml
@@ -127,8 +132,6 @@ _include:
127132
- ../peripherals/rcc/rcc_v2_i2s_pllp.yaml
128133
- ../peripherals/rcc/rcc_v2_sai_pllr.yaml
129134
- ../peripherals/rcc/rcc_v2_dckcfgr_saidivr.yaml
130-
- ../peripherals/rcc/rcc_v2_dckcfgr_dfsdm_f7.yaml
131-
- ../peripherals/rcc/rcc_v2_dckcfgr_dsisel.yaml
132135
- ../peripherals/rcc/rcc_v2_dckcfgr2_cecsel.yaml
133136
- ../peripherals/rcc/rcc_merge_rtcsel.yaml
134137
- ../peripherals/gpio/gpio_v2.yaml

devices/stm32f765.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ _include:
173173
- common_patches/tim/v2/f7.yaml
174174
- common_patches/f745_f750_f765_f7x6_f7x7_f7x9_common.yaml
175175
- common_patches/f745_f750_f765_f7x6_f7x9_tim.yaml
176+
- common_patches/f765_f7x6_f7x7_f7x9_common.yaml
176177
- common_patches/f765_f7x6_f7x9_common.yaml
177178
- ../peripherals/tim/v2/ccm.yaml
178179
- ../peripherals/iwdg/iwdg_with_WINR.yaml

devices/stm32f7x6.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ _include:
104104
- common_patches/f7_rcc_rename_dckcfgr.yaml
105105
- common_patches/f7_rcc_dckcfgr.yaml
106106
- common_patches/f7_rcc_dckcfgr_sdmmc1.yaml
107+
- common_patches/f7_rcc_dckcfgr_RM0410.yaml
107108
- ../peripherals/dac/dac_wavegen.yaml
108109
- ../peripherals/dac/dac_common_2ch.yaml
109110
- ../peripherals/dac/dac_dmaudr.yaml
@@ -146,6 +147,7 @@ _include:
146147
- common_patches/f7_tim.yaml
147148
- common_patches/tim/v2/f7.yaml
148149
- common_patches/f745_f750_f765_f7x6_f7x7_f7x9_common.yaml
150+
- common_patches/f765_f7x6_f7x7_f7x9_common.yaml
149151
- common_patches/f745_f750_f765_f7x6_f7x9_tim.yaml
150152
- common_patches/f765_f7x6_f7x9_common.yaml
151153
- ../peripherals/tim/v2/ccm.yaml

devices/stm32f7x7.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -171,18 +171,6 @@ FLASH:
171171
name: OPTKEYR
172172

173173
RCC:
174-
AHB1ENR:
175-
_add:
176-
DTCMRAMEN:
177-
description: DTCM data RAM clock enable
178-
bitOffset: 20
179-
bitWidth: 1
180-
APB2ENR:
181-
_add:
182-
MDIOEN:
183-
description: MDIO clock enable
184-
bitOffset: 30
185-
bitWidth: 1
186174
PLLCFGR:
187175
_add:
188176
PLLR:
@@ -337,6 +325,7 @@ _include:
337325
- common_patches/tim/tim_ccr.yaml
338326
- common_patches/f7_tim.yaml
339327
- common_patches/tim/v2/f7.yaml
328+
- common_patches/f765_f7x6_f7x7_f7x9_common.yaml
340329
- common_patches/f745_f750_f765_f7x6_f7x7_f7x9_common.yaml
341330
- ../peripherals/tim/v2/ccm.yaml
342331
- ../peripherals/iwdg/iwdg_with_WINR.yaml

devices/stm32f7x9.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ _include:
320320
- common_patches/tim/tim_ccr.yaml
321321
- common_patches/f7_tim.yaml
322322
- common_patches/tim/v2/f7.yaml
323+
- common_patches/f765_f7x6_f7x7_f7x9_common.yaml
323324
- common_patches/f745_f750_f765_f7x6_f7x7_f7x9_common.yaml
324325
- common_patches/f745_f750_f765_f7x6_f7x9_tim.yaml
325326
- common_patches/f765_f7x6_f7x9_common.yaml

0 commit comments

Comments
 (0)