File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
libraries/SrcWrapper/src/stm32 Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ GPIO_TypeDef *set_GPIO_Port_Clock(uint32_t port_idx)
103103#endif
104104#if defined GPIOG_BASE
105105 case PortG :
106- #if defined(STM32L4xx ) && defined( PWR_CR2_IOSV )
106+ #if defined(PWR_CR2_IOSV )
107107 // Enable VDDIO2 supply for 14 I/Os (Port G[15:2])
108108 HAL_PWREx_EnableVddIO2 ();
109109#endif
Original file line number Diff line number Diff line change @@ -98,12 +98,6 @@ void pin_function(PinName pin, int function)
9898 /* Enable GPIO clock */
9999 GPIO_TypeDef * gpio = set_GPIO_Port_Clock (port );
100100
101- #if defined (STM32L5xx )
102- /* Validate the VDDIO2 supply for electrical and logical isolation purpose. */
103- __HAL_RCC_PWR_CLK_ENABLE ();
104- HAL_PWREx_EnableVddIO2 ();
105- #endif /* STM32L5xx */
106-
107101 hsem_lock (CFG_HW_GPIO_SEMID , HSEM_LOCK_DEFAULT_RETRY );
108102
109103 /* Set default speed to high.
You can’t perform that action at this time.
0 commit comments