Function esp_idf_sys::esp_timer_start_periodic
source · pub unsafe extern "C" fn esp_timer_start_periodic(
timer: esp_timer_handle_t,
period: u64,
) -> esp_err_t
Expand description
@brief Start a periodic timer
Timer should not be running when this function is called. This function will start the timer which will trigger every ‘period’ microseconds.
@param timer timer handle created using esp_timer_create @param period timer period, in microseconds @return - ESP_OK on success - ESP_ERR_INVALID_ARG if the handle is invalid - ESP_ERR_INVALID_STATE if the timer is already running