esp32/machine_pin: Only expose IO20 on esp32 for IDF 4.3.2 and above.
This IO was enabled in IDF commit 68f8b999bb69563f2f3d1d897bc073968f41f3bf, which is available in IDF release v4.3.2 and above. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
6a1dbaad1c
commit
85597aa68e
|
@ -92,7 +92,7 @@ STATIC const machine_pin_obj_t machine_pin_obj[] = {
|
|||
#endif
|
||||
{{&machine_pin_type}, GPIO_NUM_18},
|
||||
{{&machine_pin_type}, GPIO_NUM_19},
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 1, 0)
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 3, 2)
|
||||
{{&machine_pin_type}, GPIO_NUM_20},
|
||||
#else
|
||||
{{NULL}, -1},
|
||||
|
@ -572,7 +572,7 @@ STATIC const machine_pin_irq_obj_t machine_pin_irq_object[] = {
|
|||
#endif
|
||||
{{&machine_pin_irq_type}, GPIO_NUM_18},
|
||||
{{&machine_pin_irq_type}, GPIO_NUM_19},
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 1, 0)
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 3, 2)
|
||||
{{&machine_pin_irq_type}, GPIO_NUM_20},
|
||||
#else
|
||||
{{NULL}, -1},
|
||||
|
|
Loading…
Reference in New Issue