-
Notifications
You must be signed in to change notification settings - Fork 25
/
ESP_PanelBoard.h
110 lines (105 loc) · 4.3 KB
/
ESP_PanelBoard.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/*
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
// *INDENT-OFF*
// Check if multiple boards are enabled
#if \
/* Espressif */ \
defined(BOARD_ESP32_C3_LCDKIT) \
+ defined(BOARD_ESP32_S3_BOX) \
+ defined(BOARD_ESP32_S3_BOX_3) \
+ defined(BOARD_ESP32_S3_BOX_3_BETA) \
+ defined(BOARD_ESP32_S3_BOX_LITE) \
+ defined(BOARD_ESP32_S3_EYE) \
+ defined(BOARD_ESP32_S3_KORVO_2) \
+ defined(BOARD_ESP32_S3_LCD_EV_BOARD) \
+ defined(BOARD_ESP32_S3_LCD_EV_BOARD_V1_5) \
+ defined(BOARD_ESP32_S3_LCD_EV_BOARD_2) \
+ defined(BOARD_ESP32_S3_LCD_EV_BOARD_2_V1_5) \
+ defined(BOARD_ESP32_S3_USB_OTG) \
+ defined(BOARD_ESP32_P4_FUNCTION_EV_BOARD) \
/* Elecrow */ \
+ defined(BOARD_ELECROW_CROWPANEL_7_0) \
/* M5Stack */ \
+ defined(BOARD_M5STACK_M5CORE2) \
+ defined(BOARD_M5STACK_M5DIAL) \
+ defined(BOARD_M5STACK_M5CORES3) \
/* JingCai */ \
+ defined(BOARD_ESP32_4848S040C_I_Y_3) \
/* Waveshare */ \
+ defined(BOARD_WAVESHARE_ESP32_S3_Touch_LCD_1_85) \
+ defined(BOARD_WAVESHARE_ESP32_S3_Touch_LCD_2_1) \
+ defined(BOARD_WAVESHARE_ESP32_S3_Touch_LCD_4_3) \
+ defined(BOARD_WAVESHARE_ESP32_S3_Touch_LCD_4_3_B) \
+ defined(BOARD_WAVESHARE_ESP32_S3_Touch_LCD_5) \
+ defined(BOARD_WAVESHARE_ESP32_S3_Touch_LCD_5_B) \
+ defined(BOARD_WAVESHARE_ESP32_S3_Touch_LCD_7) \
+ defined(BOARD_WAVESHARE_ESP32_P4_NANO) \
> 1
#error "Multiple boards enabled! Please check file `ESP_Panel_Board_Supported.h` and make sure only one board is enabled."
#endif
// Include board specific header file
/* Espressif */
#if defined(BOARD_ESP32_C3_LCDKIT)
#include "board/espressif/ESP32_C3_LCDKIT.h"
#elif defined(BOARD_ESP32_S3_BOX)
#include "board/espressif/ESP32_S3_BOX.h"
#elif defined(BOARD_ESP32_S3_BOX_3)
#include "board/espressif/ESP32_S3_BOX_3.h"
#elif defined(BOARD_ESP32_S3_BOX_3_BETA)
#include "board/espressif/ESP32_S3_BOX_3_BETA.h"
#elif defined(BOARD_ESP32_S3_BOX_LITE)
#include "board/espressif/ESP32_S3_BOX_LITE.h"
#elif defined(BOARD_ESP32_S3_EYE)
#include "board/espressif/ESP32_S3_EYE.h"
#elif defined(BOARD_ESP32_S3_KORVO_2)
#include "board/espressif/ESP32_S3_KORVO_2.h"
#elif defined(BOARD_ESP32_S3_LCD_EV_BOARD)
#include "board/espressif/ESP32_S3_LCD_EV_BOARD.h"
#elif defined(BOARD_ESP32_S3_LCD_EV_BOARD_V1_5)
#include "board/espressif/ESP32_S3_LCD_EV_BOARD_V1_5.h"
#elif defined(BOARD_ESP32_S3_LCD_EV_BOARD_2)
#include "board/espressif/ESP32_S3_LCD_EV_BOARD_2.h"
#elif defined(BOARD_ESP32_S3_LCD_EV_BOARD_2_V1_5)
#include "board/espressif/ESP32_S3_LCD_EV_BOARD_2_V1_5.h"
#elif defined(BOARD_ESP32_S3_USB_OTG)
#include "board/espressif/ESP32_S3_USB_OTG.h"
#elif defined(BOARD_ESP32_P4_FUNCTION_EV_BOARD)
#include "board/espressif/ESP32_P4_FUNCTION_EV_BOARD.h"
/* Elecrow */
#elif defined(BOARD_ELECROW_CROWPANEL_7_0)
#include "board/elecrow/CROWPANEL_7_0.h"
/* M5Stack */
#elif defined(BOARD_M5STACK_M5CORE2)
#include "board/m5stack/M5CORE2.h"
#elif defined(BOARD_M5STACK_M5DIAL)
#include "board/m5stack/M5DIAL.h"
#elif defined(BOARD_M5STACK_M5CORES3)
#include "board/m5stack/M5CORES3.h"
/* Jingcai */
#elif defined(BOARD_ESP32_4848S040C_I_Y_3)
#include "board/jingcai/ESP32_4848S040C_I_Y_3.h"
/* Waveshare */
#elif defined(BOARD_WAVESHARE_ESP32_S3_Touch_LCD_1_85)
#include "board/waveshare/ESP32_S3_Touch_LCD_1_85.h"
#elif defined(BOARD_WAVESHARE_ESP32_S3_Touch_LCD_2_1)
#include "board/waveshare/ESP32_S3_Touch_LCD_2_1.h"
#elif defined(BOARD_WAVESHARE_ESP32_S3_Touch_LCD_4_3)
#include "board/waveshare/ESP32_S3_Touch_LCD_4_3.h"
#elif defined(BOARD_WAVESHARE_ESP32_S3_Touch_LCD_4_3_B)
#include "board/waveshare/ESP32_S3_Touch_LCD_4_3_B.h"
#elif defined(BOARD_WAVESHARE_ESP32_S3_Touch_LCD_5)
#include "board/waveshare/ESP32_S3_Touch_LCD_5.h"
#elif defined(BOARD_WAVESHARE_ESP32_S3_Touch_LCD_5_B)
#include "board/waveshare/ESP32_S3_Touch_LCD_5_B.h"
#elif defined(BOARD_WAVESHARE_ESP32_S3_Touch_LCD_7)
#include "board/waveshare/ESP32_S3_Touch_LCD_7.h"
#elif defined(BOARD_WAVESHARE_ESP32_P4_NANO)
#include "board/waveshare/ESP32_P4_NANO.h"
#else
#error "Unknown board selected! Please check file `ESP_Panel_Board_Supported.h` and make sure only one board is enabled."
#endif
// *INDENT-OFF*