esp32/uart: Make compatible with sclk type change in ESP-IDF 5.3.

This type changes when they add LP-UART support for the ESP32-C6 in the dev
version of ESP-IDF 5.3.

Signed-off-by: Trent Piepho <tpiepho@gmail.com>
pull/12913/head
Trent Piepho 2023-11-13 17:56:11 -08:00 zatwierdzone przez Damien George
rodzic f72a7dde18
commit 92f0469711
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -50,7 +50,11 @@ 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)
uart_sclk_t sclk;
#else
soc_module_clk_t sclk;
#endif
uint32_t sclk_freq;
uart_hal_get_sclk(&repl_hal, &sclk); // To restore SCLK after uart_hal_init() resets it