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
31
#ifndef BOARD_H
32
#define BOARD_H
33
34
#include <stdint.h>
35
49
#define BTN0_PIN GPIO0
50
57
#define BTN0_MODE GPIO_IN
58
62
#ifndef BTN0_INT_FLANK
63
#define BTN0_INT_FLANK GPIO_FALLING
64
#endif
65
69
#define BUTTON0_PIN BTN0_PIN
70
81
/* include common board definitions as last step */
82
#include "board_common.h"
83
84
#ifdef __cplusplus
85
extern
"C"
{
86
#endif
87
91
static
inline
void
board_init
(
void
) {
92
/* there is nothing special to initialize on this board */
93
board_init_common
();
94
}
95
96
#ifdef __cplusplus
97
}
/* end extern "C" */
98
#endif
99
100
#endif
/* BOARD_H */
101
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