Hello, I'm completely new, (at the level of beginning at reading the manual) and I kindly request some information.
Question: In the "Mastering the FreeRTOS TM Real Time Kernel" copy 161204, Listing 74 documentation, should the discription of xTimerStart have a returned value of BaseTypet instead of TimerHandlet?
TimerHandlet xTimerStart( TimerHandlet xTimer, TickTypet xTicksToWait ); // what is on Listing 74.
BaseTypet xTimerStart( TimerHandlet xTimer, TickTypet xTicksToWait ); // what I think it should be.
BaseTypet would be consistant with the example code in listing 75:
BaseTypet xTimer1Started, xTimer2Started;
And BaseType_t would be consistant with table 28:
returned value of pdPASS or pdFALSE.
For example: pdPASS or pdFAIL is of type BaseType_t in the listing 13 documentation for xTaskCreate:
BaseTypet xTaskCreate( TaskFunctiont pvTaskCode,
const char * const pcName,
TaskHandle_t *pxCreatedTask );
Thank you in advance for your help.
Apologies for the delay in replying - you are right - it is an error in the book text as the return type is BaseType_t. You can see the actual function in FreeRTOS/source/include/timers.h.
Thank you for helping me. I think the book is very well written.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.