Ejemplo n.º 1
0
/****************************************************************************************************
 * @fn      ASFKillTimer
 *          Kills the timer that was created earlier
 *
 * @param   pTimer  Pointer to timer control block containing the attributes of the timer to be
 *                  created.
 *
 * @return  none
 *
 * @see     ASFTimerStart()
 ***************************************************************************************************/
void _ASFKillTimer ( AsfTimer *pTimer, char *_file, int _line )
{
    osStatus    os_ret = osErrorOS;
    ASF_assert( pTimer != NULLP );
    os_ret = osTimerDelete(pTimer->timerId);
    ASF_assert( os_ret == osOK );
    pTimer->sysUse = (uint32_t)-1; //Timer no longer in use
    AsfTimerRemoveTimerFromList(pTimer->info);
}
Ejemplo n.º 2
0
void timers_uninitialize(void){
	char i;

	if(is_initialized == false)
		return;	

	for(i = 0; i < ACTIVE_TIMERS_COUNT; i++)
		if(timers[i] != NULL)
			osTimerDelete(timers[i]);

		is_initialized = false;
}
Ejemplo n.º 3
0
RtosTimer::~RtosTimer()
{
    osTimerDelete(_id);
}