Skip to content

Commit 9503abb

Browse files
committed
Clean up Vddio2 Independent I/Os supply setting
It was already present for STM32L4. Test the register definition is enough. Signed-off-by: Frederic Pillon <[email protected]>
1 parent dc69ee1 commit 9503abb

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Diff for: libraries/SrcWrapper/src/stm32/PortNames.c

+1-1
Original file line numberDiff line numberDiff 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_RCC_PWR_CLK_ENABLE();
109109
HAL_PWREx_EnableVddIO2();

Diff for: libraries/SrcWrapper/src/stm32/pinmap.c

-6
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,6 @@ void pin_function(PinName pin, int function)
115115
/* Enable GPIO clock */
116116
GPIO_TypeDef *gpio = set_GPIO_Port_Clock(port);
117117

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-
124118
hsem_lock(CFG_HW_GPIO_SEMID, HSEM_LOCK_DEFAULT_RETRY);
125119

126120
/* Set default speed to high.

0 commit comments

Comments
 (0)