1
0
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:
Gunar Schorcht 2023-07-02 15:18:20 +02:00
parent c4de343577
commit a376b3c915

View File

@ -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
/** @} */
/**