Skip to content

Commit

Permalink
Fix pin ordering for pins with names in pio_spi_flash
Browse files Browse the repository at this point in the history
  • Loading branch information
will-v-pi committed Aug 21, 2024
1 parent 9902d31 commit 0bcb06a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pio/spi/spi_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ int main() {
PICO_DEFAULT_SPI_RX_PIN
);
// Make the 'SPI' pins available to picotool
bi_decl(bi_4pins_with_names(PICO_DEFAULT_SPI_RX_PIN, "SPI RX", PICO_DEFAULT_SPI_TX_PIN, "SPI TX", PICO_DEFAULT_SPI_SCK_PIN, "SPI SCK", PICO_DEFAULT_SPI_CSN_PIN, "SPI CS"));
bi_decl(bi_1pin_with_name(PICO_DEFAULT_SPI_RX_PIN, "SPI RX"));
bi_decl(bi_1pin_with_name(PICO_DEFAULT_SPI_TX_PIN, "SPI TX"));
bi_decl(bi_1pin_with_name(PICO_DEFAULT_SPI_SCK_PIN, "SPI SCK"));
bi_decl(bi_1pin_with_name(PICO_DEFAULT_SPI_CSN_PIN, "SPI CS"));

uint8_t page_buf[FLASH_PAGE_SIZE];

Expand Down

0 comments on commit 0bcb06a

Please sign in to comment.