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

Merge pull request #8686 from aabadie/pr/drivers/params/enc28j60

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

View File

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