File tree 2 files changed +1
-7
lines changed
libraries/SrcWrapper/src/stm32
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)
103
103
#endif
104
104
#if defined GPIOG_BASE
105
105
case PortG :
106
- #if defined(STM32L4xx ) && defined( PWR_CR2_IOSV )
106
+ #if defined(PWR_CR2_IOSV )
107
107
// Enable VDDIO2 supply for 14 I/Os (Port G[15:2])
108
108
__HAL_RCC_PWR_CLK_ENABLE ();
109
109
HAL_PWREx_EnableVddIO2 ();
Original file line number Diff line number Diff line change @@ -115,12 +115,6 @@ void pin_function(PinName pin, int function)
115
115
/* Enable GPIO clock */
116
116
GPIO_TypeDef * gpio = set_GPIO_Port_Clock (port );
117
117
118
- #if defined (STM32L5xx )
119
- /* Validate the VDDIO2 supply for electrical and logical isolation purpose. */
120
- __HAL_RCC_PWR_CLK_ENABLE ();
121
- HAL_PWREx_EnableVddIO2 ();
122
- #endif /* STM32L5xx */
123
-
124
118
hsem_lock (CFG_HW_GPIO_SEMID , HSEM_LOCK_DEFAULT_RETRY );
125
119
126
120
/* Set default speed to high.
You can’t perform that action at this time.
0 commit comments