Skip to content

Commit aa53496

Browse files
dhylandsdpgeorge
authored andcommitted
stmhal: Support PortG on STM32L476 and STM32L486.
1 parent e45035d commit aa53496

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

stmhal/mphalport.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ void mp_hal_gpio_clock_enable(GPIO_TypeDef *gpio) {
110110
#endif
111111
#if defined(GPIOG) && defined(__GPIOG_CLK_ENABLE)
112112
} 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
113117
__GPIOG_CLK_ENABLE();
114118
#endif
115119
#ifdef __GPIOH_CLK_ENABLE

0 commit comments

Comments
 (0)