esp32/machine_pin: Make GPIO 26 usable for S2,S3 if SPIRAM not config'd.

Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
Tomas Vanek 2021-05-20 19:15:52 +02:00 committed by Damien George
parent e9f880482c
commit f9733705a9
1 changed files with 10 additions and 2 deletions

View File

@ -177,7 +177,11 @@ STATIC const machine_pin_obj_t machine_pin_obj[] = {
{{NULL}, -1}, // 23 not a pin
{{NULL}, -1}, // 24 not a pin
{{NULL}, -1}, // 25 not a pin
{{NULL}, -1}, // 26 FLASH/PSRAM
#if CONFIG_SPIRAM
{{NULL}, -1}, // 26 PSRAM
#else
{{&machine_pin_type}, GPIO_NUM_26},
#endif
{{NULL}, -1}, // 27 FLASH/PSRAM
{{NULL}, -1}, // 28 FLASH/PSRAM
{{NULL}, -1}, // 29 FLASH/PSRAM
@ -618,7 +622,11 @@ STATIC const machine_pin_irq_obj_t machine_pin_irq_object[] = {
{{NULL}, -1}, // 23 not a pin
{{NULL}, -1}, // 24 not a pin
{{NULL}, -1}, // 25 not a pin
{{NULL}, -1}, // 26 FLASH/PSRAM
#if CONFIG_SPIRAM
{{NULL}, -1}, // 26 PSRAM
#else
{{&machine_pin_irq_type}, GPIO_NUM_26},
#endif
{{NULL}, -1}, // 27 FLASH/PSRAM
{{NULL}, -1}, // 28 FLASH/PSRAM
{{NULL}, -1}, // 29 FLASH/PSRAM