Hi,
I added the following function for getting the period in ticks for an existing timer (FreeRTOS V7.0.2).
Addition to timers.h:
/**
* portTickType xTimerGetPeriod(xTimerHandle xTimer);
*
* Get the period in tick for the specified timer.
*
* @param xTimer The handle of the timer that is having its period changed.
*
* @return The timer period in ticks.
*/
portTickType xTimerGetPeriod(xTimerHandle xTimer);
Addition to timers.c:
portTickType xTimerGetPeriod(xTimerHandle xTimer)
{
xTIMER *pxTimer = ( xTIMER * ) xTimer;
return pxTimer->xTimerPeriodInTicks;
}
/*-----------------------------------------------------------*/
BR,
Malin