drivers: gpio: rpi_pico: fix bad RP2350 ifdef
Fix bad ifdef and typo in rp2350 gpio_configure code. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
e10904eb3c
commit
b10d56e143
1 changed files with 2 additions and 2 deletions
|
@ -132,8 +132,8 @@ static int gpio_rpi_configure(const struct device *dev,
|
|||
/* This is almost the opposite of the Pico SDK's gpio_set_function. */
|
||||
hw_write_masked(&pads_bank0_hw->io[pin], PADS_BANK0_GPIO0_OD_BITS,
|
||||
PADS_BANK0_GPIO0_IE_BITS | PADS_BANK0_GPIO0_OD_BITS);
|
||||
#ifdef SOC_SERIES_RP2350
|
||||
hw_set_bits(&pads_bank0_hw->io[gpio], PADS_BANK0_GPIO0_ISO_BITS);
|
||||
#ifdef CONFIG_SOC_SERIES_RP2350
|
||||
hw_set_bits(&pads_bank0_hw->io[pin], PADS_BANK0_GPIO0_ISO_BITS);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue