@@ -112,7 +112,7 @@ FORCE_INLINE_ATTR void lp_uart_ll_get_sclk(uart_dev_t *hw, soc_module_clk_t *sou
112112 switch (LP_CLKRST .lpperi .lp_uart_clk_sel ) {
113113 default :
114114 case 0 :
115- * source_clk = (soc_module_clk_t )LP_UART_SCLK_LP_FAST ;
115+ * source_clk = (soc_module_clk_t )LP_UART_SCLK_RC_FAST ;
116116 break ;
117117 case 1 :
118118 * source_clk = (soc_module_clk_t )LP_UART_SCLK_XTAL_D2 ;
@@ -130,7 +130,7 @@ static inline void lp_uart_ll_set_source_clk(uart_dev_t *hw, soc_periph_lp_uart_
130130{
131131 (void )hw ;
132132 switch (src_clk ) {
133- case LP_UART_SCLK_LP_FAST :
133+ case LP_UART_SCLK_RC_FAST :
134134 LP_CLKRST .lpperi .lp_uart_clk_sel = 0 ;
135135 break ;
136136 case LP_UART_SCLK_XTAL_D2 :
@@ -167,12 +167,7 @@ FORCE_INLINE_ATTR void lp_uart_ll_set_baudrate(uart_dev_t *hw, uint32_t baud, ui
167167 // an integer part and a fractional part.
168168 hw -> clkdiv_sync .clkdiv_int = clk_div >> 4 ;
169169 hw -> clkdiv_sync .clkdiv_frag = clk_div & 0xf ;
170- #if CONFIG_IDF_TARGET_ESP32C5_BETA3_VERSION
171170 HAL_FORCE_MODIFY_U32_REG_FIELD (hw -> clk_conf , sclk_div_num , sclk_div - 1 );
172- #elif CONFIG_IDF_TARGET_ESP32C5_MP_VERSION
173- // TODO: [ESP32c5] IDF-8633 Not found sclk_div_num for LP_UART
174- abort ();
175- #endif
176171 uart_ll_update (hw );
177172}
178173
@@ -437,12 +432,7 @@ FORCE_INLINE_ATTR uint32_t uart_ll_get_baudrate(uart_dev_t *hw, uint32_t sclk_fr
437432 div_reg .val = hw -> clkdiv_sync .val ;
438433 int sclk_div ;
439434 if ((hw ) == & LP_UART ) {
440- #if CONFIG_IDF_TARGET_ESP32C5_BETA3_VERSION
441435 sclk_div = HAL_FORCE_READ_U32_REG_FIELD (hw -> clk_conf , sclk_div_num ) + 1 ;
442- #elif CONFIG_IDF_TARGET_ESP32C5_MP_VERSION
443- // TODO: [ESP32c5] IDF-8633 Not found sclk_div_num for LP_UART
444- abort ();
445- #endif
446436 } else {
447437 sclk_div = UART_LL_PCR_REG_U32_GET (hw , sclk_conf , sclk_div_num ) + 1 ;
448438 }
@@ -734,7 +724,7 @@ FORCE_INLINE_ATTR void uart_ll_set_tx_idle_num(uart_dev_t *hw, uint32_t idle_num
734724}
735725
736726/**
737- * @brief Configure the transmiter to send break chars.
727+ * @brief Configure the transmitter to send break chars.
738728 *
739729 * @param hw Beginning address of the peripheral registers.
740730 * @param break_num The number of the break chars need to be send.
@@ -801,7 +791,7 @@ FORCE_INLINE_ATTR void uart_ll_get_hw_flow_ctrl(uart_dev_t *hw, uart_hw_flowcont
801791 * @brief Configure the software flow control.
802792 *
803793 * @param hw Beginning address of the peripheral registers.
804- * @param flow_ctrl The UART sofware flow control settings.
794+ * @param flow_ctrl The UART software flow control settings.
805795 * @param sw_flow_ctrl_en Set true to enable software flow control, otherwise set it false.
806796 *
807797 * @return None.
@@ -1132,7 +1122,7 @@ FORCE_INLINE_ATTR bool uart_ll_is_hw_cts_en(uart_dev_t *hw)
11321122 * @brief Configure TX signal loop back to RX module, just for the testing purposes
11331123 *
11341124 * @param hw Beginning address of the peripheral registers.
1135- * @param loop_back_en Set ture to enable the loop back function, else set it false.
1125+ * @param loop_back_en Set true to enable the loop back function, else set it false.
11361126 *
11371127 * @return None
11381128 */
0 commit comments