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:
parent
d9dedff71a
commit
4ad921660f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue