API to disarm hw_timer ?

nver
Posts: 24
Joined: Sun Apr 26, 2015 2:57 am

API to disarm hw_timer ?

Postby nver » Mon May 09, 2016 2:54 pm

Hi Espressif

Is there a way to disarm HW timer before it is triggered ? I mean either there should be an API similar to "os_timer_disarm" or via setting a specific value through hw_timer_arm(SOME VALUE_TO_DISARM_HW_TIMER) .

Please someone enlighten me if this is already possible.

thanks

ESP_Faye
Posts: 1642
Joined: Mon Oct 27, 2014 11:08 am

Re: API to disarm hw_timer ?

Postby ESP_Faye » Wed May 11, 2016 8:45 pm

Hi,

Please try this

Code: Select all

void  hw_timer_stop()
{
    RTC_CLR_REG_MASK(FRC1_CTRL_ADDRESS,FRC1_ENABLE_TIMER);   
}


Thanks for your interest in ESP8266 !

Who is online

Users browsing this forum: No registered users and 9 guests