Skip to content

Commit 1f5cb30

Browse files
committed
UCPD: disable Dead Battery
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 2b3ddd9 commit 1f5cb30

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libraries/SrcWrapper/src/stm32/hw_config.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ void hw_config_init(void)
2828
{
2929
configIPClock();
3030

31+
#if defined(PWR_CR3_UCPD_DBDIS) || defined(STM32L5xx)
32+
/* Disable the internal Pull-Up in Dead Battery pins of UCPD peripheral */
33+
HAL_PWREx_DisableUCPDDeadBattery();
34+
#endif
35+
3136
/* Init DWT if present */
3237
#ifdef DWT_BASE
3338
dwt_init();

0 commit comments

Comments
 (0)