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
* SPDX-FileCopyrightText: 2016 Freie Universität Berlin
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
17
18
#include "board.h"
19
20
#ifdef MODULE_SHIELD_W5100
21
#include "arduino_iomap.h"
22
#endif
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
28
#ifdef MODULE_SHIELD_W5100
29
#define W5100_PARAM_SPI ARDUINO_SPI_ISP
30
#define W5100_PARAM_CS ARDUINO_PIN_10
31
#define W5100_PARAM_EVT ARDUINO_PIN_2
32
#endif
33
38
#ifndef W5100_PARAM_SPI
39
#define W5100_PARAM_SPI (SPI_DEV(0))
40
#endif
41
#ifndef W5100_PARAM_SPI_CLK
42
#define W5100_PARAM_SPI_CLK (SPI_CLK_5MHZ)
43
#endif
44
#ifndef W5100_PARAM_CS
45
#define W5100_PARAM_CS (GPIO_PIN(0, 0))
46
#endif
47
#ifndef W5100_PARAM_EVT
48
#define W5100_PARAM_EVT (GPIO_PIN(0, 1))
49
#endif
50
51
#ifndef W5100_PARAMS
52
#define W5100_PARAMS { .spi = W5100_PARAM_SPI, \
53
.clk = W5100_PARAM_SPI_CLK, \
54
.cs = W5100_PARAM_CS, \
55
.evt = W5100_PARAM_EVT }
56
#endif
58
62
static
const
w5100_params_t
w5100_params
[] = {
63
W5100_PARAMS
64
};
65
66
#ifdef __cplusplus
67
}
68
#endif
69
w5100_params_t
W5100 device descriptor.
Definition
w5100.h:56
w5100_params
static const w5100_params_t w5100_params[]
W5100 configuration.
Definition
w5100_params.h:62
Generated on Wed Apr 15 2026 07:36:49 by
1.13.2