Skip to content

Commit 690d51b

Browse files
FRASTMfpistm
authored andcommitted
[L5] Set the Vddio2 Independent I/Os supply
This bit is mandatory to use PG[15:2]. Especially for LPUART1 TxRx pins. This bit of the PWR CR2 is used to validate the VDDIO2 supply for electrical and logical isolation purpose. Signed-off-by: Francois Ramu <francois.ramu@st.com>
1 parent eea2927 commit 690d51b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libraries/SrcWrapper/src/stm32/pinmap.c

+5
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ 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 */
101106
#if defined(STM32MP1xx)
102107
PERIPH_LOCK(gpio);
103108
#endif

0 commit comments

Comments
 (0)