drivers: gpio: rpi_pico: fix typo in gpio_set_dir_masked_n

gpio_set_dir_masked_n on port 1 should manipulate gpio_hi_oe_togl, not
gpio_oe_togl

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2025-06-09 22:21:27 +02:00 committed by Dan Kalowsky
commit 4ad921660f

View file

@ -83,7 +83,7 @@ static inline void gpio_set_dir_masked_n(uint n, uint32_t mask, uint32_t value)
#if PICO_USE_GPIO_COPROCESSOR
gpioc_hi_oe_xor((gpioc_hi_oe_get() ^ value) & mask);
#else
sio_hw->gpio_oe_togl = (sio_hw->gpio_hi_oe ^ value) & mask;
sio_hw->gpio_hi_oe_togl = (sio_hw->gpio_hi_oe ^ value) & mask;
#endif
}
}