w5100_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef W5100_PARAMS_H
20 #define W5100_PARAMS_H
21 
22 #include "board.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #ifndef W5100_PARAM_SPI
33 #define W5100_PARAM_SPI (SPI_DEV(0))
34 #endif
35 #ifndef W5100_PARAM_SPI_CLK
36 #define W5100_PARAM_SPI_CLK (SPI_CLK_5MHZ)
37 #endif
38 #ifndef W5100_PARAM_CS
39 #define W5100_PARAM_CS (GPIO_PIN(0, 0))
40 #endif
41 #ifndef W5100_PARAM_EVT
42 #define W5100_PARAM_EVT (GPIO_PIN(0, 1))
43 #endif
44 
45 #ifndef W5100_PARAMS
46 #define W5100_PARAMS { .spi = W5100_PARAM_SPI, \
47  .clk = W5100_PARAM_SPI_CLK, \
48  .cs = W5100_PARAM_CS, \
49  .evt = W5100_PARAM_EVT }
50 #endif
51 
56 static const w5100_params_t w5100_params[] = {
57  W5100_PARAMS
58 };
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif /* W5100_PARAMS_H */
66 
w5100_params
static const w5100_params_t w5100_params[]
W5100 configuration.
Definition: w5100_params.h:56
w5100_params_t
W5100 device descriptor.
Definition: w5100.h:57