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>
This commit is contained in:
parent
f72a7dde18
commit
92f0469711
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue