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
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
33
#if MODULE_MRF24J40 || DOXYGEN
46
#define MRF24J40_PARAM_SPI SPI_DEV(0)
48
#ifndef MRF24J40_PARAM_SPI_CLK
49
#define MRF24J40_PARAM_SPI_CLK SPI_CLK_1MHZ
50
#endif
51
#ifndef MRF24J40_PARAM_CS
52
#define MRF24J40_PARAM_CS GPIO26
53
#endif
54
#ifndef MRF24J40_PARAM_INT
55
#define MRF24J40_PARAM_INT GPIO17
56
#endif
57
#ifndef MRF24J40_PARAM_RESET
58
#define MRF24J40_PARAM_RESET GPIO16
59
#endif
61
#endif
/* MODULE_MRF24J40 || DOXYGEN */
62
63
#if MODULE_SDCARD_SPI || DOXYGEN
78
#define SDCARD_SPI_PARAM_SPI SPI_DEV(0)
79
#define SDCARD_SPI_PARAM_CLK SPI0_SCK
80
#define SDCARD_SPI_PARAM_MOSI SPI0_MOSI
81
#define SDCARD_SPI_PARAM_MISO SPI0_MISO
82
#define SDCARD_SPI_PARAM_POWER GPIO_UNDEF
84
#ifndef SDCARD_SPI_PARAM_CS
85
#define SDCARD_SPI_PARAM_CS SPI0_CS0
86
#endif
88
#endif
/* MODULE_SDCARD_SPI || DOXYGEN */
89
90
#ifdef __cplusplus
91
}
/* end extern "C" */
92
#endif
93
96
#endif
/* BOARD_MODULES_H */
Generated on Sat Nov 16 2024 08:08:27 by
1.9.8