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)
45
45
{
46
46
configIPClock ();
47
47
48
+ #if !defined (SKIP_DISABLING_UCPD_DEAD_BATTERY )
48
49
#if defined(PWR_CR3_UCPD_DBDIS ) || defined(PWR_UCPDR_UCPD_DBDIS )
49
50
/* Disable the internal Pull-Up in Dead Battery pins of UCPD peripheral */
50
51
HAL_PWREx_DisableUCPDDeadBattery ();
@@ -53,6 +54,7 @@ void hw_config_init(void)
53
54
/* Disable the internal Pull-Up in Dead Battery pins of UCPD peripheral */
54
55
HAL_SYSCFG_StrobeDBattpinsConfig (SYSCFG_CFGR1_UCPD1_STROBE | SYSCFG_CFGR1_UCPD2_STROBE );
55
56
#endif /* SYSCFG_CFGR1_UCPD1_STROBE || SYSCFG_CFGR1_UCPD2_STROBE */
57
+ #endif /* !SKIP_DISABLING_UCPD_DEAD_BATTERY */
56
58
57
59
#if defined(PWR_SVMCR_ASV )
58
60
HAL_PWREx_EnableVddA ();
You can’t perform that action at this time.
0 commit comments