Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
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 MODULE_SHIELD_W5100
25
#include "arduino_iomap.h"
26
#endif
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
32
#ifdef MODULE_SHIELD_W5100
33
#define W5100_PARAM_SPI ARDUINO_SPI_ISP
34
#define W5100_PARAM_CS ARDUINO_PIN_10
35
#define W5100_PARAM_EVT ARDUINO_PIN_2
36
#endif
37
42
#ifndef W5100_PARAM_SPI
43
#define W5100_PARAM_SPI (SPI_DEV(0))
44
#endif
45
#ifndef W5100_PARAM_SPI_CLK
46
#define W5100_PARAM_SPI_CLK (SPI_CLK_5MHZ)
47
#endif
48
#ifndef W5100_PARAM_CS
49
#define W5100_PARAM_CS (GPIO_PIN(0, 0))
50
#endif
51
#ifndef W5100_PARAM_EVT
52
#define W5100_PARAM_EVT (GPIO_PIN(0, 1))
53
#endif
54
55
#ifndef W5100_PARAMS
56
#define W5100_PARAMS { .spi = W5100_PARAM_SPI, \
57
.clk = W5100_PARAM_SPI_CLK, \
58
.cs = W5100_PARAM_CS, \
59
.evt = W5100_PARAM_EVT }
60
#endif
66
static
const
w5100_params_t
w5100_params
[] = {
67
W5100_PARAMS
68
};
69
70
#ifdef __cplusplus
71
}
72
#endif
73
74
#endif
/* W5100_PARAMS_H */
w5100_params_t
W5100 device descriptor.
Definition
w5100.h:57
w5100_params
static const w5100_params_t w5100_params[]
W5100 configuration.
Definition
w5100_params.h:66
Generated on Sat Dec 21 2024 20:58:03 by
1.9.8