diff options
author | Damien George <damien@micropython.org> | 2022-06-08 18:29:01 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-06-08 18:29:01 +1000 |
commit | 85597aa68e116c4af9652ea006fac0f33cb78a78 (patch) | |
tree | d8dffc3aaf199303ff95ee1e9952094096b5fd66 | |
parent | 6a1dbaad1ca7a8e065ee69e4107497e507afdea6 (diff) |
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>
-rw-r--r-- | ports/esp32/machine_pin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/esp32/machine_pin.c b/ports/esp32/machine_pin.c index 2238c6e5f..865face96 100644 --- a/ports/esp32/machine_pin.c +++ b/ports/esp32/machine_pin.c @@ -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}, |