Browse Source

esp32/machine_pin: Block out IO16 and IO17 when using SPIRAM on ESP32.

Fixes issue #7819.
pull/7809/head
Seon Rozenblum 3 years ago
committed by Damien George
parent
commit
a39a596b79
  1. 10
      ports/esp32/machine_pin.c

10
ports/esp32/machine_pin.c

@ -84,8 +84,13 @@ STATIC const machine_pin_obj_t machine_pin_obj[] = {
{{&machine_pin_type}, GPIO_NUM_13},
{{&machine_pin_type}, GPIO_NUM_14},
{{&machine_pin_type}, GPIO_NUM_15},
#if CONFIG_ESP32_SPIRAM_SUPPORT
{{NULL}, -1},
{{NULL}, -1},
#else
{{&machine_pin_type}, GPIO_NUM_16},
{{&machine_pin_type}, GPIO_NUM_17},
#endif
{{&machine_pin_type}, GPIO_NUM_18},
{{&machine_pin_type}, GPIO_NUM_19},
{{NULL}, -1},
@ -518,8 +523,13 @@ STATIC const machine_pin_irq_obj_t machine_pin_irq_object[] = {
{{&machine_pin_irq_type}, GPIO_NUM_13},
{{&machine_pin_irq_type}, GPIO_NUM_14},
{{&machine_pin_irq_type}, GPIO_NUM_15},
#if CONFIG_ESP32_SPIRAM_SUPPORT
{{NULL}, -1},
{{NULL}, -1},
#else
{{&machine_pin_irq_type}, GPIO_NUM_16},
{{&machine_pin_irq_type}, GPIO_NUM_17},
#endif
{{&machine_pin_irq_type}, GPIO_NUM_18},
{{&machine_pin_irq_type}, GPIO_NUM_19},
{{NULL}, -1},

Loading…
Cancel
Save