enc28j60_params.h
1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* Copyright (C) 2015 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup driver_enc28j60
* @{
*
* @file
* @brief Default configuration for the ENC28J60 driver
*
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#ifndef ENC28J60_PARAMS_H
#define ENC28J60_PARAMS_H
#include "board.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Set default configuration parameters for the ENC28J60 driver
* @{
*/
#ifndef ENC28J60_PARAM_SPI
#define ENC28J60_PARAM_SPI (SPI_0)
#endif
#ifndef ENC28J60_PARAM_CS
#define ENC28J60_PARAM_CS (GPIO_PIN(0, 0))
#endif
#ifndef ENC28J60_PARAM_INT
#define ENC28J60_PARAM_INT (GPIO_PIN(0, 1))
#endif
#ifndef ENC28J60_PARAM_RESET
#define ENC28J60_PARAM_RESET (GPIO_PIN(0, 2))
#endif
/** @} */
/**
* @brief ENC28J60 configuration
*/
static const enc28j60_params_t enc28j60_params[] = {
{
.spi = ENC28J60_PARAM_SPI,
.cs_pin = ENC28J60_PARAM_CS,
.int_pin = ENC28J60_PARAM_INT,
.reset_pin = ENC28J60_PARAM_RESET,
},
};
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* ENC28J60_PARAMS_H */
/** @} */