Skip to content

Commit 8fb95a6

Browse files
authored
Merge pull request #3780 from pmancele/master
STM32L4 : Fix GPIO G port compatibility
2 parents 750ac51 + 48c63ca commit 8fb95a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

targets/TARGET_STM/gpio_api.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ GPIO_TypeDef *Set_GPIO_Clock(uint32_t port_idx) {
7373
#endif
7474
#if defined GPIOG_BASE
7575
case PortG:
76+
#if defined TARGET_STM32L4
77+
__HAL_RCC_PWR_CLK_ENABLE();
78+
HAL_PWREx_EnableVddIO2();
79+
#endif
7680
gpio_add = GPIOG_BASE;
7781
__GPIOG_CLK_ENABLE();
7882
break;

0 commit comments

Comments
 (0)