fix(uart): Fixed C++ type conversion compile error in uart_ll_get_sclk

Closes https://github.com/espressif/esp-idf/issues/11813
This commit is contained in:
Song Ruo Jing
2023-07-11 11:13:15 +08:00
parent a9523b2cef
commit b60f4a6f37
7 changed files with 24 additions and 25 deletions

View File

@@ -92,10 +92,10 @@ FORCE_INLINE_ATTR void uart_ll_get_sclk(uart_dev_t *hw, soc_module_clk_t *source
switch (hw->conf0.tick_ref_always_on) {
default:
case 0:
*source_clk = UART_SCLK_REF_TICK;
*source_clk = (soc_module_clk_t)UART_SCLK_REF_TICK;
break;
case 1:
*source_clk = UART_SCLK_APB;
*source_clk = (soc_module_clk_t)UART_SCLK_APB;
break;
}
}