always evaluates to ZERO/FALSE:
xTimerHandle xTimerCreate(...)
{
xTIMER *pxNewTimer;
/* Allocate the timer structure. */
if( xTimerPeriodInTicks == ( portTickType ) 0U )
{
pxNewTimer = NULL;
configASSERT( ( xTimerPeriodInTicks > 0 ) );
}
Therefore one will always see a compiler warning similar to:
["..FreeRTOS_Sourcetimers.c" 236/3] condition is always true
What is the sense of this assert when timers.h documents:
If the timer cannot be created (because , or theIn my view this assert should be removed as this code does not do
timer period was set to 0) then 0 is returned.
what is documented. I suggest:
xTimerHandle xTimerCreate(...)
{
xTIMER *pxNewTimer = NULL;
/* Allocate the timer structure. */
if( xTimerPeriodInTicks > ( portTickType ) 0U )
{
RegardsFriedl