ledc_find_suitable_duty_resolution() function
Helper function to find the maximum possible duty resolution in bits for ledc_timer_config()
Arguments
src_clk_freq
LEDC timer source clock frequency (Hz) (See doxygen comments of `ledc_clk_cfg_t` or get from `esp_clk_tree_src_get_freq_hz`)
timer_freq
Desired LEDC timer frequency (Hz)
Return value
- 0 The timer frequency cannot be achieved - Others The largest duty resolution value to be set