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 v4.2.0 · STMicroelectronics/x-cube-tcpp@eb99927

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .gitmodules
  • Documentation
    • STMicroelectronics.X-CUBE-TCPP_GettingStarted.pdf
    • TestResults/Ellisys
      • x-cube-tcpp_v4.1.0_NUCLEO-G0B1RE-DRP1M1_DRP_DRD_USB_Compliance_Report.html
    • USBPD_CORE_RELEASE_User_Manual.chm
  • Drivers/BSP
    • X-NUCLEO-DRP1M1
      • Release_Notes.html
      • drp1m1_usbpd_pwr.c
    • X-NUCLEO-SRC1M1
      • Release_Notes.html
      • src1m1_usbpd_pwr.c
  • Middlewares/ST
    • STM32_USBPD_Library
      • Core
    • STM32_USB_Host_Library
  • Projects
    • NUCLEO-F446RE/Applications
      • LICENSE.txt
      • USB_PD/SRC1M1_Source_TypeC_Only/EWARM
        • SRC1M1_Source_TypeC_Only.ewd
        • SRC1M1_Source_TypeC_Only.ewp
    • NUCLEO-G071RB/Applications
      • LICENSE.txt
      • USB_PD
        • DRP1M1_DRP_LPM
          • EWARM
            • DRP1M1_DRP_LPM.ewd
            • DRP1M1_DRP_LPM.ewp
          • Inc
            • usbpd_dpm_conf.h
        • DRP1M1_DRP
          • EWARM
            • DRP1M1_DRP.ewd
            • DRP1M1_DRP.ewp
          • USBPD/Target
            • usbpd_dpm_conf.h
        • SNK1M1_Sink_LPM
          • EWARM
            • SNK1M1_Sink_LPM.ewd
            • SNK1M1_Sink_LPM.ewp
          • Inc
            • usbpd_dpm_conf.h
        • SNK1M1_Sink_PPS
          • EWARM
            • SNK1M1_Sink_PPS.ewd
            • SNK1M1_Sink_PPS.ewp
          • Inc
            • usbpd_dpm_conf.h
        • SNK1M1_Sink
          • EWARM
            • SNK1M1_Sink.ewd
            • SNK1M1_Sink.ewp
          • USBPD/Target
            • usbpd_dpm_conf.h
        • SRC1M1_Source
          • EWARM
            • SRC1M1_Source.ewd
            • SRC1M1_Source.ewp
          • USBPD/Target
            • usbpd_dpm_conf.h
    • NUCLEO-G0B1RE/Applications
      • LICENSE.txt
      • USB_PD/DRP1M1_DRP_DRD
        • Core
          • Inc
            • FreeRTOSConfig.h
            • main.h
            • stm32_assert.h
            • stm32g0xx_hal_conf.h
            • stm32g0xx_it.h
            • tracer_emb_conf.h
            • usbpd_gui_memmap.h
          • Src
            • app_freertos.c
            • main.c
            • stm32g0xx_hal_msp.c
            • stm32g0xx_it.c
            • system_stm32g0xx.c
        • EWARM
          • DRP1M1_DRP_DRD.ewd
          • DRP1M1_DRP_DRD.ewp
          • Project.eww
          • startup_stm32g0b1xx.s
          • stm32g0b1xx_flash.icf
        • README.md
        • STMicroelectronics_DRP1M1_DRP_DRD_STM32G0B1RE_VIF.xml
        • TCPP
          • App
            • app_tcpp.c
            • app_tcpp.h
          • STMicroelectronics.X-CUBE-TCPP_conf.h
          • Target
            • drp1m1_conf.h
        • USBPD
          • App
            • usbpd.c
            • usbpd.h
            • usbpd_dpm_core.c
            • usbpd_dpm_core.h
            • usbpd_os_port.h
            • usbpd_pdo_defs.h
            • usbpd_pwr_if.c
            • usbpd_pwr_if.h
            • usbpd_usb_if.c
            • usbpd_usb_if.h
          • Target
            • usbpd_devices_conf.h
            • usbpd_dpm_conf.h
            • usbpd_dpm_user.c
            • usbpd_dpm_user.h
            • usbpd_pwr_user.c
            • usbpd_pwr_user.h
            • usbpd_vdm_user.c
            • usbpd_vdm_user.h
        • USB_Device
          • App
            • usb_device.c
            • usb_device.h
            • usbd_desc.c
            • usbd_desc.h
          • Target
            • usbd_conf.c
            • usbd_conf.h
        • USB_Host
          • App
            • usb_host.c
            • usb_host.h
          • Target
            • usbh_conf.c
            • usbh_conf.h
            • usbh_platform.c
            • usbh_platform.h
        • readme.html
    • NUCLEO-G474RE/Applications
      • LICENSE.txt
      • USB_PD
        • DRP1M1_DRP
          • EWARM
            • DRP1M1_DRP.ewd
            • DRP1M1_DRP.ewp
          • USBPD
            • usbpd_dpm_conf.h
        • SNK1M1_Sink
          • EWARM
            • SNK1M1_Sink.ewd
            • SNK1M1_sink.ewp
          • USBPD
            • usbpd_dpm_conf.h
        • SRC1M1_Source
          • EWARM
            • SRC1M1_Source.ewd
            • SRC1M1_Source.ewp
          • USBPD
            • usbpd_dpm_conf.h
    • NUCLEO-L412RB-P/Applications
      • LICENSE.txt
      • USB_PD/SNK1M1_Sink_TypeC_Only/EWARM
        • SNK1M1_Sink_TypeC_Only.ewd
        • SNK1M1_Sink_TypeC_Only.ewp
    • Release_Notes.html
  • Release_Notes.html
  • STM32CubeMX
    • STMicroelectronics.X-CUBE-TCPP.4.2.0_Configs.xml
    • STMicroelectronics.X-CUBE-TCPP.4.2.0_Modes.xml
    • templates
      • app_DRP_c.ftl
      • app_DRP_h.ftl
      • app_SNK1M1_c.ftl
      • app_SNK_TCPP01_c.ftl
      • app_SNK_TCPP01_h.ftl
      • app_SNK_TCPP03_c.ftl
      • app_SNK_TCPP03_h.ftl
      • app_SRC_c.ftl
      • app_SRC_h.ftl
      • app_USBnoPD_SRC_c.ftl
      • app_USBnoPD_SRC_h.ftl
      • custom_usbpd_pwr_c_SNK.ftl
      • custom_usbpd_pwr_c_SRCDRP.ftl
      • custom_usbpd_pwr_c_SRCnoPD.ftl
      • custom_usbpd_pwr_h_SNK.ftl
      • custom_usbpd_pwr_h_SRCDRP.ftl
      • custom_usbpd_pwr_h_SRCnoPD.ftl
  • STMicroelectronics.X-CUBE-TCPP.pdsc
  • Utilities
    • TRACER_EMB

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.gitmodules‎

Copy file name to clipboardExpand all lines: .gitmodules
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,6 @@
5252
[submodule "Drivers/CMSIS/Device/ST/STM32F4xx"]
5353
path = Drivers/CMSIS/Device/ST/STM32F4xx
5454
url = https://github.com/STMicroelectronics/cmsis_device_f4
55+
[submodule "Middlewares/ST/STM32_USB_Host_Library"]
56+
path = Middlewares/ST/STM32_USB_Host_Library
57+
url = https://github.com/STMicroelectronics/stm32-mw-usb-host.git
Collapse file

‎Documentation/STMicroelectronics.X-CUBE-TCPP_GettingStarted.pdf‎

Copy file name to clipboard
-248 KB
Binary file not shown.
Collapse file

‎Documentation/TestResults/Ellisys/x-cube-tcpp_v4.1.0_NUCLEO-G0B1RE-DRP1M1_DRP_DRD_USB_Compliance_Report.html‎

Copy file name to clipboardExpand all lines: Documentation/TestResults/Ellisys/x-cube-tcpp_v4.1.0_NUCLEO-G0B1RE-DRP1M1_DRP_DRD_USB_Compliance_Report.html
+7,110Lines changed: 7110 additions & 0 deletions
Large diffs are not rendered by default.
Collapse file

‎Documentation/USBPD_CORE_RELEASE_User_Manual.chm‎

Copy file name to clipboard
125 KB
Binary file not shown.
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
+78-40Lines changed: 78 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h1 id="purpose">Purpose</h1>
3636
<div class="col-sm-12 col-lg-8">
3737
<h1 id="update-history">Update History</h1>
3838
<div class="collapse">
39-
<input type="checkbox" id="collapse-section7" checked aria-hidden="true"> <label for="collapse-section7" aria-hidden="true">V1.5.1 / 09-Nov-2023</label>
39+
<input type="checkbox" id="collapse-section8" checked aria-hidden="true"> <label for="collapse-section8" aria-hidden="true">V1.5.2 / 10-Oct-2024</label>
4040
<div>
4141
<h2 id="main-changes">Main Changes</h2>
4242
<h3 id="maintenance-release">Maintenance release</h3>
@@ -50,10 +50,10 @@ <h2 id="contents">Contents</h2>
5050
</thead>
5151
<tbody>
5252
<tr class="odd">
53-
<td>Protect double ADC configuration</td>
53+
<td>Add missing argument in LL_ADC_StartCalibration() for STM32G4xx products</td>
5454
</tr>
5555
<tr class="even">
56-
<td>Relocate include file list in DRP1M1 configuration file</td>
56+
<td>Add DisableDeepPowerDown() for STM32G4xx products</td>
5757
</tr>
5858
</tbody>
5959
</table>
@@ -74,7 +74,7 @@ <h2 id="dependencies">Dependencies</h2>
7474
</div>
7575
</div>
7676
<div class="collapse">
77-
<input type="checkbox" id="collapse-section6" aria-hidden="true"> <label for="collapse-section6" aria-hidden="true">V1.5.0 / 27-Jan-2023</label>
77+
<input type="checkbox" id="collapse-section7" aria-hidden="true"> <label for="collapse-section7" aria-hidden="true">V1.5.1 / 09-Nov-2023</label>
7878
<div>
7979
<h2 id="main-changes-1">Main Changes</h2>
8080
<h3 id="maintenance-release-1">Maintenance release</h3>
@@ -88,16 +88,10 @@ <h2 id="contents-1">Contents</h2>
8888
</thead>
8989
<tbody>
9090
<tr class="odd">
91-
<td>MCUAStyle corrections</td>
92-
</tr>
93-
<tr class="even">
94-
<td>Update comments, code clean, unused code removal</td>
95-
</tr>
96-
<tr class="odd">
97-
<td>Addition of division by zero protection</td>
91+
<td>Protect double ADC configuration</td>
9892
</tr>
9993
<tr class="even">
100-
<td>Test TCPP version before trying to open sink gate driver</td>
94+
<td>Relocate include file list in DRP1M1 configuration file</td>
10195
</tr>
10296
</tbody>
10397
</table>
@@ -118,7 +112,7 @@ <h2 id="dependencies-1">Dependencies</h2>
118112
</div>
119113
</div>
120114
<div class="collapse">
121-
<input type="checkbox" id="collapse-section5" aria-hidden="true"> <label for="collapse-section5" aria-hidden="true">V1.4.0 / 21-December-2021</label>
115+
<input type="checkbox" id="collapse-section6" aria-hidden="true"> <label for="collapse-section6" aria-hidden="true">V1.5.0 / 27-Jan-2023</label>
122116
<div>
123117
<h2 id="main-changes-2">Main Changes</h2>
124118
<h3 id="maintenance-release-2">Maintenance release</h3>
@@ -132,16 +126,16 @@ <h2 id="contents-2">Contents</h2>
132126
</thead>
133127
<tbody>
134128
<tr class="odd">
135-
<td>License update</td>
129+
<td>MCUAStyle corrections</td>
136130
</tr>
137131
<tr class="even">
138-
<td>CodeSpell &amp; MCUAStyle corrections</td>
132+
<td>Update comments, code clean, unused code removal</td>
139133
</tr>
140134
<tr class="odd">
141-
<td>In case of false OCP detection when in SRC mode, attempt to reopen Provider path without triggering the Error Recovery mechanism at protocol level</td>
135+
<td>Addition of division by zero protection</td>
142136
</tr>
143137
<tr class="even">
144-
<td>Remove old references to USBPDM3</td>
138+
<td>Test TCPP version before trying to open sink gate driver</td>
145139
</tr>
146140
</tbody>
147141
</table>
@@ -152,7 +146,7 @@ <h2 id="development-toolchains-and-compilers-2">Development Toolchains and Compi
152146
<ul>
153147
<li>IAR Embedded Workbench for ARM (EWARM) toolchain V8.50.6</li>
154148
<li>RealView Microcontroller Development Kit (MDK-ARM) toolchain V5.31</li>
155-
<li>STM32CubeIDE toolchain V1.7.0</li>
149+
<li>STM32CubeIDE toolchain V1.8.0</li>
156150
</ul>
157151
<h2 id="supported-devices-and-boards-2">Supported Devices and boards</h2>
158152
<p>The X-NUCLEO-DRP1M1 is an expansion board for the NUCLEO-G071RB and NUCLEO-G474RE.</p>
@@ -162,7 +156,7 @@ <h2 id="dependencies-2">Dependencies</h2>
162156
</div>
163157
</div>
164158
<div class="collapse">
165-
<input type="checkbox" id="collapse-section4" aria-hidden="true"> <label for="collapse-section4" aria-hidden="true">V1.3.0 / 22-October-2021</label>
159+
<input type="checkbox" id="collapse-section5" aria-hidden="true"> <label for="collapse-section5" aria-hidden="true">V1.4.0 / 21-December-2021</label>
166160
<div>
167161
<h2 id="main-changes-3">Main Changes</h2>
168162
<h3 id="maintenance-release-3">Maintenance release</h3>
@@ -176,7 +170,16 @@ <h2 id="contents-3">Contents</h2>
176170
</thead>
177171
<tbody>
178172
<tr class="odd">
179-
<td>Update BSP to support current sensing (measurement available in STM32CubeMonitor-UCPD)</td>
173+
<td>License update</td>
174+
</tr>
175+
<tr class="even">
176+
<td>CodeSpell &amp; MCUAStyle corrections</td>
177+
</tr>
178+
<tr class="odd">
179+
<td>In case of false OCP detection when in SRC mode, attempt to reopen Provider path without triggering the Error Recovery mechanism at protocol level</td>
180+
</tr>
181+
<tr class="even">
182+
<td>Remove old references to USBPDM3</td>
180183
</tr>
181184
</tbody>
182185
</table>
@@ -197,7 +200,7 @@ <h2 id="dependencies-3">Dependencies</h2>
197200
</div>
198201
</div>
199202
<div class="collapse">
200-
<input type="checkbox" id="collapse-section3" aria-hidden="true"> <label for="collapse-section3" aria-hidden="true">V1.2.0 / 06-July-2021</label>
203+
<input type="checkbox" id="collapse-section4" aria-hidden="true"> <label for="collapse-section4" aria-hidden="true">V1.3.0 / 22-October-2021</label>
201204
<div>
202205
<h2 id="main-changes-4">Main Changes</h2>
203206
<h3 id="maintenance-release-4">Maintenance release</h3>
@@ -211,13 +214,7 @@ <h2 id="contents-4">Contents</h2>
211214
</thead>
212215
<tbody>
213216
<tr class="odd">
214-
<td>Implementation of OCP recovery procedure in case of recoverable errors (OCP detected at USB key insertion)</td>
215-
</tr>
216-
<tr class="even">
217-
<td>Update calls to TCP0203 component API, using TCPP0203_Driver structure</td>
218-
</tr>
219-
<tr class="odd">
220-
<td>Update Port descriptor Pwr mode when forced to Low Power in SRC case</td>
217+
<td>Update BSP to support current sensing (measurement available in STM32CubeMonitor-UCPD)</td>
221218
</tr>
222219
</tbody>
223220
</table>
@@ -238,7 +235,7 @@ <h2 id="dependencies-4">Dependencies</h2>
238235
</div>
239236
</div>
240237
<div class="collapse">
241-
<input type="checkbox" id="collapse-section2" aria-hidden="true"> <label for="collapse-section2" aria-hidden="true">V1.1.0 / 12-Mar-2021</label>
238+
<input type="checkbox" id="collapse-section3" aria-hidden="true"> <label for="collapse-section3" aria-hidden="true">V1.2.0 / 06-July-2021</label>
242239
<div>
243240
<h2 id="main-changes-5">Main Changes</h2>
244241
<h3 id="maintenance-release-5">Maintenance release</h3>
@@ -252,6 +249,47 @@ <h2 id="contents-5">Contents</h2>
252249
</thead>
253250
<tbody>
254251
<tr class="odd">
252+
<td>Implementation of OCP recovery procedure in case of recoverable errors (OCP detected at USB key insertion)</td>
253+
</tr>
254+
<tr class="even">
255+
<td>Update calls to TCP0203 component API, using TCPP0203_Driver structure</td>
256+
</tr>
257+
<tr class="odd">
258+
<td>Update Port descriptor Pwr mode when forced to Low Power in SRC case</td>
259+
</tr>
260+
</tbody>
261+
</table>
262+
<h2 id="known-limitations-5">Known Limitations</h2>
263+
<p>Outstanding bugs list : None</p>
264+
<p>Requirements not met or planned in a forthcoming release : None</p>
265+
<h2 id="development-toolchains-and-compilers-5">Development Toolchains and Compilers</h2>
266+
<ul>
267+
<li>IAR Embedded Workbench for ARM (EWARM) toolchain V8.50.6</li>
268+
<li>RealView Microcontroller Development Kit (MDK-ARM) toolchain V5.31</li>
269+
<li>STM32CubeIDE toolchain V1.7.0</li>
270+
</ul>
271+
<h2 id="supported-devices-and-boards-5">Supported Devices and boards</h2>
272+
<p>The X-NUCLEO-DRP1M1 is an expansion board for the NUCLEO-G071RB and NUCLEO-G474RE.</p>
273+
<h2 id="backward-compatibility-5">Backward compatibility</h2>
274+
<p>No compatibility break with previous version</p>
275+
<h2 id="dependencies-5">Dependencies</h2>
276+
</div>
277+
</div>
278+
<div class="collapse">
279+
<input type="checkbox" id="collapse-section2" aria-hidden="true"> <label for="collapse-section2" aria-hidden="true">V1.1.0 / 12-Mar-2021</label>
280+
<div>
281+
<h2 id="main-changes-6">Main Changes</h2>
282+
<h3 id="maintenance-release-6">Maintenance release</h3>
283+
<h2 id="contents-6">Contents</h2>
284+
<table>
285+
<caption>Fixed bugs list</caption>
286+
<thead>
287+
<tr class="header">
288+
<th>Headline</th>
289+
</tr>
290+
</thead>
291+
<tbody>
292+
<tr class="odd">
255293
<td>Solve some GCC warnings + MISRA corrections</td>
256294
</tr>
257295
<tr class="even">
@@ -283,26 +321,26 @@ <h2 id="contents-5">Contents</h2>
283321
</tr>
284322
</tbody>
285323
</table>
286-
<h2 id="known-limitations-5">Known Limitations</h2>
324+
<h2 id="known-limitations-6">Known Limitations</h2>
287325
<p>Outstanding bugs list : None</p>
288326
<p>Requirements not met or planned in a forthcoming release : None</p>
289-
<h2 id="development-toolchains-and-compilers-5">Development Toolchains and Compilers</h2>
327+
<h2 id="development-toolchains-and-compilers-6">Development Toolchains and Compilers</h2>
290328
<ul>
291329
<li>IAR Embedded Workbench for ARM (EWARM) toolchain V8.32.3</li>
292330
<li>RealView Microcontroller Development Kit (MDK-ARM) toolchain V5.27.1</li>
293331
<li>STM32CubeIDE toolchain V1.5.0</li>
294332
</ul>
295-
<h2 id="supported-devices-and-boards-5">Supported Devices and boards</h2>
333+
<h2 id="supported-devices-and-boards-6">Supported Devices and boards</h2>
296334
<p>The X-NUCLEO-DRP1M1 is an expansion board for the NUCLEO-G071RB and NUCLEO-G474RE.</p>
297-
<h2 id="backward-compatibility-5">Backward compatibility</h2>
335+
<h2 id="backward-compatibility-6">Backward compatibility</h2>
298336
<p>No compatibility break with previous version</p>
299-
<h2 id="dependencies-5">Dependencies</h2>
337+
<h2 id="dependencies-6">Dependencies</h2>
300338
</div>
301339
</div>
302340
<div class="collapse">
303341
<input type="checkbox" id="collapse-section1" aria-hidden="true"> <label for="collapse-section1" aria-hidden="true">V1.0.0 / 29-June-2020</label>
304342
<div>
305-
<h2 id="contents-6">Contents</h2>
343+
<h2 id="contents-7">Contents</h2>
306344
<table>
307345
<caption>Fixed bugs list</caption>
308346
<thead>
@@ -316,20 +354,20 @@ <h2 id="contents-6">Contents</h2>
316354
</tr>
317355
</tbody>
318356
</table>
319-
<h2 id="known-limitations-6">Known Limitations</h2>
357+
<h2 id="known-limitations-7">Known Limitations</h2>
320358
<p>Outstanding bugs list : None</p>
321359
<p>Requirements not met or planned in a forthcoming release : None</p>
322-
<h2 id="development-toolchains-and-compilers-6">Development Toolchains and Compilers</h2>
360+
<h2 id="development-toolchains-and-compilers-7">Development Toolchains and Compilers</h2>
323361
<ul>
324362
<li>IAR Embedded Workbench for ARM (EWARM) toolchain V8.32.3</li>
325363
<li>RealView Microcontroller Development Kit (MDK-ARM) toolchain V5.27.1</li>
326364
<li>STM32CubeIDE toolchain V1.5.0</li>
327365
</ul>
328-
<h2 id="supported-devices-and-boards-6">Supported Devices and boards</h2>
366+
<h2 id="supported-devices-and-boards-7">Supported Devices and boards</h2>
329367
<p>The X-NUCLEO-DRP1M1 is an expansion board for the NUCLEO-G071RB and NUCLEO-G474RE.</p>
330-
<h2 id="backward-compatibility-6">Backward compatibility</h2>
368+
<h2 id="backward-compatibility-7">Backward compatibility</h2>
331369
<p>No compatibility break with previous version</p>
332-
<h2 id="dependencies-6">Dependencies</h2>
370+
<h2 id="dependencies-7">Dependencies</h2>
333371
</div>
334372
</div>
335373
</div>
Collapse file

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

Copy file name to clipboardExpand all lines: Drivers/BSP/X-NUCLEO-DRP1M1/drp1m1_usbpd_pwr.c
+6-5Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,9 +1673,9 @@ static void PWR_TCPP0203_Activate_ADC(void)
16731673
/* in user application. */
16741674
if (0U == LL_ADC_IsEnabled(VISENSE_ADC_INSTANCE))
16751675
{
1676-
#if defined(STM32G474xx)
1676+
#if (defined(STM32G431xx) || defined(STM32G441xx) || defined(STM32G471xx) || defined(STM32G473xx) || defined(STM32G474xx) || defined(STM32G483xx) || defined(STM32G491xx) || defined (STM32G4A1xx))
16771677
LL_ADC_DisableDeepPowerDown(VISENSE_ADC_INSTANCE);
1678-
#endif /* STM32G474xx */
1678+
#endif /* STM32G431xx */
16791679
/* Enable ADC internal voltage regulator */
16801680
LL_ADC_EnableInternalRegulator(VISENSE_ADC_INSTANCE);
16811681

@@ -1700,10 +1700,11 @@ static void PWR_TCPP0203_Activate_ADC(void)
17001700
backup_setting_adc_dma_transfer = LL_ADC_REG_GetDMATransfer(VISENSE_ADC_INSTANCE);
17011701
LL_ADC_REG_SetDMATransfer(VISENSE_ADC_INSTANCE, LL_ADC_REG_DMA_TRANSFER_NONE);
17021702

1703-
#if !defined (STM32G474xx)
1704-
/* Run ADC self calibration */
1703+
#if (defined(STM32G431xx) || defined(STM32G441xx) || defined(STM32G471xx) || defined(STM32G473xx) || defined(STM32G474xx) || defined(STM32G483xx) || defined(STM32G491xx) || defined (STM32G4A1xx))
1704+
LL_ADC_StartCalibration(VISENSE_ADC_INSTANCE,LL_ADC_SINGLE_ENDED);
1705+
#else
17051706
LL_ADC_StartCalibration(VISENSE_ADC_INSTANCE);
1706-
#endif /* STM32G474xx */
1707+
#endif
17071708

17081709
/* Poll for ADC effectively calibrated */
17091710
#if (USE_TIMEOUT == 1)

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.