diff options
Diffstat (limited to 'chip/stm32/gpio-stm32f.c')
-rw-r--r-- | chip/stm32/gpio-stm32f.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/gpio-stm32f.c b/chip/stm32/gpio-stm32f.c index 3cea027188..0917bd5349 100644 --- a/chip/stm32/gpio-stm32f.c +++ b/chip/stm32/gpio-stm32f.c @@ -79,7 +79,7 @@ void gpio_set_flags_by_mask(uint32_t port, uint32_t pmask, uint32_t flags) */ if (flags & GPIO_PULL_UP) { mask |= 0x88888888 & cnf; - STM32_GPIO_BSRR(g->port) |= g->mask; + STM32_GPIO_BSRR(port) = pmask; } else if (flags & GPIO_PULL_DOWN) { mask |= 0x88888888 & cnf; STM32_GPIO_BSRR(port) = pmask << 16; |