Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.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
42
#ifndef BOARD_H
43
#define BOARD_H
44
45
#include <stdint.h>
46
51
#define LED0_PIN GPIO5
52
#define LED0_ACTIVE (0)
/* LED is low active */
53
62
#if MODULE_SDCARD_SPI
63
#define SDCARD_SPI_PARAM_SPI SPI_DEV(0)
64
#define SDCARD_SPI_PARAM_CLK SPI0_SCK
65
#define SDCARD_SPI_PARAM_MOSI SPI0_MOSI
66
#define SDCARD_SPI_PARAM_MISO SPI0_MISO
67
#define SDCARD_SPI_PARAM_CS SPI0_CS1
68
#define SDCARD_SPI_PARAM_POWER GPIO_UNDEF
69
#endif
70
72
/* include common board definitions as last step */
73
#include "board_common.h"
74
75
#ifdef __cplusplus
76
extern
"C"
{
77
#endif
78
82
static
inline
void
board_init
(
void
) {
83
/* there is nothing special to initialize on this board */
84
board_init_common
();
85
}
86
87
#ifdef __cplusplus
88
}
/* end extern "C" */
89
#endif
90
91
#endif
/* BOARD_H */
92
board_init_common
void board_init_common(void)
Initialize the hardware that is common for all ESP32 boards.
board_init
void board_init(void)
Board level initialization.
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17