Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
enc28j60_params.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2015 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 __cplusplus
21
extern
"C"
{
22
#endif
23
28
#ifndef ENC28J60_PARAM_SPI
29
#define ENC28J60_PARAM_SPI (SPI_DEV(0))
30
#endif
31
#ifndef ENC28J60_PARAM_CS
32
#define ENC28J60_PARAM_CS (GPIO_PIN(0, 0))
33
#endif
34
#ifndef ENC28J60_PARAM_INT
35
#define ENC28J60_PARAM_INT (GPIO_PIN(0, 1))
36
#endif
37
#ifndef ENC28J60_PARAM_RESET
38
#define ENC28J60_PARAM_RESET (GPIO_PIN(0, 2))
39
#endif
40
41
#ifndef ENC28J60_PARAMS
42
#define ENC28J60_PARAMS { .spi = ENC28J60_PARAM_SPI, \
43
.cs_pin = ENC28J60_PARAM_CS, \
44
.int_pin = ENC28J60_PARAM_INT, \
45
.rst_pin = ENC28J60_PARAM_RESET }
46
#endif
48
52
static
const
enc28j60_params_t
enc28j60_params
[] = {
53
ENC28J60_PARAMS
54
};
55
56
#ifdef __cplusplus
57
}
58
#endif
59
enc28j60_params
static const enc28j60_params_t enc28j60_params[]
ENC28J60 configuration.
Definition
enc28j60_params.h:52
enc28j60_params_t
Struct containing the needed peripheral configuration.
Definition
enc28j60.h:38
Generated on Wed Apr 15 2026 11:03:03 by
1.13.2