Loading...
Searching...
No Matches
w5500_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 Stefan Schmidt
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
28#ifndef W5500_PARAM_SPI
29#define W5500_PARAM_SPI (SPI_DEV(0))
30#endif
31#ifndef W5500_PARAM_SPI_CLK
32#define W5500_PARAM_SPI_CLK (SPI_CLK_10MHZ)
33#endif
34#ifndef W5500_PARAM_CS
35#define W5500_PARAM_CS (GPIO_PIN(0, 27))
36#endif
37#ifndef W5500_PARAM_INT
38#define W5500_PARAM_INT GPIO_UNDEF
39#endif
40#ifndef CONFIG_W5500_POLLING_INTERVAL
41#define CONFIG_W5500_POLLING_INTERVAL 100u
42#endif
43
44#ifndef W5500_PARAMS
48
49#define W5500_PARAMS { .spi = W5500_PARAM_SPI, \
50 .clk = W5500_PARAM_SPI_CLK, \
51 .cs = W5500_PARAM_CS, \
52 .irq = W5500_PARAM_INT, \
53 .polling_interval_ms = CONFIG_W5500_POLLING_INTERVAL }
54#endif
56
60static const w5500_params_t w5500_params[] = {
62};
63
64#ifdef __cplusplus
65}
66#endif
67
W5500 device descriptor.
Definition w5500.h:51
#define W5500_PARAMS
W5500 initialization parameters.
static const w5500_params_t w5500_params[]
W5500 configuration.