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 
41 #define LED0_PIN GPIO2
42 #define LED0_ACTIVE 1
44 #define LED_BLUE_PIN GPIO2
45 
47 /* include common board definitions as last step */
48 #include "board_common.h"
49 
50 /* include definitions for optional hardware modules */
51 #include "board_modules.h"
52 
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56 
60 static inline void board_init(void) {
61  /* there is nothing special to initialize on this board */
63 }
64 
65 #ifdef __cplusplus
66 } /* end extern "C" */
67 #endif
68 
69 #endif /* BOARD_H */
70 
board_modules.h
Definitions for Wemos stackable hardware modules (shields)
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.