void MPU_vTimerSetTimerID( TimerHandle_t xTimer, void *pvNewID ) { BaseType_t xRunningPrivileged = xPortRaisePrivilege(); vTimerSetTimerID( xTimer, pvNewID ); vPortResetPrivilege( xRunningPrivileged ); }
static void prvTimerCallback( TaskHandle_t xExpiredTimer ) { uint32_t ulCount; /* The count of the number of times this timer has expired is saved in the timer's ID. Obtain the current count. */ ulCount = ( uint32_t ) pvTimerGetTimerID( xTimer ); /* Increment the count, and save it back into the timer's ID. */ ulCount++; vTimerSetTimerID( xTimer, ( void * ) ulCount ); }
static void prvTimerCallback( TaskHandle_t xExpiredTimer ) { uint32_t ulCount; /* The count of the number of times this timer has expired is saved in the timer's ID. Obtain the current count. */ ulCount = ( uint32_t ) pvTimerGetTimerID( xTimer ); /* Increment the count, and save it back into the timer's ID. */ ulCount++; vTimerSetTimerID( xTimer, ( void * ) ulCount ); /* Let the check task know the timer is still running. */ vMainSendImAlive( xGlobalScopeCheckQueue, configTIMER_STILL_EXECUTING ); }