Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
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
32
#include <stdint.h>
33
34
#ifdef __cplusplus
35
extern
"C"
{
36
#endif
37
38
#if defined(MODULE_ENC28J60) || defined(DOXYGEN)
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
65
#endif
/* defined(MODULE_ENC28J60) || defined(DOXYGEN) */
66
67
#if defined(MODULE_MRF24J40) || defined(DOXYGEN)
81
#define MRF24J40_PARAM_SPI SPI_DEV(0)
83
#ifndef MRF24J40_PARAM_SPI_CLK
84
#define MRF24J40_PARAM_SPI_CLK SPI_CLK_1MHZ
85
#endif
86
#ifndef MRF24J40_PARAM_CS
87
#define MRF24J40_PARAM_CS GPIO16
88
#endif
89
#ifndef MRF24J40_PARAM_INT
90
#define MRF24J40_PARAM_INT GPIO0
91
#endif
92
#ifndef MRF24J40_PARAM_RESET
93
#define MRF24J40_PARAM_RESET GPIO2
94
#endif
96
#endif
/* defined(MODULE_MRF24J40) || defined(DOXYGEN) */
97
98
#if defined(MODULE_SDCARD_SPI) || defined(DOXYGEN)
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
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 Wed Nov 27 2024 02:41:41 by
1.9.8