Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stmhal: Support PortG on SensorTile (STM32L476) #2782

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions stmhal/mphalport.c
Expand Up @@ -110,6 +110,12 @@ void mp_hal_gpio_clock_enable(GPIO_TypeDef *gpio) {
#endif
#if defined(GPIOG) && defined(__GPIOG_CLK_ENABLE)
} else if (gpio == GPIOG) {
#if defined(STM32L476xx) || defined(STM32L486xx)
// According to AN4555 (Getting started with STM32L4 series hardware
// development, Port G pins 2 thru 15 are powered using VddIO2 for the
// STM32L4x6 MCUs.
HAL_PWREx_EnableVddIO2();
#endif
__GPIOG_CLK_ENABLE();
#endif
#ifdef __GPIOH_CLK_ENABLE
Expand Down