mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/common/esp32x: add sanity check for SPI in case SDMMC is used
This commit is contained in:
parent
c4de343577
commit
a376b3c915
@ -338,6 +338,10 @@ static const spi_conf_t spi_config[] = {
|
||||
* @note SPI_NUMOF definition must not be changed.
|
||||
*/
|
||||
#define SPI_NUMOF ARRAY_SIZE(spi_config)
|
||||
|
||||
#if IS_USED(MODULE_PERIPH_SPI)
|
||||
static_assert(SPI_NUMOF != 0, "No SPI devices defined");
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user