Skip to content

Commit 7007793

Browse files
committed
variants: update with I3C support
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 46e38fe commit 7007793

60 files changed

Lines changed: 628 additions & 0 deletions

File tree

Some content is hidden

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

variants/STM32H5xx/H503CB(T-U)/variant_generic.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,14 @@
131131
#define PIN_WIRE_SCL PB3
132132
#endif
133133

134+
// I3C definitions
135+
#ifndef PIN_I3C_SDA
136+
#define PIN_I3C_SDA PB4
137+
#endif
138+
#ifndef PIN_I3C_SCL
139+
#define PIN_I3C_SCL PB3
140+
#endif
141+
134142
// Timer Definitions
135143
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
136144
#ifndef TIMER_TONE
@@ -158,6 +166,9 @@
158166
#if !defined(HAL_DAC_MODULE_DISABLED)
159167
#define HAL_DAC_MODULE_ENABLED
160168
#endif
169+
#if !defined(HAL_I3C_MODULE_DISABLED)
170+
#define HAL_I3C_MODULE_ENABLED
171+
#endif
161172

162173
/*----------------------------------------------------------------------------
163174
* Arduino objects - C++ only

variants/STM32H5xx/H503EBY/variant_generic.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@
104104
#define PIN_WIRE_SCL PB3
105105
#endif
106106

107+
// I3C definitions
108+
#ifndef PIN_I3C_SDA
109+
#define PIN_I3C_SDA PB4
110+
#endif
111+
#ifndef PIN_I3C_SCL
112+
#define PIN_I3C_SCL PB3
113+
#endif
114+
107115
// Timer Definitions
108116
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
109117
#ifndef TIMER_TONE
@@ -131,6 +139,9 @@
131139
#if !defined(HAL_DAC_MODULE_DISABLED)
132140
#define HAL_DAC_MODULE_ENABLED
133141
#endif
142+
#if !defined(HAL_I3C_MODULE_DISABLED)
143+
#define HAL_I3C_MODULE_ENABLED
144+
#endif
134145

135146
/*----------------------------------------------------------------------------
136147
* Arduino objects - C++ only

variants/STM32H5xx/H503KBU/variant_generic.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@
118118
#define PIN_WIRE_SCL PB3
119119
#endif
120120

121+
// I3C definitions
122+
#ifndef PIN_I3C_SDA
123+
#define PIN_I3C_SDA PB4
124+
#endif
125+
#ifndef PIN_I3C_SCL
126+
#define PIN_I3C_SCL PB3
127+
#endif
128+
121129
// Timer Definitions
122130
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
123131
#ifndef TIMER_TONE
@@ -145,6 +153,9 @@
145153
#if !defined(HAL_DAC_MODULE_DISABLED)
146154
#define HAL_DAC_MODULE_ENABLED
147155
#endif
156+
#if !defined(HAL_I3C_MODULE_DISABLED)
157+
#define HAL_I3C_MODULE_ENABLED
158+
#endif
148159

149160
/*----------------------------------------------------------------------------
150161
* Arduino objects - C++ only

variants/STM32H5xx/H503RBT/variant_NUCLEO_H503RB.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@
161161
#if !defined(HAL_DAC_MODULE_DISABLED)
162162
#define HAL_DAC_MODULE_ENABLED
163163
#endif
164+
#if !defined(HAL_I3C_MODULE_DISABLED)
165+
#define HAL_I3C_MODULE_ENABLED
166+
#endif
164167

165168
// Value of the External oscillator in Hz
166169
#define HSE_VALUE 24000000UL

variants/STM32H5xx/H503RBT/variant_generic.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,14 @@
153153
#define PIN_WIRE_SCL PB3
154154
#endif
155155

156+
// I3C definitions
157+
#ifndef PIN_I3C_SDA
158+
#define PIN_I3C_SDA PB4
159+
#endif
160+
#ifndef PIN_I3C_SCL
161+
#define PIN_I3C_SCL PB3
162+
#endif
163+
156164
// Timer Definitions
157165
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
158166
#ifndef TIMER_TONE
@@ -180,6 +188,9 @@
180188
#if !defined(HAL_DAC_MODULE_DISABLED)
181189
#define HAL_DAC_MODULE_ENABLED
182190
#endif
191+
#if !defined(HAL_I3C_MODULE_DISABLED)
192+
#define HAL_I3C_MODULE_ENABLED
193+
#endif
183194

184195
/*----------------------------------------------------------------------------
185196
* Arduino objects - C++ only

variants/STM32H5xx/H523C(C-E)(T-U)_H533CE(T-U)/variant_generic.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@
130130
#define PIN_WIRE_SCL PB10
131131
#endif
132132

133+
// I3C definitions
134+
#ifndef PIN_I3C_SDA
135+
#define PIN_I3C_SDA PB4
136+
#endif
137+
#ifndef PIN_I3C_SCL
138+
#define PIN_I3C_SCL PA8
139+
#endif
140+
133141
// Timer Definitions
134142
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
135143
#ifndef TIMER_TONE
@@ -157,6 +165,9 @@
157165
#if !defined(HAL_DAC_MODULE_DISABLED)
158166
#define HAL_DAC_MODULE_ENABLED
159167
#endif
168+
#if !defined(HAL_I3C_MODULE_DISABLED)
169+
#define HAL_I3C_MODULE_ENABLED
170+
#endif
160171
#if !defined(HAL_OSPI_MODULE_DISABLED)
161172
#define HAL_OSPI_MODULE_ENABLED
162173
#endif

variants/STM32H5xx/H523HEY_H533HEY/variant_generic.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@
112112
#define PIN_WIRE_SCL PB8
113113
#endif
114114

115+
// I3C definitions
116+
#ifndef PIN_I3C_SDA
117+
#define PIN_I3C_SDA PB4
118+
#endif
119+
#ifndef PIN_I3C_SCL
120+
#define PIN_I3C_SCL PA8
121+
#endif
122+
115123
// Timer Definitions
116124
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
117125
#ifndef TIMER_TONE
@@ -139,6 +147,9 @@
139147
#if !defined(HAL_DAC_MODULE_DISABLED)
140148
#define HAL_DAC_MODULE_ENABLED
141149
#endif
150+
#if !defined(HAL_I3C_MODULE_DISABLED)
151+
#define HAL_I3C_MODULE_ENABLED
152+
#endif
142153
#if !defined(HAL_OSPI_MODULE_DISABLED)
143154
#define HAL_OSPI_MODULE_ENABLED
144155
#endif

variants/STM32H5xx/H523R(C-E)T_H533RET/variant_generic.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,14 @@
156156
#define PIN_WIRE_SCL PB10
157157
#endif
158158

159+
// I3C definitions
160+
#ifndef PIN_I3C_SDA
161+
#define PIN_I3C_SDA PB4
162+
#endif
163+
#ifndef PIN_I3C_SCL
164+
#define PIN_I3C_SCL PA8
165+
#endif
166+
159167
// Timer Definitions
160168
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
161169
#ifndef TIMER_TONE
@@ -186,6 +194,9 @@
186194
#if !defined(HAL_DAC_MODULE_DISABLED)
187195
#define HAL_DAC_MODULE_ENABLED
188196
#endif
197+
#if !defined(HAL_I3C_MODULE_DISABLED)
198+
#define HAL_I3C_MODULE_ENABLED
199+
#endif
189200
#if !defined(HAL_OSPI_MODULE_DISABLED)
190201
#define HAL_OSPI_MODULE_ENABLED
191202
#endif

variants/STM32H5xx/H523V(C-E)(I-T)_H533VE(I-T)/variant_generic.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,14 @@
187187
#define PIN_WIRE_SCL PB10
188188
#endif
189189

190+
// I3C definitions
191+
#ifndef PIN_I3C_SDA
192+
#define PIN_I3C_SDA PB4
193+
#endif
194+
#ifndef PIN_I3C_SCL
195+
#define PIN_I3C_SCL PA8
196+
#endif
197+
190198
// Timer Definitions
191199
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
192200
#ifndef TIMER_TONE
@@ -214,6 +222,9 @@
214222
#if !defined(HAL_DAC_MODULE_DISABLED)
215223
#define HAL_DAC_MODULE_ENABLED
216224
#endif
225+
#if !defined(HAL_I3C_MODULE_DISABLED)
226+
#define HAL_I3C_MODULE_ENABLED
227+
#endif
217228
#if !defined(HAL_OSPI_MODULE_DISABLED)
218229
#define HAL_OSPI_MODULE_ENABLED
219230
#endif

variants/STM32H5xx/H523Z(C-E)(J-T)_H533ZE(J-T)/variant_generic.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,14 @@
219219
#define PIN_WIRE_SCL PB10
220220
#endif
221221

222+
// I3C definitions
223+
#ifndef PIN_I3C_SDA
224+
#define PIN_I3C_SDA PB4
225+
#endif
226+
#ifndef PIN_I3C_SCL
227+
#define PIN_I3C_SCL PA8
228+
#endif
229+
222230
// Timer Definitions
223231
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
224232
#ifndef TIMER_TONE
@@ -246,6 +254,9 @@
246254
#if !defined(HAL_DAC_MODULE_DISABLED)
247255
#define HAL_DAC_MODULE_ENABLED
248256
#endif
257+
#if !defined(HAL_I3C_MODULE_DISABLED)
258+
#define HAL_I3C_MODULE_ENABLED
259+
#endif
249260
#if !defined(HAL_OSPI_MODULE_DISABLED)
250261
#define HAL_OSPI_MODULE_ENABLED
251262
#endif

0 commit comments

Comments
 (0)