Skip to content

Commit 92f0469

Browse files
xyzzy42dpgeorge
authored andcommitted
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 <[email protected]>
1 parent f72a7dd commit 92f0469

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ports/esp32/uart.c

+4
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ STATIC void uart_irq_handler(void *arg);
5050

5151
void uart_stdout_init(void) {
5252
uart_hal_context_t repl_hal = REPL_HAL_DEFN();
53+
#if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 3, 0)
5354
uart_sclk_t sclk;
55+
#else
56+
soc_module_clk_t sclk;
57+
#endif
5458
uint32_t sclk_freq;
5559

5660
uart_hal_get_sclk(&repl_hal, &sclk); // To restore SCLK after uart_hal_init() resets it

0 commit comments

Comments
 (0)