hi,
I’ve been studying FreeRTOS using Tutorial.
there’s API function about Timer ID in Software Timer chapter.
void *pvTimerGetTImerID( TimerHnadler_t xTimer);
this function’s type is (void *) so I believe if I wanna type cast this function’s return value to uint32_t, it would be
uint32_t val = (uint32_t *)pvTimerGetTimerID(xTimer);
but according to example 14
static void prvTimerCallback( TimerHandle_t xTimer )
{
TickType_t xTimeNow;
uint32_t ulExecutionCount;
...
ulExecutionCount = ( uint32_t ) pvTimerGetTimerID( xTimer );
ulExecutionCount++;
...
it is just ( uint32_t ) not ( uint32_t * ). and it’s working well.
my question is how it’s possible.
if there is something I’ve missed please let me know.
thank you so much.