Skip to content

Commit 85597aa

Browse files
committed
esp32/machine_pin: Only expose IO20 on esp32 for IDF 4.3.2 and above.
This IO was enabled in IDF commit 68f8b99, which is available in IDF release v4.3.2 and above. Signed-off-by: Damien George <damien@micropython.org>
1 parent 6a1dbaa commit 85597aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/esp32/machine_pin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ STATIC const machine_pin_obj_t machine_pin_obj[] = {
9292
#endif
9393
{{&machine_pin_type}, GPIO_NUM_18},
9494
{{&machine_pin_type}, GPIO_NUM_19},
95-
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 1, 0)
95+
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 3, 2)
9696
{{&machine_pin_type}, GPIO_NUM_20},
9797
#else
9898
{{NULL}, -1},
@@ -572,7 +572,7 @@ STATIC const machine_pin_irq_obj_t machine_pin_irq_object[] = {
572572
#endif
573573
{{&machine_pin_irq_type}, GPIO_NUM_18},
574574
{{&machine_pin_irq_type}, GPIO_NUM_19},
575-
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 1, 0)
575+
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 3, 2)
576576
{{&machine_pin_irq_type}, GPIO_NUM_20},
577577
#else
578578
{{NULL}, -1},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy