esp32/machine_pin: Don't expose pins 33-37 when octal SPIRAM is enabled.
For ESP32-S3 configurations, CONFIG_SPIRAM_MODE_OCT requires pins 33-37 for PSRAM. So exclude them from the machine_pin_type and machine_pin_irq_type object tables.
This commit is contained in:
parent
ae3d5289a5
commit
7005354099
@ -191,11 +191,19 @@ STATIC const machine_pin_obj_t machine_pin_obj[] = {
|
||||
{{NULL}, -1}, // 30 FLASH/PSRAM
|
||||
{{NULL}, -1}, // 31 FLASH/PSRAM
|
||||
{{NULL}, -1}, // 32 FLASH/PSRAM
|
||||
#if CONFIG_SPIRAM_MODE_OCT
|
||||
{{NULL}, -1}, // 33 FLASH/PSRAM
|
||||
{{NULL}, -1}, // 34 FLASH/PSRAM
|
||||
{{NULL}, -1}, // 35 FLASH/PSRAM
|
||||
{{NULL}, -1}, // 36 FLASH/PSRAM
|
||||
{{NULL}, -1}, // 37 FLASH/PSRAM
|
||||
#else
|
||||
{{&machine_pin_type}, GPIO_NUM_33},
|
||||
{{&machine_pin_type}, GPIO_NUM_34},
|
||||
{{&machine_pin_type}, GPIO_NUM_35},
|
||||
{{&machine_pin_type}, GPIO_NUM_36},
|
||||
{{&machine_pin_type}, GPIO_NUM_37},
|
||||
#endif
|
||||
{{&machine_pin_type}, GPIO_NUM_38},
|
||||
{{&machine_pin_type}, GPIO_NUM_39}, // MTCLK
|
||||
{{&machine_pin_type}, GPIO_NUM_40}, // MTDO
|
||||
@ -658,11 +666,19 @@ STATIC const machine_pin_irq_obj_t machine_pin_irq_object[] = {
|
||||
{{NULL}, -1}, // 30 FLASH/PSRAM
|
||||
{{NULL}, -1}, // 31 FLASH/PSRAM
|
||||
{{NULL}, -1}, // 32 FLASH/PSRAM
|
||||
#if CONFIG_SPIRAM_MODE_OCT
|
||||
{{NULL}, -1}, // 33 FLASH/PSRAM
|
||||
{{NULL}, -1}, // 34 FLASH/PSRAM
|
||||
{{NULL}, -1}, // 35 FLASH/PSRAM
|
||||
{{NULL}, -1}, // 36 FLASH/PSRAM
|
||||
{{NULL}, -1}, // 37 FLASH/PSRAM
|
||||
#else
|
||||
{{&machine_pin_irq_type}, GPIO_NUM_33},
|
||||
{{&machine_pin_irq_type}, GPIO_NUM_34},
|
||||
{{&machine_pin_irq_type}, GPIO_NUM_35},
|
||||
{{&machine_pin_irq_type}, GPIO_NUM_36},
|
||||
{{&machine_pin_irq_type}, GPIO_NUM_37},
|
||||
#endif
|
||||
{{&machine_pin_irq_type}, GPIO_NUM_38},
|
||||
{{&machine_pin_irq_type}, GPIO_NUM_39},
|
||||
{{&machine_pin_irq_type}, GPIO_NUM_40},
|
||||
|
Loading…
x
Reference in New Issue
Block a user