We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffb23d6 commit aa37c03Copy full SHA for aa37c03
libraries/SrcWrapper/src/stm32/hw_config.c
@@ -45,6 +45,7 @@ void hw_config_init(void)
45
{
46
configIPClock();
47
48
+#if !defined (SKIP_DISABLING_UCPD_DEAD_BATTERY)
49
#if defined(PWR_CR3_UCPD_DBDIS) || defined(PWR_UCPDR_UCPD_DBDIS)
50
/* Disable the internal Pull-Up in Dead Battery pins of UCPD peripheral */
51
HAL_PWREx_DisableUCPDDeadBattery();
@@ -53,6 +54,7 @@ void hw_config_init(void)
53
54
55
HAL_SYSCFG_StrobeDBattpinsConfig(SYSCFG_CFGR1_UCPD1_STROBE | SYSCFG_CFGR1_UCPD2_STROBE);
56
#endif /* SYSCFG_CFGR1_UCPD1_STROBE || SYSCFG_CFGR1_UCPD2_STROBE */
57
+#endif /* !SKIP_DISABLING_UCPD_DEAD_BATTERY */
58
59
#if defined(PWR_SVMCR_ASV)
60
HAL_PWREx_EnableVddA();
0 commit comments