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

Commit690d51b

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

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

[8]ページ先頭

©2009-2025 Movatter.jp