Merge pull request #8691 from aabadie/pr/drivers/params/w5100
drivers/w5100: use new driver params scheme
This commit is contained in:
commit
05b5560c26
@ -41,18 +41,20 @@ extern "C" {
|
|||||||
#ifndef W5100_PARAM_EVT
|
#ifndef W5100_PARAM_EVT
|
||||||
#define W5100_PARAM_EVT (GPIO_PIN(0, 1)) /**< Default event pin */
|
#define W5100_PARAM_EVT (GPIO_PIN(0, 1)) /**< Default event pin */
|
||||||
#endif
|
#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
|
* @brief W5100 configuration
|
||||||
*/
|
*/
|
||||||
static const w5100_params_t w5100_params[] = {
|
static const w5100_params_t w5100_params[] = {
|
||||||
{
|
W5100_PARAMS
|
||||||
.spi = W5100_PARAM_SPI,
|
|
||||||
.clk = W5100_PARAM_SPI_CLK,
|
|
||||||
.cs = W5100_PARAM_CS,
|
|
||||||
.evt = W5100_PARAM_EVT
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user