Skip to content

Commit

Permalink
Fix board with pin settings in board_init
Browse files Browse the repository at this point in the history
  • Loading branch information
tannewt committed Aug 8, 2024
1 parent a544047 commit 3810259
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ bool board_reset_pin_number(uint8_t pin_number) {
// glitch.
gpio_put(pin_number, 1);
gpio_set_dir(pin_number, GPIO_OUT);
hw_write_masked(&padsbank0_hw->io[pin_number], PADS_BANK0_GPIO0_DRIVE_VALUE_12MA << PADS_BANK0_GPIO0_DRIVE_LSB, PADS_BANK0_GPIO0_DRIVE_BITS);
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);
gpio_set_function(pin_number, GPIO_FUNC_SIO);
}
return true;
Expand Down

0 comments on commit 3810259

Please sign in to comment.