hal_utils_calc_clk_div_frac_accurate() function
Calculate the clock division with fractal part accurately
Arguments
clk_info
The clock information
clk_div
The clock division with integral and fractal part
Return value
- 0: Failed to get the result because the division is out of range - others: The real output clock frequency
Notes
Accuracy first algorithm, Time complexity O(n). About 1~hundreds times more accurate than the fast algorithm