We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a4a86f commit 74fad89Copy full SHA for 74fad89
drivers/pinmux/pinmux_esp32.c
@@ -164,12 +164,17 @@ static int pinmux_initialize(struct device *device)
164
u32_t pin;
165
166
for (pin = 0; pin < ARRAY_SIZE(pin_mux_off); pin++) {
167
+#if (CONFIG_ESP32_FLASH_CACHE == 1)
168
/* pin 6 to 11 are configured for SPI by the second stage bootloader.
169
* We should not change them, otherwise we can't access the flash
- * anymore. */
170
+ * anymore.
171
+ * These pins are only ignored during pinmux driver initialization
172
+ * (= zephyr image boot-up), so anyone is still allowed to reconfigure
173
+ * these pins during run-time. */
174
if (pin < 6 && pin > 11) {
175
pinmux_set(NULL, pin, 0);
176
}
177
+#endif
178
179
180
ARG_UNUSED(device);
0 commit comments