Function esp_idf_svc::sys::hal_utils_calc_clk_div_frac_fast
source ยท pub unsafe extern "C" fn hal_utils_calc_clk_div_frac_fast(
clk_info: *const hal_utils_clk_info_t,
clk_div: *mut hal_utils_clk_div_t,
) -> u32
Expand description
@brief Calculate the clock division with fractal part fast @note Speed first algorithm, Time complexity O(log n). About 8~10 times faster than the accurate algorithm
@param[in] clk_info The clock infomation @param[out] clk_div The clock division with integral and fractal part @return - 0: Failed to get the result because the division is out of range - others: The real output clock frequency