Function esp_idf_sys::timer_set_divider
source · pub unsafe extern "C" fn timer_set_divider(
group_num: timer_group_t,
timer_num: timer_idx_t,
divider: u32,
) -> esp_err_t
Expand description
@brief Set hardware divider of the source clock to the timer group. By default, the source clock is APB clock running at 80 MHz. For more information, please check Chapter Reset and Clock in Chip Technical Reference Manual. @param group_num Timer group number, 0 for TIMERG0 or 1 for TIMERG1 @param timer_num Timer index, 0 for hw_timer[0] & 1 for hw_timer[1] @param divider Timer clock divider value. The divider’s range is from from 2 to 65536.
@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error