Fix GPIOG usage of STM32L4 by activating VDDIO2 power supply

pull/3780/head
Pierre-Marie Ancele 2017-02-22 16:44:28 +01:00
parent ff41cc97ae
commit 248dbaabe2
1 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,10 @@ GPIO_TypeDef *Set_GPIO_Clock(uint32_t port_idx) {
#endif
#if defined GPIOG_BASE
case PortG:
#if defined STM32L4
__HAL_RCC_PWR_CLK_ENABLE();
HAL_PWREx_EnableVddIO2();
#endif
gpio_add = GPIOG_BASE;
__GPIOG_CLK_ENABLE();
break;