Skip to content

Commit e8c0dc2

Browse files
committed
core: U5: set the Vddio2 Independent I/Os supply
This bit of the PWR CR is used to validate the VDDIO2 supply for electrical and logical isolation purpose. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent ea592bb commit e8c0dc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SrcWrapper/src/stm32/PortNames.c

Lines changed: 1 addition & 1 deletion
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(PWR_CR2_IOSV)
106+
#if defined(PWR_CR2_IOSV) || defined(PWR_SVMCR_IO2VMEN)
107107
// Enable VDDIO2 supply for 14 I/Os (Port G[15:2])
108108
HAL_PWREx_EnableVddIO2();
109109
#endif

0 commit comments

Comments
 (0)