File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
libraries/SrcWrapper/src/stm32 Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ void hw_config_init(void)
4545{
4646 configIPClock ();
4747
48+ #if !defined (SKIP_DISABLING_UCPD_DEAD_BATTERY )
4849#if defined(PWR_CR3_UCPD_DBDIS ) || defined(PWR_UCPDR_UCPD_DBDIS )
4950 /* Disable the internal Pull-Up in Dead Battery pins of UCPD peripheral */
5051 HAL_PWREx_DisableUCPDDeadBattery ();
@@ -53,6 +54,7 @@ void hw_config_init(void)
5354 /* Disable the internal Pull-Up in Dead Battery pins of UCPD peripheral */
5455 HAL_SYSCFG_StrobeDBattpinsConfig (SYSCFG_CFGR1_UCPD1_STROBE | SYSCFG_CFGR1_UCPD2_STROBE );
5556#endif /* SYSCFG_CFGR1_UCPD1_STROBE || SYSCFG_CFGR1_UCPD2_STROBE */
57+ #endif /* !SKIP_DISABLING_UCPD_DEAD_BATTERY */
5658
5759#if defined(PWR_SVMCR_ASV )
5860 HAL_PWREx_EnableVddA ();
You can’t perform that action at this time.
0 commit comments