Home
last modified time | relevance | path

Searched refs:sclk (Results 1 – 6 of 6) sorted by relevance

/hal_espressif-3.7.0/components/hal/include/hal/
Duart_hal.h50 #define uart_hal_set_sclk(hal, sclk) uart_ll_set_sclk((hal)->dev, sclk); argument
209 void uart_hal_get_sclk(uart_hal_context_t *hal, uart_sclk_t *sclk);
Di2s_hal.h101 uint32_t sclk; /*!< I2S module clock */ member
130 void i2s_hal_calc_mclk_precise_division(uint32_t sclk, uint32_t mclk, i2s_ll_mclk_div_t *mclk_div);
/hal_espressif-3.7.0/components/hal/
Di2s_hal.c36 void i2s_hal_calc_mclk_precise_division(uint32_t sclk, uint32_t mclk, i2s_ll_mclk_div_t *mclk_div) in i2s_hal_calc_mclk_precise_division() argument
43 uint32_t div_inter = sclk / mclk; in i2s_hal_calc_mclk_precise_division()
44 uint32_t freq_diff = sclk % mclk; in i2s_hal_calc_mclk_precise_division()
88 i2s_hal_calc_mclk_precise_division(clk_info->sclk, clk_info->mclk, &mclk_div); in i2s_hal_set_tx_clock()
101 i2s_hal_calc_mclk_precise_division(clk_info->sclk, clk_info->mclk, &mclk_div); in i2s_hal_set_rx_clock()
Duart_hal.c11 void uart_hal_get_sclk(uart_hal_context_t *hal, uart_sclk_t *sclk) in uart_hal_get_sclk() argument
13 uart_ll_get_sclk(hal->dev, sclk); in uart_hal_get_sclk()
/hal_espressif-3.7.0/components/driver/deprecated/
Di2s_legacy.c685 clk_info->sclk = i2s_config_source_clock(i2s_num, p_i2s[i2s_num]->use_apll, clk_info->mclk); in i2s_calculate_adc_dac_clock()
687 clk_info->mclk_div = clk_info->sclk / clk_info->mclk; in i2s_calculate_adc_dac_clock()
690 …ESP_RETURN_ON_FALSE(clk_info->sclk / (float)clk_info->mclk > 1.99, ESP_ERR_INVALID_ARG, TAG, "samp… in i2s_calculate_adc_dac_clock()
714 clk_info->sclk = i2s_config_source_clock(i2s_num, p_i2s[i2s_num]->use_apll, clk_info->mclk); in i2s_calculate_pdm_tx_clock()
716 clk_info->mclk_div = clk_info->sclk / clk_info->mclk; in i2s_calculate_pdm_tx_clock()
719 …ESP_RETURN_ON_FALSE(clk_info->sclk / (float)clk_info->mclk > 1.99, ESP_ERR_INVALID_ARG, TAG, "samp… in i2s_calculate_pdm_tx_clock()
741 clk_info->sclk = i2s_config_source_clock(i2s_num, p_i2s[i2s_num]->use_apll, clk_info->mclk); in i2s_calculate_pdm_rx_clock()
743 clk_info->mclk_div = clk_info->sclk / clk_info->mclk; in i2s_calculate_pdm_rx_clock()
746 …ESP_RETURN_ON_FALSE(clk_info->sclk / (float)clk_info->mclk > 1.99, ESP_ERR_INVALID_ARG, TAG, "samp… in i2s_calculate_pdm_rx_clock()
771 clk_info->sclk = i2s_config_source_clock(i2s_num, p_i2s[i2s_num]->use_apll, clk_info->mclk); in i2s_calculate_common_clock()
[all …]
/hal_espressif-3.7.0/components/driver/uart/
Duart.c203 esp_err_t uart_get_sclk_freq(uart_sclk_t sclk, uint32_t *out_freq_hz) in uart_get_sclk_freq() argument
205 …return esp_clk_tree_src_get_freq_hz((soc_module_clk_t)sclk, ESP_CLK_TREE_SRC_FREQ_PRECISION_CACHED… in uart_get_sclk_freq()
1619 uart_sclk_t sclk = 0; in uart_driver_delete() local
1620 uart_hal_get_sclk(&(uart_context[uart_num].hal), &sclk); in uart_driver_delete()
1621 if (sclk == UART_SCLK_RTC) { in uart_driver_delete()