1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #8691 from aabadie/pr/drivers/params/w5100

drivers/w5100: use new driver params scheme
This commit is contained in:
Martine Lenders 2018-03-07 15:53:13 +01:00 committed by GitHub
commit 05b5560c26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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