Function esp_idf_svc::hal::sys::timer_set_alarm
source ยท pub unsafe extern "C" fn timer_set_alarm(
group_num: u32,
timer_num: u32,
alarm_en: u32,
) -> i32
Expand description
@brief Enable or disable generation of timer alarm events.
@param group_num Timer group, 0 for TIMERG0 or 1 for TIMERG1 @param timer_num Timer index, 0 for hw_timer[0] & 1 for hw_timer[1] @param alarm_en To enable or disable timer alarm function.
@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error