Skip to content

Commit 329bd23

Browse files
authored
Merge pull request #1169 from z-av/spi-c0u0
SPI for C0/U0
2 parents 5e1cbff + cb68c51 commit 329bd23

19 files changed

+73
-23
lines changed

devices/fields/spi/spi_v3_base.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ SR:
199199

200200
IFCR:
201201
"*C":
202-
_write:
202+
_W1C:
203203
Clear: [1, Clear interrupt flag]
204204

205205
TXDR:

devices/stm32c011.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ I2C1:
5454

5555
IWDG:
5656
_strip: IWDG_
57-
_include: patches/16bit_with_mask.yaml
57+
_include:
58+
- patches/16bit_with_mask.yaml
59+
- fields/iwdg/iwdg_with_WINR.yaml
5860

5961
PWR:
6062
_strip: PWR_
@@ -74,6 +76,8 @@ SPI1:
7476
_include:
7577
- patches/16bit.yaml
7678
- patches/spi/dr8.yaml
79+
- fields/spi/spi_v2.yaml
80+
- fields/spi/spi_I2S_ASTRTEN.yaml
7781

7882
SYSCFG:
7983
_strip: SYSCFG_
@@ -127,7 +131,9 @@ USART1:
127131

128132
WWDG:
129133
_strip: WWDG_
130-
_include: patches/16bit_with_mask.yaml
134+
_include:
135+
- patches/16bit_with_mask.yaml
136+
- fields/wwdg/wwdg_v2.yaml
131137

132138
_include:
133139
- patches/nvic/2_prio_bits.yaml

devices/stm32c031.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ I2C1:
5858

5959
IWDG:
6060
_strip: IWDG_
61-
_include: patches/16bit_with_mask.yaml
61+
_include:
62+
- patches/16bit_with_mask.yaml
63+
- fields/iwdg/iwdg_with_WINR.yaml
6264

6365
PWR:
6466
_strip: PWR_
@@ -78,6 +80,8 @@ SPI1:
7880
_include:
7981
- patches/16bit.yaml
8082
- patches/spi/dr8.yaml
83+
- fields/spi/spi_v2.yaml
84+
- fields/spi/spi_I2S_ASTRTEN.yaml
8185

8286
SYSCFG:
8387
_strip: SYSCFG_
@@ -131,7 +135,9 @@ USART1:
131135

132136
WWDG:
133137
_strip: WWDG_
134-
_include: patches/16bit_with_mask.yaml
138+
_include:
139+
- patches/16bit_with_mask.yaml
140+
- fields/wwdg/wwdg_v2.yaml
135141

136142
_include:
137143
- patches/nvic/2_prio_bits.yaml

devices/stm32c071.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ I2C1:
6767

6868
IWDG:
6969
_strip: IWDG_
70-
_include: patches/16bit_with_mask.yaml
70+
_include:
71+
- patches/16bit_with_mask.yaml
72+
- fields/iwdg/iwdg_with_WINR.yaml
7173

7274
PWR:
7375
_strip: PWR_
@@ -87,6 +89,8 @@ SPI1:
8789
_include:
8890
- patches/16bit.yaml
8991
- patches/spi/dr8.yaml
92+
- fields/spi/spi_v2.yaml
93+
- fields/spi/spi_I2S_ASTRTEN.yaml
9094

9195
SYSCFG:
9296
_strip: SYSCFG_
@@ -168,7 +172,9 @@ USB:
168172

169173
WWDG:
170174
_strip: WWDG_
171-
_include: patches/16bit_with_mask.yaml
175+
_include:
176+
- patches/16bit_with_mask.yaml
177+
- fields/wwdg/wwdg_v2.yaml
172178

173179
_include:
174180
- patches/nvic/2_prio_bits.yaml

devices/stm32g030.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ SPI1:
114114
- patches/16bit.yaml
115115
- patches/spi/dr8.yaml
116116
- patches/spi/g0_rename_registers.yaml
117-
- fields/spi/spi_v2_without_UDR_CHSIDE.yaml
117+
- fields/spi/spi_v2.yaml
118118

119119
SYSCFG:
120120
_include: fields/syscfg/syscfg_g0_usart2.yaml

devices/stm32g031.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ SPI1:
112112
- patches/16bit.yaml
113113
- patches/spi/dr8.yaml
114114
- patches/spi/g0_rename_registers.yaml
115-
- fields/spi/spi_v2_without_UDR_CHSIDE.yaml
115+
- fields/spi/spi_v2.yaml
116116

117117
SYSCFG:
118118
_include: fields/syscfg/syscfg_g0_usart2.yaml

devices/stm32g041.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ SPI1:
117117
- patches/16bit.yaml
118118
- patches/spi/dr8.yaml
119119
- patches/spi/g0_rename_registers.yaml
120-
- fields/spi/spi_v2_without_UDR_CHSIDE.yaml
120+
- fields/spi/spi_v2.yaml
121121

122122
SYSCFG:
123123
_include: fields/syscfg/syscfg_g0_usart2.yaml

devices/stm32g050.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ SPI1:
103103
_include:
104104
- patches/16bit.yaml
105105
- patches/spi/dr8.yaml
106-
- fields/spi/spi_v2_without_UDR_CHSIDE.yaml
106+
- fields/spi/spi_v2.yaml
107107

108108
SYSCFG:
109109
_include: fields/syscfg/syscfg_g0_usart2.yaml

devices/stm32g051.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ SPI1:
107107
_include:
108108
- patches/16bit.yaml
109109
- patches/spi/dr8.yaml
110-
- fields/spi/spi_v2_without_UDR_CHSIDE.yaml
110+
- fields/spi/spi_v2.yaml
111111

112112
SYSCFG:
113113
_include: fields/syscfg/syscfg_g0_usart2.yaml

devices/stm32g061.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ _copy:
99
TIM3:
1010
from: TIM2
1111
baseAddress: 0x40000400
12+
SPI1:
13+
from: ../svd/stm32g051.svd:SPI1
14+
SPI2:
15+
from: ../svd/stm32g051.svd:SPI2
1216

1317
ADC:
1418
_strip: ADC_
@@ -106,11 +110,12 @@ RTC:
106110
- fields/rtc/v3.yaml
107111
- collect/rtc/alarm.yaml
108112

109-
# TODO: add SPI
110-
#SPI?:
111-
# _include:
112-
# - patches/16bit.yaml
113-
# - patches/spi/dr8.yaml
113+
SPI1:
114+
_strip: SPI_
115+
_include:
116+
- patches/16bit.yaml
117+
- patches/spi/dr8.yaml
118+
- fields/spi/spi_v2.yaml
114119

115120
SYSCFG:
116121
_include: fields/syscfg/syscfg_g0_usart2.yaml

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy