Merge pull request #3780 from pmancele/master

STM32L4 : Fix GPIO G port compatibility
pull/3898/head
Martin Kojtal 2017-03-06 16:51:03 +00:00 committed by GitHub
commit 8fb95a6507
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 TARGET_STM32L4
__HAL_RCC_PWR_CLK_ENABLE();
HAL_PWREx_EnableVddIO2();
#endif
gpio_add = GPIOG_BASE;
__GPIOG_CLK_ENABLE();
break;