diff options
Diffstat (limited to 'chip/stm32/gpio-stm32l15x.c')
-rw-r--r-- | chip/stm32/gpio-stm32l15x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chip/stm32/gpio-stm32l15x.c b/chip/stm32/gpio-stm32l15x.c index f5513dafb8..cb5f17a1d4 100644 --- a/chip/stm32/gpio-stm32l15x.c +++ b/chip/stm32/gpio-stm32l15x.c @@ -41,6 +41,8 @@ int gpio_pre_init(void) uint32_t mask2 = (g->mask * g->mask) | (g->mask * g->mask * 2); uint32_t val; + if (g->mask & GPIO_DEFAULT) + continue; val = STM32_GPIO_PUPDR_OFF(g->port) & ~mask2; if ((g->flags & GPIO_PULL_UP) == GPIO_PULL_UP) /* Pull Up = 01 */ |