diff --git a/drivers/w5100/include/w5100_params.h b/drivers/w5100/include/w5100_params.h index 97688fce9a..53491b46b4 100644 --- a/drivers/w5100/include/w5100_params.h +++ b/drivers/w5100/include/w5100_params.h @@ -41,18 +41,20 @@ extern "C" { #ifndef W5100_PARAM_EVT #define W5100_PARAM_EVT (GPIO_PIN(0, 1)) /**< Default event pin */ #endif + +#ifndef W5100_PARAMS +#define W5100_PARAMS { .spi = W5100_PARAM_SPI, \ + .clk = W5100_PARAM_SPI_CLK, \ + .cs = W5100_PARAM_CS, \ + .evt = W5100_PARAM_EVT } +#endif /** @} */ /** * @brief W5100 configuration */ static const w5100_params_t w5100_params[] = { - { - .spi = W5100_PARAM_SPI, - .clk = W5100_PARAM_SPI_CLK, - .cs = W5100_PARAM_CS, - .evt = W5100_PARAM_EVT - }, + W5100_PARAMS }; /** @} */