Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit62d3dd7

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 forelectrical and logical isolation purpose.Signed-off-by: Francois Ramu <francois.ramu@st.com>
1 parente7d2bfa commit62d3dd7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎libraries/SrcWrapper/src/stm32/pinmap.c

Lines changed: 6 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp