Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board_modules.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018 Gunar Schorcht
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
#ifndef BOARD_MODULES_H
10
#define BOARD_MODULES_H
11
31
#include <stdint.h>
32
33
#ifdef __cplusplus
34
extern
"C"
{
35
#endif
36
37
#if defined(MODULE_ENC28J60) || defined(DOXYGEN)
38
53
#define ENC28J60_PARAM_SPI SPI_DEV(0)
55
#ifndef ENC28J60_PARAM_CS
56
#define ENC28J60_PARAM_CS GPIO4
57
#endif
58
#ifndef ENC28J60_PARAM_INT
59
#define ENC28J60_PARAM_INT GPIO9
60
#endif
61
#ifndef ENC28J60_PARAM_RESET
62
#define ENC28J60_PARAM_RESET GPIO10
63
#endif
64
65
#endif
/* defined(MODULE_ENC28J60) || defined(DOXYGEN) */
66
67
#if defined(MODULE_MRF24J40) || defined(DOXYGEN)
68
82
#define MRF24J40_PARAM_SPI SPI_DEV(0)
84
#ifndef MRF24J40_PARAM_SPI_CLK
85
#define MRF24J40_PARAM_SPI_CLK SPI_CLK_1MHZ
86
#endif
87
#ifndef MRF24J40_PARAM_CS
88
#define MRF24J40_PARAM_CS GPIO16
89
#endif
90
#ifndef MRF24J40_PARAM_INT
91
#define MRF24J40_PARAM_INT GPIO0
92
#endif
93
#ifndef MRF24J40_PARAM_RESET
94
#define MRF24J40_PARAM_RESET GPIO2
95
#endif
96
97
#endif
/* defined(MODULE_MRF24J40) || defined(DOXYGEN) */
98
99
#if defined(MODULE_SDCARD_SPI) || defined(DOXYGEN)
100
112
#define SDCARD_SPI_PARAM_SPI SPI_DEV(0)
113
#define SDCARD_SPI_PARAM_CLK SPI0_SCK
114
#define SDCARD_SPI_PARAM_MOSI SPI0_MOSI
115
#define SDCARD_SPI_PARAM_MISO SPI0_MISO
116
#define SDCARD_SPI_PARAM_POWER GPIO_UNDEF
118
#ifndef SDCARD_SPI_PARAM_CS
119
#define SDCARD_SPI_PARAM_CS SPI0_CS0
120
#endif
121
122
#endif
/* defined(MODULE_SDCARD_SPI) || defined(DOXYGEN) */
123
124
#ifdef __cplusplus
125
}
/* end extern "C" */
126
#endif
127
130
#endif
/* BOARD_MODULES_H */
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17