Searched refs:best_divider (Results 1 – 3 of 3) sorted by relevance
666 uint32_t best_divider = 1; in _cyhal_utils_find_hf_source_n_divider() local720 best_divider = cur_clock_divider; in _cyhal_utils_find_hf_source_n_divider()742 *div = best_divider; in _cyhal_utils_find_hf_source_n_divider()
929 …uint32_t best_divider = (actual_source_freq + (target_freq / 2)) / target_freq; // Round to neares… in _cyhal_pdm_pcm_set_pdl_config_struct() local930 uint32_t desired_source_freq = target_freq * best_divider; in _cyhal_pdm_pcm_set_pdl_config_struct()932 if(diff <= CLK_TOLERANCE.value && best_divider <= MAX_CLK_DIV) in _cyhal_pdm_pcm_set_pdl_config_struct()934 clkDiv = (uint8_t)(best_divider - 1); in _cyhal_pdm_pcm_set_pdl_config_struct()
1159 …uint32_t best_divider = (actual_source_freq + (desired_divided_freq / 2)) / desired_divided_freq; … in _cyhal_audioss_compute_sclk_div() local1161 uint32_t desired_source_freq = desired_divided_freq * best_divider; in _cyhal_audioss_compute_sclk_div()1163 if(diff <= SCLK_TOLERANCE.value && best_divider <= MAX_SCLK_DIVIDER) in _cyhal_audioss_compute_sclk_div()1165 *sclk_div = (uint16_t)best_divider; in _cyhal_audioss_compute_sclk_div()1169 *sclk_div = best_divider; in _cyhal_audioss_compute_sclk_div()