Skip to content

Commit 248dbaa

Browse files
committed
Fix GPIOG usage of STM32L4 by activating VDDIO2 power supply
1 parent ff41cc9 commit 248dbaa

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 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)