Skip to content

Commit 9514a7d

Browse files
committed
Set the Vddio2 Independent I/Os supply for the stm32L5xx soc.
This bit is mandatory to use PG[15:2]. Especiually for LPUART1 TxRx pins. This bit of the PWR CR2 is used to validate the V DDIO2 supply for electrical and logical isolation purpose. Signed-off-by: Francois Ramu <[email protected]>
1 parent ce17a50 commit 9514a7d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ 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 V DDIO2 supply for electrical and logical isolation purpose.*/
103+
__HAL_RCC_PWR_CLK_ENABLE();
104+
HAL_PWREx_EnableVddIO2();
105+
#endif /* STM32L5xx */
106+
101107
#if defined(STM32MP1xx)
102108
PERIPH_LOCK(gpio);
103109
#endif

0 commit comments

Comments
 (0)