Loading...
Searching...
No Matches
w5500_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2023 Stefan Schmidt
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
9#pragma once
10
20
21#include "board.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31#ifndef W5500_PARAM_SPI
32#define W5500_PARAM_SPI (SPI_DEV(0))
33#endif
34#ifndef W5500_PARAM_SPI_CLK
35#define W5500_PARAM_SPI_CLK (SPI_CLK_10MHZ)
36#endif
37#ifndef W5500_PARAM_CS
38#define W5500_PARAM_CS (GPIO_PIN(0, 27))
39#endif
40#ifndef W5500_PARAM_INT
41#define W5500_PARAM_INT GPIO_UNDEF
42#endif
43#ifndef CONFIG_W5500_POLLING_INTERVAL
44#define CONFIG_W5500_POLLING_INTERVAL 100u
45#endif
46
47#ifndef W5500_PARAMS
51
52#define W5500_PARAMS { .spi = W5500_PARAM_SPI, \
53 .clk = W5500_PARAM_SPI_CLK, \
54 .cs = W5500_PARAM_CS, \
55 .irq = W5500_PARAM_INT, \
56 .polling_interval_ms = CONFIG_W5500_POLLING_INTERVAL }
57#endif
59
63static const w5500_params_t w5500_params[] = {
65};
66
67#ifdef __cplusplus
68}
69#endif
70
W5500 device descriptor.
Definition w5500.h:51
#define W5500_PARAMS
W5500 initialization parameters.
static const w5500_params_t w5500_params[]
W5500 configuration.