1 parent e45035d commit aa53496Copy full SHA for aa53496
1 file changed
stmhal/mphalport.c
@@ -110,6 +110,10 @@ void mp_hal_gpio_clock_enable(GPIO_TypeDef *gpio) {
110
#endif
111
#if defined(GPIOG) && defined(__GPIOG_CLK_ENABLE)
112
} else if (gpio == GPIOG) {
113
+ #if defined(STM32L476xx) || defined(STM32L486xx)
114
+ // Port G pins 2 thru 15 are powered using VddIO2 on these MCUs.
115
+ HAL_PWREx_EnableVddIO2();
116
+ #endif
117
__GPIOG_CLK_ENABLE();
118
119
#ifdef __GPIOH_CLK_ENABLE
0 commit comments