esp_idf_hal::sys

Function esp_timer_start_periodic

Source
pub unsafe extern "C" fn esp_timer_start_periodic(
    timer: *mut esp_timer,
    period: u64,
) -> i32
Expand description

@brief Start a periodic timer

Timer represented by timer should not be running when this function is called. This function starts 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