diff options
author | Daniël van de Giessen <daniel@dvdgiessen.nl> | 2024-02-29 14:05:01 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-03-08 14:05:38 +1100 |
commit | d6176c1f5e5556e25944ce52874ea2f2d82ccde5 (patch) | |
tree | c3c8ac6ddfc15012c885dc151d0b29457c9a4a88 /ports/esp32/uart.c | |
parent | c92683d67c8f8320bd2ddd604b9abee712575b08 (diff) |
esp32: Add support for IDF version v5.2.
Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
Diffstat (limited to 'ports/esp32/uart.c')
-rw-r--r-- | ports/esp32/uart.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/esp32/uart.c b/ports/esp32/uart.c index 863301143..833626850 100644 --- a/ports/esp32/uart.c +++ b/ports/esp32/uart.c @@ -36,6 +36,7 @@ #include <stdio.h> #include "driver/uart.h" // For uart_get_sclk_freq() #include "hal/uart_hal.h" +#include "soc/uart_periph.h" static void uart_irq_handler(void *arg); @@ -50,7 +51,7 @@ static void uart_irq_handler(void *arg); void uart_stdout_init(void) { uart_hal_context_t repl_hal = REPL_HAL_DEFN(); - #if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 3, 0) + #if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 2, 0) uart_sclk_t sclk; #else soc_module_clk_t sclk; |