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 #pragma once
10 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 #if MODULE_MRF24J40 || DOXYGEN
45 #define MRF24J40_PARAM_SPI SPI_DEV(0)
47 #ifndef MRF24J40_PARAM_SPI_CLK
48 #define MRF24J40_PARAM_SPI_CLK SPI_CLK_1MHZ
49 #endif
50 #ifndef MRF24J40_PARAM_CS
51 #define MRF24J40_PARAM_CS GPIO26
52 #endif
53 #ifndef MRF24J40_PARAM_INT
54 #define MRF24J40_PARAM_INT GPIO17
55 #endif
56 #ifndef MRF24J40_PARAM_RESET
57 #define MRF24J40_PARAM_RESET GPIO16
58 #endif
60 #endif /* MODULE_MRF24J40 || DOXYGEN */
61 
62 #if MODULE_SDCARD_SPI || DOXYGEN
77 #define SDCARD_SPI_PARAM_SPI SPI_DEV(0)
78 #define SDCARD_SPI_PARAM_CLK SPI0_SCK
79 #define SDCARD_SPI_PARAM_MOSI SPI0_MOSI
80 #define SDCARD_SPI_PARAM_MISO SPI0_MISO
81 #define SDCARD_SPI_PARAM_POWER GPIO_UNDEF
83 #ifndef SDCARD_SPI_PARAM_CS
84 #define SDCARD_SPI_PARAM_CS SPI0_CS0
85 #endif
87 #endif /* MODULE_SDCARD_SPI || DOXYGEN */
88 
89 #ifdef __cplusplus
90 } /* end extern "C" */
91 #endif
92