stmhal: Support PortG on STM32L476 and STM32L486.

This commit is contained in:
Dave Hylands 2017-01-11 09:26:33 -08:00 committed by Damien George
parent e45035db5c
commit aa53496391
1 changed files with 4 additions and 0 deletions

View File

@ -110,6 +110,10 @@ void mp_hal_gpio_clock_enable(GPIO_TypeDef *gpio) {
#endif
#if defined(GPIOG) && defined(__GPIOG_CLK_ENABLE)
} else if (gpio == GPIOG) {
#if defined(STM32L476xx) || defined(STM32L486xx)
// Port G pins 2 thru 15 are powered using VddIO2 on these MCUs.
HAL_PWREx_EnableVddIO2();
#endif
__GPIOG_CLK_ENABLE();
#endif
#ifdef __GPIOH_CLK_ENABLE