GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Release V3.1.0 · STMicroelectronics/x-cube-tcpp@83ab07c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Drivers/BSP/X-NUCLEO-DRP1M1
    • Release_Notes.html
    • Release_Notes.md
    • drp1m1_bus.c
    • drp1m1_conf_template.h
    • drp1m1_usbpd_pwr.c
    • drp1m1_usbpd_pwr.h
  • Projects
    • NUCLEO-G071RB/Applications/USB_PD
      • DRP1M1_DRP
        • DRP1M1_DRP.ioc
        • Inc
          • drp1m1_conf.h
          • stm32g0xx_it.h
          • usbpd_dpm_conf.h
        • STM32CubeIDE
          • .project
        • Src
          • main.c
          • stm32g0xx_it.c
          • usbpd.c
          • usbpd_pwr_if.c
      • DRP1M1_Sink_PPS
        • DRP1M1_Sink_PPS.ioc
        • Inc
          • drp1m1_conf.h
          • stm32g0xx_it.h
          • usbpd_dpm_conf.h
        • STM32CubeIDE
          • .project
        • Src
          • main.c
          • stm32g0xx_it.c
          • usbpd.c
          • usbpd_pwr_if.c
    • NUCLEO-G474RE/Applications/USB_PD/DRP1M1_DRP
      • DRP1M1_DRP.ioc
      • Inc
        • drp1m1_conf.h
        • usbpd_dpm_conf.h
      • Src
        • stm32g4xx_it.c
        • usbpd.c
        • usbpd_pwr_if.c
  • Release_Notes.html
  • Release_Notes.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Drivers/BSP/X-NUCLEO-DRP1M1/Release_Notes.html‎

Copy file name to clipboardExpand all lines: Drivers/BSP/X-NUCLEO-DRP1M1/Release_Notes.html
+55-20Lines changed: 55 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h1 id="purpose">Purpose</h1>
3737
<div class="col-sm-12 col-lg-8">
3838
<h1 id="update-history">Update History</h1>
3939
<div class="collapse">
40-
<input type="checkbox" id="collapse-section3" checked aria-hidden="true"> <label for="collapse-section3" aria-hidden="true">V1.2.0 / 06-July-2021</label>
40+
<input type="checkbox" id="collapse-section4" checked aria-hidden="true"> <label for="collapse-section4" aria-hidden="true">V1.3.0 / 22-October-2021</label>
4141
<div>
4242
<h2 id="main-changes">Main Changes</h2>
4343
<h3 id="maintenance-release">Maintenance release</h3>
@@ -51,13 +51,7 @@ <h2 id="contents">Contents</h2>
5151
</thead>
5252
<tbody>
5353
<tr class="odd">
54-
<td>Implementation of OCP recovery procedure in case of recoverable errors (OCP detected at USB key insertion)</td>
55-
</tr>
56-
<tr class="even">
57-
<td>Update calls to TCP0203 component API, using TCPP0203_Driver structure</td>
58-
</tr>
59-
<tr class="odd">
60-
<td>Update Port descriptor Pwr mode when forced to Low Power in SRC case</td>
54+
<td>Update BSP to support current sensing (measurement available in STM32CubeMonitor-UCPD)</td>
6155
</tr>
6256
</tbody>
6357
</table>
@@ -78,7 +72,7 @@ <h2 id="dependencies">Dependencies</h2>
7872
</div>
7973
</div>
8074
<div class="collapse">
81-
<input type="checkbox" id="collapse-section2" aria-hidden="true"> <label for="collapse-section2" aria-hidden="true">V1.1.0 / 12-Mar-2021</label>
75+
<input type="checkbox" id="collapse-section3" aria-hidden="true"> <label for="collapse-section3" aria-hidden="true">V1.2.0 / 06-July-2021</label>
8276
<div>
8377
<h2 id="main-changes-1">Main Changes</h2>
8478
<h3 id="maintenance-release-1">Maintenance release</h3>
@@ -92,6 +86,47 @@ <h2 id="contents-1">Contents</h2>
9286
</thead>
9387
<tbody>
9488
<tr class="odd">
89+
<td>Implementation of OCP recovery procedure in case of recoverable errors (OCP detected at USB key insertion)</td>
90+
</tr>
91+
<tr class="even">
92+
<td>Update calls to TCP0203 component API, using TCPP0203_Driver structure</td>
93+
</tr>
94+
<tr class="odd">
95+
<td>Update Port descriptor Pwr mode when forced to Low Power in SRC case</td>
96+
</tr>
97+
</tbody>
98+
</table>
99+
<h2 id="known-limitations-1">Known Limitations</h2>
100+
<p>Outstanding bugs list : None</p>
101+
<p>Requirements not met or planned in a forthcoming release : None</p>
102+
<h2 id="development-toolchains-and-compilers-1">Development Toolchains and Compilers</h2>
103+
<ul>
104+
<li>IAR Embedded Workbench for ARM (EWARM) toolchain V8.50.6</li>
105+
<li>RealView Microcontroller Development Kit (MDK-ARM) toolchain V5.31</li>
106+
<li>STM32CubeIDE toolchain V1.7.0</li>
107+
</ul>
108+
<h2 id="supported-devices-and-boards-1">Supported Devices and boards</h2>
109+
<p>The X-NUCLEO-DRP1M1 is an expansion board for the NUCLEO-G071RB and NUCLEO-G474RE.</p>
110+
<h2 id="backward-compatibility-1">Backward compatibility</h2>
111+
<p>No compatibility break with previous version</p>
112+
<h2 id="dependencies-1">Dependencies</h2>
113+
</div>
114+
</div>
115+
<div class="collapse">
116+
<input type="checkbox" id="collapse-section2" aria-hidden="true"> <label for="collapse-section2" aria-hidden="true">V1.1.0 / 12-Mar-2021</label>
117+
<div>
118+
<h2 id="main-changes-2">Main Changes</h2>
119+
<h3 id="maintenance-release-2">Maintenance release</h3>
120+
<h2 id="contents-2">Contents</h2>
121+
<table>
122+
<caption>Fixed bugs list</caption>
123+
<thead>
124+
<tr class="header">
125+
<th>Headline</th>
126+
</tr>
127+
</thead>
128+
<tbody>
129+
<tr class="odd">
95130
<td>Solve some GCC warnings + MISRA corrections</td>
96131
</tr>
97132
<tr class="even">
@@ -123,26 +158,26 @@ <h2 id="contents-1">Contents</h2>
123158
</tr>
124159
</tbody>
125160
</table>
126-
<h2 id="known-limitations-1">Known Limitations</h2>
161+
<h2 id="known-limitations-2">Known Limitations</h2>
127162
<p>Outstanding bugs list : None</p>
128163
<p>Requirements not met or planned in a forthcoming release : None</p>
129-
<h2 id="development-toolchains-and-compilers-1">Development Toolchains and Compilers</h2>
164+
<h2 id="development-toolchains-and-compilers-2">Development Toolchains and Compilers</h2>
130165
<ul>
131166
<li>IAR Embedded Workbench for ARM (EWARM) toolchain V8.32.3</li>
132167
<li>RealView Microcontroller Development Kit (MDK-ARM) toolchain V5.27.1</li>
133168
<li>STM32CubeIDE toolchain V1.5.0</li>
134169
</ul>
135-
<h2 id="supported-devices-and-boards-1">Supported Devices and boards</h2>
170+
<h2 id="supported-devices-and-boards-2">Supported Devices and boards</h2>
136171
<p>The X-NUCLEO-DRP1M1 is an expansion board for the NUCLEO-G071RB and NUCLEO-G474RE.</p>
137-
<h2 id="backward-compatibility-1">Backward compatibility</h2>
172+
<h2 id="backward-compatibility-2">Backward compatibility</h2>
138173
<p>No compatibility break with previous version</p>
139-
<h2 id="dependencies-1">Dependencies</h2>
174+
<h2 id="dependencies-2">Dependencies</h2>
140175
</div>
141176
</div>
142177
<div class="collapse">
143178
<input type="checkbox" id="collapse-section1" aria-hidden="true"> <label for="collapse-section1" aria-hidden="true">V1.0.0 / 29-June-2020</label>
144179
<div>
145-
<h2 id="contents-2">Contents</h2>
180+
<h2 id="contents-3">Contents</h2>
146181
<table>
147182
<caption>Fixed bugs list</caption>
148183
<thead>
@@ -156,20 +191,20 @@ <h2 id="contents-2">Contents</h2>
156191
</tr>
157192
</tbody>
158193
</table>
159-
<h2 id="known-limitations-2">Known Limitations</h2>
194+
<h2 id="known-limitations-3">Known Limitations</h2>
160195
<p>Outstanding bugs list : None</p>
161196
<p>Requirements not met or planned in a forthcoming release : None</p>
162-
<h2 id="development-toolchains-and-compilers-2">Development Toolchains and Compilers</h2>
197+
<h2 id="development-toolchains-and-compilers-3">Development Toolchains and Compilers</h2>
163198
<ul>
164199
<li>IAR Embedded Workbench for ARM (EWARM) toolchain V8.32.3</li>
165200
<li>RealView Microcontroller Development Kit (MDK-ARM) toolchain V5.27.1</li>
166201
<li>STM32CubeIDE toolchain V1.5.0</li>
167202
</ul>
168-
<h2 id="supported-devices-and-boards-2">Supported Devices and boards</h2>
203+
<h2 id="supported-devices-and-boards-3">Supported Devices and boards</h2>
169204
<p>The X-NUCLEO-DRP1M1 is an expansion board for the NUCLEO-G071RB and NUCLEO-G474RE.</p>
170-
<h2 id="backward-compatibility-2">Backward compatibility</h2>
205+
<h2 id="backward-compatibility-3">Backward compatibility</h2>
171206
<p>No compatibility break with previous version</p>
172-
<h2 id="dependencies-2">Dependencies</h2>
207+
<h2 id="dependencies-3">Dependencies</h2>
173208
</div>
174209
</div>
175210
</div>
Collapse file

‎Drivers/BSP/X-NUCLEO-DRP1M1/Release_Notes.md‎

Copy file name to clipboardExpand all lines: Drivers/BSP/X-NUCLEO-DRP1M1/Release_Notes.md
+45-1Lines changed: 45 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,51 @@ The USB Type-C connector can supply the STM32 Nucleo development board thanks to
3939
# Update History
4040

4141
::: {.collapse}
42-
<input type="checkbox" id="collapse-section3" checked aria-hidden="true">
42+
<input type="checkbox" id="collapse-section4" checked aria-hidden="true">
43+
<label for="collapse-section4" aria-hidden="true">V1.3.0 / 22-October-2021</label>
44+
<div>
45+
46+
## Main Changes
47+
48+
### Maintenance release
49+
50+
51+
## Contents
52+
53+
Headline
54+
--------
55+
Update BSP to support current sensing (measurement available in STM32CubeMonitor-UCPD)
56+
57+
: Fixed bugs list
58+
59+
## Known Limitations
60+
61+
Outstanding bugs list : None
62+
63+
Requirements not met or planned in a forthcoming release : None
64+
65+
## Development Toolchains and Compilers
66+
67+
- IAR Embedded Workbench for ARM (EWARM) toolchain V8.50.6
68+
- RealView Microcontroller Development Kit (MDK-ARM) toolchain V5.31
69+
- STM32CubeIDE toolchain V1.7.0
70+
71+
## Supported Devices and boards
72+
73+
The X-NUCLEO-DRP1M1 is an expansion board for the NUCLEO-G071RB and NUCLEO-G474RE.
74+
75+
## Backward compatibility
76+
77+
No compatibility break with previous version
78+
79+
## Dependencies
80+
81+
</div>
82+
:::
83+
84+
85+
::: {.collapse}
86+
<input type="checkbox" id="collapse-section3" aria-hidden="true">
4387
<label for="collapse-section3" aria-hidden="true">V1.2.0 / 06-July-2021</label>
4488
<div>
4589

Collapse file

‎Drivers/BSP/X-NUCLEO-DRP1M1/drp1m1_bus.c‎

Copy file name to clipboardExpand all lines: Drivers/BSP/X-NUCLEO-DRP1M1/drp1m1_bus.c
+31-31Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@
6666
*/
6767
/* Check if handle I2C has been generated by CubeMX */
6868
#if HANDLE_I2C_GENERATED == 1
69-
extern I2C_HandleTypeDef TCPP03_HANDLE_I2C;
69+
extern I2C_HandleTypeDef TCPP0X_HANDLE_I2C;
7070
#else
71-
I2C_HandleTypeDef TCPP03_HANDLE_I2C;
71+
I2C_HandleTypeDef TCPP0X_HANDLE_I2C;
7272
#endif /* HANDLE_I2C_GENERATED */
7373
/**
7474
* @}
@@ -224,16 +224,16 @@ __weak HAL_StatusTypeDef MX_I2C_Init(void)
224224
{
225225
HAL_StatusTypeDef ret = HAL_OK;
226226

227-
TCPP03_HANDLE_I2C.Init.Timing = I2C_GetTiming(HAL_RCC_GetPCLK1Freq(), BUS_I2C_FREQUENCY);
228-
TCPP03_HANDLE_I2C.Init.OwnAddress1 = 0;
229-
TCPP03_HANDLE_I2C.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
230-
TCPP03_HANDLE_I2C.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
231-
TCPP03_HANDLE_I2C.Init.OwnAddress2 = 0;
232-
TCPP03_HANDLE_I2C.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;
233-
TCPP03_HANDLE_I2C.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
227+
TCPP0X_HANDLE_I2C.Init.Timing = I2C_GetTiming(HAL_RCC_GetPCLK1Freq(), BUS_I2C_FREQUENCY);
228+
TCPP0X_HANDLE_I2C.Init.OwnAddress1 = 0;
229+
TCPP0X_HANDLE_I2C.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
230+
TCPP0X_HANDLE_I2C.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
231+
TCPP0X_HANDLE_I2C.Init.OwnAddress2 = 0;
232+
TCPP0X_HANDLE_I2C.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;
233+
TCPP0X_HANDLE_I2C.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
234234
#if (USE_HAL_I2C_REGISTER_CALLBACKS == 0)
235235
/* Init the I2C Msp */
236-
I2C_MspInit(&TCPP03_HANDLE_I2C);
236+
I2C_MspInit(&TCPP0X_HANDLE_I2C);
237237
#else
238238
if(IsI2c3MspCbValid == 0U)
239239
{
@@ -244,17 +244,17 @@ __weak HAL_StatusTypeDef MX_I2C_Init(void)
244244
}
245245
#endif
246246

247-
if(HAL_I2C_Init(&TCPP03_HANDLE_I2C) != HAL_OK)
247+
if(HAL_I2C_Init(&TCPP0X_HANDLE_I2C) != HAL_OK)
248248
{
249249
ret = HAL_ERROR;
250250
}
251-
else if (HAL_I2CEx_ConfigAnalogFilter(&TCPP03_HANDLE_I2C, I2C_ANALOGFILTER_ENABLE) != HAL_OK)
251+
else if (HAL_I2CEx_ConfigAnalogFilter(&TCPP0X_HANDLE_I2C, I2C_ANALOGFILTER_ENABLE) != HAL_OK)
252252
{
253253
ret = HAL_ERROR;
254254
}
255255
else
256256
{
257-
if (HAL_I2CEx_ConfigDigitalFilter(&TCPP03_HANDLE_I2C, 0) != HAL_OK)
257+
if (HAL_I2CEx_ConfigDigitalFilter(&TCPP0X_HANDLE_I2C, 0) != HAL_OK)
258258
{
259259
ret = HAL_ERROR;
260260
}
@@ -271,16 +271,16 @@ int32_t BSP_I2C_Init(void)
271271
{
272272
int32_t ret = BSP_ERROR_NONE;
273273

274-
TCPP03_HANDLE_I2C.Instance = BUS_I2C_INSTANCE;
274+
TCPP0X_HANDLE_I2C.Instance = BUS_I2C_INSTANCE;
275275

276-
if(HAL_I2C_GetState(&TCPP03_HANDLE_I2C) == HAL_I2C_STATE_RESET)
276+
if(HAL_I2C_GetState(&TCPP0X_HANDLE_I2C) == HAL_I2C_STATE_RESET)
277277
{
278278
/* Init the I2C */
279279
if(MX_I2C_Init() != HAL_OK)
280280
{
281281
ret = BSP_ERROR_BUS_FAILURE;
282282
}
283-
else if( HAL_I2CEx_ConfigAnalogFilter(&TCPP03_HANDLE_I2C, I2C_ANALOGFILTER_ENABLE) != HAL_OK)
283+
else if( HAL_I2CEx_ConfigAnalogFilter(&TCPP0X_HANDLE_I2C, I2C_ANALOGFILTER_ENABLE) != HAL_OK)
284284
{
285285
ret = BSP_ERROR_BUS_FAILURE;
286286
}
@@ -301,11 +301,11 @@ int32_t BSP_I2C_DeInit(void)
301301
int32_t ret = BSP_ERROR_NONE;
302302

303303
#if (USE_HAL_I2C_REGISTER_CALLBACKS == 0)
304-
I2C_MspDeInit(&TCPP03_HANDLE_I2C);
304+
I2C_MspDeInit(&TCPP0X_HANDLE_I2C);
305305
#endif /* (USE_HAL_I2C_REGISTER_CALLBACKS == 0) */
306306

307307
/* Init the I2C */
308-
if (HAL_I2C_DeInit(&TCPP03_HANDLE_I2C) != HAL_OK)
308+
if (HAL_I2C_DeInit(&TCPP0X_HANDLE_I2C) != HAL_OK)
309309
{
310310
ret = BSP_ERROR_PERIPH_FAILURE;
311311
}
@@ -323,7 +323,7 @@ int32_t BSP_I2C_IsReady(uint16_t DevAddr, uint32_t Trials)
323323
{
324324
int32_t ret;
325325

326-
if(HAL_I2C_IsDeviceReady(&TCPP03_HANDLE_I2C, DevAddr, Trials, BUS_I2C_POLL_TIMEOUT) != HAL_OK)
326+
if(HAL_I2C_IsDeviceReady(&TCPP0X_HANDLE_I2C, DevAddr, Trials, BUS_I2C_POLL_TIMEOUT) != HAL_OK)
327327
{
328328
ret = BSP_ERROR_BUSY;
329329
}
@@ -347,15 +347,15 @@ int32_t BSP_I2C_WriteReg(uint16_t DevAddr, uint16_t Reg, uint8_t *pData, uint16_
347347
{
348348
int32_t ret;
349349

350-
if(HAL_I2C_Mem_Write(&TCPP03_HANDLE_I2C, (uint8_t)DevAddr,
350+
if(HAL_I2C_Mem_Write(&TCPP0X_HANDLE_I2C, (uint8_t)DevAddr,
351351
(uint16_t)Reg, I2C_MEMADD_SIZE_8BIT,
352352
(uint8_t *)pData, Length, 0x1000) == HAL_OK)
353353
{
354354
ret = BSP_ERROR_NONE;
355355
}
356356
else
357357
{
358-
if( HAL_I2C_GetError(&TCPP03_HANDLE_I2C) == HAL_I2C_ERROR_AF)
358+
if( HAL_I2C_GetError(&TCPP0X_HANDLE_I2C) == HAL_I2C_ERROR_AF)
359359
{
360360
ret = BSP_ERROR_BUS_ACKNOWLEDGE_FAILURE;
361361
}
@@ -379,15 +379,15 @@ int32_t BSP_I2C_ReadReg(uint16_t DevAddr, uint16_t Reg, uint8_t *pData, uint16_t
379379
{
380380
int32_t ret;
381381

382-
if (HAL_I2C_Mem_Read(&TCPP03_HANDLE_I2C, DevAddr, (uint16_t)Reg,
382+
if (HAL_I2C_Mem_Read(&TCPP0X_HANDLE_I2C, DevAddr, (uint16_t)Reg,
383383
I2C_MEMADD_SIZE_8BIT, pData,
384384
Length, 0x1000) == HAL_OK)
385385
{
386386
ret = BSP_ERROR_NONE;
387387
}
388388
else
389389
{
390-
if( HAL_I2C_GetError(&TCPP03_HANDLE_I2C) == HAL_I2C_ERROR_AF)
390+
if( HAL_I2C_GetError(&TCPP0X_HANDLE_I2C) == HAL_I2C_ERROR_AF)
391391
{
392392
ret = BSP_ERROR_BUS_ACKNOWLEDGE_FAILURE;
393393
}
@@ -411,15 +411,15 @@ int32_t BSP_I2C_WriteReg16(uint16_t DevAddr, uint16_t Reg, uint8_t *pData, uint1
411411
{
412412
int32_t ret;
413413

414-
if(HAL_I2C_Mem_Write(&TCPP03_HANDLE_I2C, (uint8_t)DevAddr,
414+
if(HAL_I2C_Mem_Write(&TCPP0X_HANDLE_I2C, (uint8_t)DevAddr,
415415
(uint16_t)Reg, I2C_MEMADD_SIZE_16BIT,
416416
(uint8_t *)pData, Length, 0x1000) == HAL_OK)
417417
{
418418
ret = BSP_ERROR_NONE;
419419
}
420420
else
421421
{
422-
if( HAL_I2C_GetError(&TCPP03_HANDLE_I2C) == HAL_I2C_ERROR_AF)
422+
if( HAL_I2C_GetError(&TCPP0X_HANDLE_I2C) == HAL_I2C_ERROR_AF)
423423
{
424424
ret = BSP_ERROR_BUS_ACKNOWLEDGE_FAILURE;
425425
}
@@ -443,15 +443,15 @@ int32_t BSP_I2C_ReadReg16(uint16_t DevAddr, uint16_t Reg, uint8_t *pData, uint16
443443
{
444444
int32_t ret;
445445

446-
if (HAL_I2C_Mem_Read(&TCPP03_HANDLE_I2C, DevAddr, (uint16_t)Reg,
446+
if (HAL_I2C_Mem_Read(&TCPP0X_HANDLE_I2C, DevAddr, (uint16_t)Reg,
447447
I2C_MEMADD_SIZE_16BIT, pData,
448448
Length, 0x1000) == HAL_OK)
449449
{
450450
ret = BSP_ERROR_NONE;
451451
}
452452
else
453453
{
454-
if( HAL_I2C_GetError(&TCPP03_HANDLE_I2C) == HAL_I2C_ERROR_AF)
454+
if( HAL_I2C_GetError(&TCPP0X_HANDLE_I2C) == HAL_I2C_ERROR_AF)
455455
{
456456
ret = BSP_ERROR_BUS_ACKNOWLEDGE_FAILURE;
457457
}
@@ -475,11 +475,11 @@ int32_t BSP_I2C1_RegisterDefaultMspCallbacks (void)
475475
__HAL_I2C_RESET_HANDLE_STATE(&hi2c1);
476476

477477
/* Register default MspInit/MspDeInit Callback */
478-
if(HAL_I2C_RegisterCallback(&TCPP03_HANDLE_I2C, HAL_I2C_MSPINIT_CB_ID, I2C1_MspInit) != HAL_OK)
478+
if(HAL_I2C_RegisterCallback(&TCPP0X_HANDLE_I2C, HAL_I2C_MSPINIT_CB_ID, I2C1_MspInit) != HAL_OK)
479479
{
480480
ret = BSP_ERROR_PERIPH_FAILURE;
481481
}
482-
else if(HAL_I2C_RegisterCallback(&TCPP03_HANDLE_I2C, HAL_I2C_MSPDEINIT_CB_ID, I2C1_MspDeInit) != HAL_OK)
482+
else if(HAL_I2C_RegisterCallback(&TCPP0X_HANDLE_I2C, HAL_I2C_MSPDEINIT_CB_ID, I2C1_MspDeInit) != HAL_OK)
483483
{
484484
ret = BSP_ERROR_PERIPH_FAILURE;
485485
}
@@ -504,11 +504,11 @@ int32_t BSP_I2C1_RegisterMspCallbacks (BSP_I2C1_Cb_t *Callback)
504504
__HAL_I2C_RESET_HANDLE_STATE(&hi2c1);
505505

506506
/* Register MspInit/MspDeInit Callbacks */
507-
if(HAL_I2C_RegisterCallback(&TCPP03_HANDLE_I2C, HAL_I2C_MSPINIT_CB_ID, Callback->pMspI2cInitCb) != HAL_OK)
507+
if(HAL_I2C_RegisterCallback(&TCPP0X_HANDLE_I2C, HAL_I2C_MSPINIT_CB_ID, Callback->pMspI2cInitCb) != HAL_OK)
508508
{
509509
ret = BSP_ERROR_PERIPH_FAILURE;
510510
}
511-
else if(HAL_I2C_RegisterCallback(&TCPP03_HANDLE_I2C, HAL_I2C_MSPDEINIT_CB_ID, Callback->pMspI2cDeInitCb) != HAL_OK)
511+
else if(HAL_I2C_RegisterCallback(&TCPP0X_HANDLE_I2C, HAL_I2C_MSPDEINIT_CB_ID, Callback->pMspI2cDeInitCb) != HAL_OK)
512512
{
513513
ret = BSP_ERROR_PERIPH_FAILURE;
514514
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.