We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f1b336 commit 94a16a8Copy full SHA for 94a16a8
cores/arduino/stm32/PortNames.c
@@ -132,6 +132,11 @@ GPIO_TypeDef *set_GPIO_Port_Clock(uint32_t port_idx) {
132
#endif
133
#if defined GPIOG_BASE
134
case PortG:
135
+#if defined(STM32L4xx) && defined(PWR_CR2_IOSV)
136
+ // Enable VDDIO2 supply for 14 I/Os (Port G[15:2])
137
+ __HAL_RCC_PWR_CLK_ENABLE();
138
+ HAL_PWREx_EnableVddIO2();
139
+#endif
140
gpioPort = (GPIO_TypeDef *)GPIOG_BASE;
141
__HAL_RCC_GPIOG_CLK_ENABLE();
142
break;
0 commit comments