We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd772f1 commit 516c9a7Copy full SHA for 516c9a7
cores/esp32/esp32-hal.h
@@ -135,6 +135,18 @@ void arduino_phy_init();
135
void initArduino();
136
#endif
137
138
+// defines a constant that can be used to map BOOT pin for each different ESP32 SoC
139
+#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
140
+const uint8_t BOOT_PIN = 0;
141
+#elif CONFIG_IDF_TARGET_ESP32P4
142
+const uint8_t BOOT_PIN = 35;
143
+#else
144
+// All other series C and HSoC use GPIO 9 as BOOT PIN
145
+const uint8_t BOOT_PIN = 9;
146
+#endif
147
+
148
149
150
typedef struct {
151
int core; // core which triggered panic
152
const char *reason; // exception string
0 commit comments