Skip to content

Commit 3810259

Browse files
committed
Fix board with pin settings in board_init
1 parent a544047 commit 3810259

File tree

1 file changed

+1
-1
lines changed
  • ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040

1 file changed

+1
-1
lines changed

ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ bool board_reset_pin_number(uint8_t pin_number) {
192192
// glitch.
193193
gpio_put(pin_number, 1);
194194
gpio_set_dir(pin_number, GPIO_OUT);
195-
hw_write_masked(&padsbank0_hw->io[pin_number], PADS_BANK0_GPIO0_DRIVE_VALUE_12MA << PADS_BANK0_GPIO0_DRIVE_LSB, PADS_BANK0_GPIO0_DRIVE_BITS);
195+
hw_write_masked(&pads_bank0_hw->io[pin_number], PADS_BANK0_GPIO0_DRIVE_VALUE_12MA << PADS_BANK0_GPIO0_DRIVE_LSB, PADS_BANK0_GPIO0_DRIVE_BITS);
196196
gpio_set_function(pin_number, GPIO_FUNC_SIO);
197197
}
198198
return true;

0 commit comments

Comments
 (0)