stmhal: Support PortG on STM32L476 and STM32L486.
This commit is contained in:
parent
e45035db5c
commit
aa53496391
@ -110,6 +110,10 @@ void mp_hal_gpio_clock_enable(GPIO_TypeDef *gpio) {
|
|||||||
#endif
|
#endif
|
||||||
#if defined(GPIOG) && defined(__GPIOG_CLK_ENABLE)
|
#if defined(GPIOG) && defined(__GPIOG_CLK_ENABLE)
|
||||||
} else if (gpio == GPIOG) {
|
} 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();
|
__GPIOG_CLK_ENABLE();
|
||||||
#endif
|
#endif
|
||||||
#ifdef __GPIOH_CLK_ENABLE
|
#ifdef __GPIOH_CLK_ENABLE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user