ESPixelStick Firmware
Firmware for the ESPixelStick
Loading...
Searching...
No Matches
GPIO_Defs.hpp
Go to the documentation of this file.
1
#pragma once
2
/*
3
* GPIO_Defs.hpp - Output Management class
4
*
5
* Project: ESPixelStick - An ESP8266 / ESP32 and E1.31 based pixel driver
6
* Copyright (c) 2021, 2026 Shelby Merrick
7
* http://www.forkineye.com
8
*
9
* This program is provided free for you to use in any way that you wish,
10
* subject to the laws and regulations where you are using it. Due diligence
11
* is strongly suggested before using this code. Please give credit where due.
12
*
13
* The Author makes no warranty of any kind, express or implied, with regard
14
* to this program or the documentation contained in this document. The
15
* Author shall not be liable in any event for incidental or consequential
16
* damages in connection with, or arising out of, the furnishing, performance
17
* or use of these programs.
18
*
19
*/
20
21
#include "
ESPixelStick.h
"
22
#include "
output/OutputMgrPortDefs.hpp
"
23
24
#ifdef ARDUINO_ARCH_ESP32
25
#include <driver/gpio.h>
26
#include <hal/uart_types.h>
27
#ifdef CONFIG_IDF_TARGET_ESP32
28
#define DEFAULT_SPI_DEVICE VSPI_HOST
29
#elif CONFIG_IDF_TARGET_ESP32S2
30
#define DEFAULT_SPI_DEVICE HSPI_HOST
31
#else
32
#define DEFAULT_SPI_DEVICE spi_host_device_t::SPI3_HOST
33
#endif
34
#endif
35
36
// Platform specific GPIO definitions
37
#if defined (BOARD_ESP32_CAM)
38
# include "
platforms/GPIO_Defs_ESP32_CAM.hpp
"
39
#elif defined (BOARD_ESP32_D1_MINI_ETH)
40
# include "
platforms/GPIO_Defs_ESP32_D1_MINI_ETH.hpp
"
41
#elif defined (BOARD_ESP32_D1_MINI)
42
# include "
platforms/GPIO_Defs_ESP32_D1_MINI.hpp
"
43
#elif defined (BOARD_ESP32_KA)
44
# include "
platforms/GPIO_Defs_ESP32_KA.hpp
"
45
#elif defined (BOARD_ESP32_KA_4)
46
# include "
platforms/GPIO_Defs_ESP32_KA_4.hpp
"
47
#elif defined (BOARD_ESP32_LOLIN_D32_PRO_ETH)
48
# include "
platforms/GPIO_Defs_ESP32_LoLin_D32_PRO_ETH.hpp
"
49
#elif defined (BOARD_ESP32_LOLIN_D32_PRO)
50
# include "
platforms/GPIO_Defs_ESP32_LoLin_D32_PRO.hpp
"
51
#elif defined (BOARD_ESP32_M5STACK_ATOM)
52
# include "
platforms/GPIO_Defs_ESP32_M5Stack_Atom.hpp
"
53
#elif defined (BOARD_ESP32_MH_ET_LIVE_MiniKit)
54
# include "
platforms/GPIO_Defs_ESP32_MH_ET_LIVE_MiniKit.hpp
"
55
#elif defined (BOARD_ESP32_QUINLED_DIG_OCTA)
56
# include "
platforms/GPIO_Defs_ESP32_QUINLED_Dig-Octa.hpp
"
57
#elif defined (BOARD_ESP32_OLIMEX_GATEWAY)
58
# include "
platforms/GPIO_Defs_ESP32_Olimex_Gateway.hpp
"
59
#elif defined (BOARD_ESP32_QUINLED_QUAD_ETH)
60
# include "
platforms/GPIO_Defs_ESP32_QUINLED_QUAD_ETH.hpp
"
61
#elif defined (BOARD_ESP32_QUINLED_QUAD_ETH_P5)
62
# include "
platforms/GPIO_Defs_ESP32_QUINLED_QUAD_ETH_P5.hpp
"
63
#elif defined (BOARD_ESP32_QUINLED_QUAD_AE_PLUS)
64
# include "
platforms/GPIO_Defs_ESP32_QUINLED_QUAD_AE_Plus.hpp
"
65
#elif defined (BOARD_ESP32_QUINLED_QUAD_AE_PLUS_8)
66
# include "
platforms/GPIO_Defs_ESP32_QUINLED_QUAD_AE_Plus_8.hpp
"
67
#elif defined (BOARD_ESP32_QUINLED_QUAD)
68
# include "
platforms/GPIO_Defs_ESP32_QUINLED_QUAD.hpp
"
69
#elif defined (BOARD_ESP32_QUINLED_QUAD_P5)
70
# include "
platforms/GPIO_Defs_ESP32_QUINLED_QUAD_P5.hpp
"
71
#elif defined (BOARD_ESP32_QUINLED_UNO_ETH)
72
# include "
platforms/GPIO_Defs_ESP32_QUINLED_UNO_ETH.hpp
"
73
#elif defined (BOARD_ESP32_QUINLED_UNO)
74
# include "
platforms/GPIO_Defs_ESP32_QUINLED_UNO.hpp
"
75
#elif defined (BOARD_ESP32_QUINLED_UNO_AE_PLUS)
76
# include "
platforms/GPIO_Defs_ESP32_QUINLED_UNO_AE_Plus.hpp
"
77
#elif defined (BOARD_ESP32_QUINLED_UNO_ESPSV3)
78
# include "
platforms/GPIO_Defs_ESP32_QUINLED_UNO_ESPSV3.hpp
"
79
#elif defined (BOARD_ESP32_QUINLED_UNO_ETH_ESPSV3)
80
# include "
platforms/GPIO_Defs_ESP32_QUINLED_UNO_ETH_ESPSV3.hpp
"
81
#elif defined (BOARD_ESP32_TTGO_T8)
82
# include "
platforms/GPIO_Defs_ESP32_TTGO_T8.hpp
"
83
#elif defined (BOARD_ESP32_BONG69)
84
# include "
platforms/GPIO_Defs_ESP32_Bong69.hpp
"
85
#elif defined (BOARD_ESP32_WT32ETH01)
86
# include "
platforms/GPIO_Defs_ESP32_WT32ETH01.hpp
"
87
#elif defined (BOARD_ESP32_WT32ETH01_WASATCH)
88
# include "
platforms/GPIO_Defs_ESP32_WT32ETH01_Wasatch.hpp
"
89
#elif defined (BOARD_ESP32_FOO)
90
# include "
platforms/GPIO_Defs_ESP32_FOO.hpp
"
91
#elif defined (BOARD_ESP32_TWILIGHTLORD)
92
# include "
platforms/GPIO_Defs_ESP32_TWILIGHTLORD.hpp
"
93
#elif defined (BOARD_ESP32_TWILIGHTLORD_ETH)
94
# include "
platforms/GPIO_Defs_ESP32_TWILIGHTLORD_ETH.hpp
"
95
#elif defined (BOARD_ESP32_DEVKITC)
96
# include "
platforms/GPIO_Defs_ESP32_DevkitC.hpp
"
97
#elif defined (BOARD_ESP01S)
98
# include "
platforms/GPIO_Defs_ESP8266_ESP01S.hpp
"
99
#elif defined (BOARD_ESP32S3_DEVKITC)
100
# include "
platforms/GPIO_Defs_ESP32S3_DevkitC.hpp
"
101
#elif defined (BOARD_SEEED_XIAO_ESP32S3)
102
# include "
platforms/GPIO_Defs_ESP32S3_seed_XIAO.hpp
"
103
#elif defined (BOARD_ESPS_V3)
104
# include "
platforms/GPIO_Defs_ESP8266_ESPS_V3.hpp
"
105
#elif defined (BOARD_ESPS_ESP3DEUXQUATRO_DMX)
106
# include "
platforms/GPIO_Defs_ESP32_ESP3DEUXQuattro_DMX.hpp
"
107
#elif defined (BOARD_ESP32_OCTA2GO)
108
# include "
platforms/GPIO_Defs_ESP32_Octa2go.hpp
"
109
#elif defined (BOARD_ESP32_TETRA2GO)
110
# include "
platforms/GPIO_Defs_ESP32_Tetra2go.hpp
"
111
#elif defined (BOARD_ESP32_SOLO2GO)
112
# include "
platforms/GPIO_Defs_ESP32_Solo2go.hpp
"
113
#elif defined (BOARD_ESP32_KR_LIGHTS_MSM)
114
# include "
platforms/GPIO_Defs_ESP32_kr_lights_msm.hpp
"
115
#elif defined (BOARD_ESP32_BREAKDANCEV2)
116
# include "
platforms/GPIO_Defs_ESP32_BreakDanceV2.hpp
"
117
#elif defined(BOARD_ESP32_DEVKITV_ETH)
118
# include "
platforms/GPIO_Defs_ESP32_DevkitV_ETH.hpp
"
119
#elif defined (ARDUINO_ARCH_ESP32)
120
# include "
platforms/GPIO_Defs_ESP32_generic.hpp
"
121
#elif defined (ARDUINO_ARCH_ESP8266)
122
# include "
platforms/GPIO_Defs_ESP8266_Generic.hpp
"
123
#else
124
# error "No valid platform definition"
125
#endif
// ndef platform specific GPIO definitions
126
127
#if defined(SUPPORT_SD) || defined(SUPPORT_SD_MMC)
128
# define SUPPORT_FPP
129
#endif
// defined(SUPPORT_SD) || defined(SUPPORT_SD_MMC)
ESPixelStick.h
GPIO_Defs_ESP32_Bong69.hpp
GPIO_Defs_ESP32_BreakDanceV2.hpp
GPIO_Defs_ESP32_CAM.hpp
GPIO_Defs_ESP32_D1_MINI.hpp
GPIO_Defs_ESP32_D1_MINI_ETH.hpp
GPIO_Defs_ESP32_DevkitC.hpp
GPIO_Defs_ESP32_DevkitV_ETH.hpp
GPIO_Defs_ESP32_ESP3DEUXQuattro_DMX.hpp
GPIO_Defs_ESP32_FOO.hpp
GPIO_Defs_ESP32_KA.hpp
GPIO_Defs_ESP32_KA_4.hpp
GPIO_Defs_ESP32_LoLin_D32_PRO.hpp
GPIO_Defs_ESP32_LoLin_D32_PRO_ETH.hpp
GPIO_Defs_ESP32_M5Stack_Atom.hpp
GPIO_Defs_ESP32_MH_ET_LIVE_MiniKit.hpp
GPIO_Defs_ESP32_Octa2go.hpp
GPIO_Defs_ESP32_Olimex_Gateway.hpp
GPIO_Defs_ESP32_QUINLED_Dig-Octa.hpp
GPIO_Defs_ESP32_QUINLED_QUAD.hpp
GPIO_Defs_ESP32_QUINLED_QUAD_AE_Plus.hpp
GPIO_Defs_ESP32_QUINLED_QUAD_AE_Plus_8.hpp
GPIO_Defs_ESP32_QUINLED_QUAD_ETH.hpp
GPIO_Defs_ESP32_QUINLED_QUAD_ETH_P5.hpp
GPIO_Defs_ESP32_QUINLED_QUAD_P5.hpp
GPIO_Defs_ESP32_QUINLED_UNO.hpp
GPIO_Defs_ESP32_QUINLED_UNO_AE_Plus.hpp
GPIO_Defs_ESP32_QUINLED_UNO_ESPSV3.hpp
GPIO_Defs_ESP32_QUINLED_UNO_ETH.hpp
GPIO_Defs_ESP32_QUINLED_UNO_ETH_ESPSV3.hpp
GPIO_Defs_ESP32_Solo2go.hpp
GPIO_Defs_ESP32_TTGO_T8.hpp
GPIO_Defs_ESP32_TWILIGHTLORD.hpp
GPIO_Defs_ESP32_TWILIGHTLORD_ETH.hpp
GPIO_Defs_ESP32_Tetra2go.hpp
GPIO_Defs_ESP32_WT32ETH01.hpp
GPIO_Defs_ESP32_WT32ETH01_Wasatch.hpp
GPIO_Defs_ESP32_generic.hpp
GPIO_Defs_ESP32_kr_lights_msm.hpp
GPIO_Defs_ESP32S3_DevkitC.hpp
GPIO_Defs_ESP32S3_seed_XIAO.hpp
GPIO_Defs_ESP8266_ESP01S.hpp
GPIO_Defs_ESP8266_ESPS_V3.hpp
GPIO_Defs_ESP8266_Generic.hpp
OutputMgrPortDefs.hpp
include
GPIO_Defs.hpp
Generated by
1.12.0