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

Fixes issue #7819.
This commit is contained in:
Seon Rozenblum 2021-09-20 11:03:38 +10:00 committed by Damien George
parent 35fb90bd57
commit a39a596b79
1 changed files with 10 additions and 0 deletions

View File

@ -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},