Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
enc28j60_params.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2015 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
9
#pragma once
10
21
#include "board.h"
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
31
#ifndef ENC28J60_PARAM_SPI
32
#define ENC28J60_PARAM_SPI (SPI_DEV(0))
33
#endif
34
#ifndef ENC28J60_PARAM_CS
35
#define ENC28J60_PARAM_CS (GPIO_PIN(0, 0))
36
#endif
37
#ifndef ENC28J60_PARAM_INT
38
#define ENC28J60_PARAM_INT (GPIO_PIN(0, 1))
39
#endif
40
#ifndef ENC28J60_PARAM_RESET
41
#define ENC28J60_PARAM_RESET (GPIO_PIN(0, 2))
42
#endif
43
44
#ifndef ENC28J60_PARAMS
45
#define ENC28J60_PARAMS { .spi = ENC28J60_PARAM_SPI, \
46
.cs_pin = ENC28J60_PARAM_CS, \
47
.int_pin = ENC28J60_PARAM_INT, \
48
.rst_pin = ENC28J60_PARAM_RESET }
49
#endif
55
static
const
enc28j60_params_t
enc28j60_params
[] = {
56
ENC28J60_PARAMS
57
};
58
59
#ifdef __cplusplus
60
}
61
#endif
62
enc28j60_params
static const enc28j60_params_t enc28j60_params[]
ENC28J60 configuration.
Definition:
enc28j60_params.h:55
enc28j60_params_t
Struct containing the needed peripheral configuration.
Definition:
enc28j60.h:38
Generated on Mon Jun 30 2025 18:46:45 by
1.9.1