mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/w5100: use new driver params scheme
This commit is contained in:
parent
291922be34
commit
78c0cdd40c
@ -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
|
||||
};
|
||||
/** @} */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user