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
* 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
19
#ifndef ENC28J60_PARAMS_H
20
#define ENC28J60_PARAMS_H
21
22
#include "board.h"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
32
#ifndef ENC28J60_PARAM_SPI
33
#define ENC28J60_PARAM_SPI (SPI_DEV(0))
34
#endif
35
#ifndef ENC28J60_PARAM_CS
36
#define ENC28J60_PARAM_CS (GPIO_PIN(0, 0))
37
#endif
38
#ifndef ENC28J60_PARAM_INT
39
#define ENC28J60_PARAM_INT (GPIO_PIN(0, 1))
40
#endif
41
#ifndef ENC28J60_PARAM_RESET
42
#define ENC28J60_PARAM_RESET (GPIO_PIN(0, 2))
43
#endif
44
45
#ifndef ENC28J60_PARAMS
46
#define ENC28J60_PARAMS { .spi = ENC28J60_PARAM_SPI, \
47
.cs_pin = ENC28J60_PARAM_CS, \
48
.int_pin = ENC28J60_PARAM_INT, \
49
.rst_pin = ENC28J60_PARAM_RESET }
50
#endif
56
static
const
enc28j60_params_t
enc28j60_params
[] = {
57
ENC28J60_PARAMS
58
};
59
60
#ifdef __cplusplus
61
}
62
#endif
63
64
#endif
/* ENC28J60_PARAMS_H */
enc28j60_params
static const enc28j60_params_t enc28j60_params[]
ENC28J60 configuration.
Definition
enc28j60_params.h:56
enc28j60_params_t
Struct containing the needed peripheral configuration.
Definition
enc28j60.h:39
Generated on Fri Dec 20 2024 20:01:56 by
1.9.8