Skip to content

Conversation

@lurch
Copy link
Contributor

@lurch lurch commented Jul 24, 2024

The main change here is checking that each "interface" has pins for all of its required "functions".
E.g. if you define PICO_DEFAULT_I2C then you also have to define both PICO_DEFAULT_I2C_SDA_PIN and PICO_DEFAULT_I2C_SCL_PIN, and if you define PICO_DEFAULT_UART then you also have to define at least one ofPICO_DEFAULT_UART_TX_PIN or PICO_DEFAULT_UART_RX_PIN.

@kilograham
Copy link
Contributor

arguably you don't need to have both UART TX and UART RX

@lurch
Copy link
Contributor Author

lurch commented Jul 24, 2024

arguably you don't need to have both UART TX and UART RX

Ahh, I was wondering about that but wasn't sure. Is a similar thing true for SPI where you have to have SPI_SCK, but you might have only a SPI_TX or only a SPI_RX ?

@lurch lurch marked this pull request as draft July 24, 2024 14:15
… present) and "one_of" (at least one of these pins must be present)
@lurch lurch marked this pull request as ready for review July 24, 2024 15:23
@lurch
Copy link
Contributor Author

lurch commented Jul 24, 2024

arguably you don't need to have both UART TX and UART RX

Fixed with the latest commit 🙂

@kilograham kilograham merged commit 9f85f25 into develop Jul 25, 2024
@kilograham kilograham deleted the additional_board_checks branch July 25, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants