1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
/*!
* Annulation du watchdog timer
*
* \param pTimer [out] structure du watchdog timer mise a jour
*
* \return code de retour de la fonction
* \retval OK retour OK
* \retval ERROR retour avec erreur
*
*/
int32 tmCancel(T_TIMER * pTimer)
{
struct itimerspec itimer ;
if(pTimer != 0)
{
/* Program starts here */
itimer.it_value.tv_sec = 0;
itimer.it_value.tv_nsec = 0;
itimer.it_interval.tv_sec = 0;
itimer.it_interval.tv_nsec = 0;
//Errno update
return timer_settime(pTimer->timer, 0, & itimer, 0);
}
return ERROR;
} |