Good day. There is a contradiction between the interface to xTimerCreate in timers.h (line140) and the book, and the code.
In timers.h it says that if you give xTimerCreate a xTimerPeriodInTicks value of zero then xTimerCreate (et al) will return a NULL.
The book says that if there isn’t enough memory it will return NULL, but doesn’t mention the zero period.
The implementation of xTimerCreate in timers.c doesn’t check to see if the period is zero and will only return a NULL if malloc failed.
Am I missing a detail in the code/book or is the code missing a detail?
Andrei from The Great White North.