Skip to content

Commit b10d56e

Browse files
kartbendkalowsk
authored andcommitted
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>
1 parent e10904e commit b10d56e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpio/gpio_rpi_pico.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ static int gpio_rpi_configure(const struct device *dev,
132132
/* This is almost the opposite of the Pico SDK's gpio_set_function. */
133133
hw_write_masked(&pads_bank0_hw->io[pin], PADS_BANK0_GPIO0_OD_BITS,
134134
PADS_BANK0_GPIO0_IE_BITS | PADS_BANK0_GPIO0_OD_BITS);
135-
#ifdef SOC_SERIES_RP2350
136-
hw_set_bits(&pads_bank0_hw->io[gpio], PADS_BANK0_GPIO0_ISO_BITS);
135+
#ifdef CONFIG_SOC_SERIES_RP2350
136+
hw_set_bits(&pads_bank0_hw->io[pin], PADS_BANK0_GPIO0_ISO_BITS);
137137
#endif
138138
return 0;
139139
}

0 commit comments

Comments
 (0)