From 78c0cdd40cdf3e349865fc1709e477d6f5595087 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Wed, 28 Feb 2018 17:44:37 +0100 Subject: [PATCH] drivers/w5100: use new driver params scheme --- drivers/w5100/include/w5100_params.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 }; /** @} */