Skip to content
Snippets Groups Projects
Unverified Commit a9836ca9 authored by Martine Lenders's avatar Martine Lenders Committed by GitHub
Browse files

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

drivers/enc28j60: use new driver params scheme
parents cafc33ce e0243d55
No related branches found
No related tags found
No related merge requests found
......@@ -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
};
/** @} */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment