Skip to content

Commit

Permalink
boards/nucleo-wl55jc: Fix Arduino SPI bus
Browse files Browse the repository at this point in the history
The macro `ARDUINO_SPI_D11D12D13` is used to refer to the SPI bus
on the pins D11/D12/D13 on Arduino UNO compatible boards. For all
Nucleo64 boards this is `SPI_DEV(0)`, but for this board `SPI_DEV(0)`
is internally connected to the radio. Instead `SPI_DEV(1)` is connected
to the correct pins. This provides the macro explicitly in
`periph_conf.h`, which takes preference over the fallback in
`boards/common/nucleo64` when provided.
  • Loading branch information
maribu committed Nov 14, 2023
1 parent a24066b commit c7ded84
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion boards/nucleo-wl55jc/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,12 @@ static const spi_conf_t spi_config[] = {
#endif
};

#define SPI_NUMOF ARRAY_SIZE(spi_config)
#define SPI_NUMOF ARRAY_SIZE(spi_config)
/**
* @brief Provide ARDUINO_SPI_D11D12D13 explicitly, as the first SPI
* interface is connected to the radio.
*/
#define ARDUINO_SPI_D11D12D13 SPI_DEV(1)
/** @} */

/**
Expand Down

0 comments on commit c7ded84

Please sign in to comment.