Skip to content

Commit 4ad9216

Browse files
kartbendkalowsk
authored andcommitted
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>
1 parent d9dedff commit 4ad9216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio_rpi_pico.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static inline void gpio_set_dir_masked_n(uint n, uint32_t mask, uint32_t value)
8383
#if PICO_USE_GPIO_COPROCESSOR
8484
gpioc_hi_oe_xor((gpioc_hi_oe_get() ^ value) & mask);
8585
#else
86-
sio_hw->gpio_oe_togl = (sio_hw->gpio_hi_oe ^ value) & mask;
86+
sio_hw->gpio_hi_oe_togl = (sio_hw->gpio_hi_oe ^ value) & mask;
8787
#endif
8888
}
8989
}

0 commit comments

Comments
 (0)