Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9a463fa

Browse files
committedApr 28, 2021
UCPD: disable Dead Battery
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 9373a56 commit 9a463fa

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)
Please sign in to comment.