Remove "FromISR' functions from the list of functions that switch to a privileged mode as IRQs are privileged already.

Add the vTimerSetReloadMode() API function.
This commit is contained in:
Richard Barry 2018-12-17 22:04:18 +00:00
parent 8285ca6b5f
commit 148f588f56
5 changed files with 50 additions and 54 deletions

View file

@ -439,6 +439,26 @@ Timer_t *pxTimer = xTimer;
}
/*-----------------------------------------------------------*/
void vTimerSetReloadMode( TimerHandle_t xTimer, const UBaseType_t uxAutoReload )
{
Timer_t * pxTimer = xTimer;
configASSERT( xTimer );
taskENTER_CRITICAL();
{
if( uxAutoReload != pdFALSE )
{
pxTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD;
}
else
{
pxTimer->ucStatus &= ~tmrSTATUS_IS_AUTORELOAD;
}
}
taskEXIT_CRITICAL();
}
/*-----------------------------------------------------------*/
TickType_t xTimerGetExpiryTime( TimerHandle_t xTimer )
{
Timer_t * pxTimer = xTimer;