embedded/common/asf/asf_timers.c
void _ASFTimerExpiry ( uint16_t info, char *_file, int _line )
{
    AsfTimer *pTimer;
    int wasMasked = __disable_irq();
    pTimer = GetTimerAndRemoveFromList(info);

    //Look for our magic number to be sure we got the right pointer
    ASF_assert_var( pTimer->sysUse == TIMER_SYS_ID,  pTimer->ticks, pTimer->userValue, pTimer->owner);
    pTimer->sysUse = (uint32_t)-1; //Timer no longer in use
    SendTimerExpiry( pTimer );
    if (!wasMasked) __enable_irq();
}
/****************************************************************************************************
 * @fn      ASFTimerExpiry
 *          Handles the timer expiry by sending message to the task that created the timer
 *
 * @param   info  pseudo pointer to timer control block of the timer that expired.
 *
 * @return  none
 *
 * @see     ASFKillTimer()
 ***************************************************************************************************/
@fn      ASFTimerExpiry
Handles the timer expiry by sending message to the task that created the timer

@param   info  pseudo pointer to timer control block of the timer that expired.

@return  none


@fn ASFTimerExpiry Handles the timer expiry by sending message to the task that created the timer @param info pseudo pointer to timer control block of the timer that expired . @return none
void _ASFTimerExpiry ( uint16_t info, char *_file, int _line )
{
    AsfTimer *pTimer;
    int wasMasked = __disable_irq();
    pTimer = GetTimerAndRemoveFromList(info);
    ASF_assert_var( pTimer->sysUse == TIMER_SYS_ID,  pTimer->ticks, pTimer->userValue, pTimer->owner);
    pTimer->sysUse = (uint32_t)-1; 
    SendTimerExpiry( pTimer );
    if (!wasMasked) __enable_irq();
}
void _ASFTimerExpiry ( uint16_t info , char * _file , int _line ) { AsfTimer * pTimer ; int wasMasked = __disable_irq ( ) ; pTimer = GetTimerAndRemoveFromList ( info ) ; ASF_assert_var ( pTimer -> sysUse == TIMER_SYS_ID , pTimer -> ticks , pTimer -> userValue , pTimer -> owner ) ; pTimer -> sysUse = ( uint32_t ) -1 ; SendTimerExpiry ( pTimer ) ; if ( ! wasMasked ) __enable_irq ( ) ; }
@fn      ASFTimerExpiry
          Handles the timer expiry by sending message to the task that created the timer
@fn ASFTimerExpiry Handles the timer expiry by sending message to the task that created the timer
//Look for our magic number to be sure we got the right pointer //Timer no longer in use