UTILS_TimespecToTicks() function
Converts a struct timespec to FreeRTOS ticks.
Arguments
pxTimespec
The timespec to convert.
pxResult
Where the result of the conversion is stored. The result is rounded up for fractional ticks.
Return value
0 on success. Otherwise, EINVAL for invalid parameters.