/* Internal callback function for the system timer. 
Internal function that is called from the system timer. It gets our parameter from timer data and sends it to user function.  */
static void app_timer_callback(TimerHandle_t xTimer)
/* Internal callback function for the system timer. 
Internal function that is called from the system timer. It gets our parameter from timer data and sends it to user function.  */
static void app_timer_callback(TimerHandle_t xTimer)
{
    app_timer_info_t * pinfo = (app_timer_info_t*)(pvTimerGetTimerID(xTimer));
    ASSERT(pinfo->osHandle == xTimer);
    ASSERT(pinfo->func != NULL);
    if(pinfo->active)
        pinfo->func(pinfo->argument);
}