2016-08-05 14:44:09 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 Freie Universität Berlin
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup drivers_w5100
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Default parameters for W5100 Ethernet devices
|
|
|
|
*
|
|
|
|
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef W5100_PARAMS_H
|
|
|
|
#define W5100_PARAMS_H
|
|
|
|
|
2017-11-03 10:12:58 +01:00
|
|
|
#include "board.h"
|
|
|
|
|
2016-08-05 14:44:09 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
2017-08-29 18:00:46 +02:00
|
|
|
* @name Default configuration parameters for the W5100 driver
|
2016-08-05 14:44:09 +02:00
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
#ifndef W5100_PARAM_SPI
|
2017-08-29 18:00:46 +02:00
|
|
|
#define W5100_PARAM_SPI (SPI_DEV(0)) /**< Default SPI device */
|
2016-08-05 14:44:09 +02:00
|
|
|
#endif
|
2016-11-08 18:44:16 +01:00
|
|
|
#ifndef W5100_PARAM_SPI_CLK
|
2017-08-29 18:00:46 +02:00
|
|
|
#define W5100_PARAM_SPI_CLK (SPI_CLK_5MHZ) /**< Default SPI speed */
|
2016-08-05 14:44:09 +02:00
|
|
|
#endif
|
|
|
|
#ifndef W5100_PARAM_CS
|
2017-08-29 18:00:46 +02:00
|
|
|
#define W5100_PARAM_CS (GPIO_PIN(0, 0)) /**< Default SPI chip select pin */
|
2016-08-05 14:44:09 +02:00
|
|
|
#endif
|
|
|
|
#ifndef W5100_PARAM_EVT
|
2017-08-29 18:00:46 +02:00
|
|
|
#define W5100_PARAM_EVT (GPIO_PIN(0, 1)) /**< Default event pin */
|
2016-08-05 14:44:09 +02:00
|
|
|
#endif
|
2018-02-28 17:44:37 +01:00
|
|
|
|
|
|
|
#ifndef W5100_PARAMS
|
|
|
|
#define W5100_PARAMS { .spi = W5100_PARAM_SPI, \
|
|
|
|
.clk = W5100_PARAM_SPI_CLK, \
|
|
|
|
.cs = W5100_PARAM_CS, \
|
|
|
|
.evt = W5100_PARAM_EVT }
|
|
|
|
#endif
|
2016-08-05 14:44:09 +02:00
|
|
|
/** @} */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief W5100 configuration
|
|
|
|
*/
|
|
|
|
static const w5100_params_t w5100_params[] = {
|
2018-02-28 17:44:37 +01:00
|
|
|
W5100_PARAMS
|
2016-08-05 14:44:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* W5100_PARAMS_H */
|
|
|
|
/** @} */
|