mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/enc28j60: use new driver params scheme
This commit is contained in:
parent
291922be34
commit
e0243d5529
@ -41,18 +41,20 @@ extern "C" {
|
||||
#ifndef ENC28J60_PARAM_RESET
|
||||
#define ENC28J60_PARAM_RESET (GPIO_PIN(0, 2))
|
||||
#endif
|
||||
|
||||
#ifndef ENC28J60_PARAMS
|
||||
#define ENC28J60_PARAMS { .spi = ENC28J60_PARAM_SPI, \
|
||||
.cs_pin = ENC28J60_PARAM_CS, \
|
||||
.int_pin = ENC28J60_PARAM_INT, \
|
||||
.reset_pin = ENC28J60_PARAM_RESET }
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @brief ENC28J60 configuration
|
||||
*/
|
||||
static const enc28j60_params_t enc28j60_params[] = {
|
||||
{
|
||||
.spi = ENC28J60_PARAM_SPI,
|
||||
.cs_pin = ENC28J60_PARAM_CS,
|
||||
.int_pin = ENC28J60_PARAM_INT,
|
||||
.reset_pin = ENC28J60_PARAM_RESET,
|
||||
},
|
||||
ENC28J60_PARAMS
|
||||
};
|
||||
/** @} */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user