Tool/software:
Hi Nilabh,
I am re-opening this thread because the customer cannot change the source files.
Is there an alternative API within the SDK that will allow for similar usage?
Best regards,
Mari Tsunoda
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hi Nilabh,
I am re-opening this thread because the customer cannot change the source files.
Is there an alternative API within the SDK that will allow for similar usage?
Best regards,
Mari Tsunoda
Hi Mari,
OPTION-01
If customer wants to use xTaskDelayUntil(), they need to re-build the FreeRTOS Library by including the "INCLUDE_xTaskDelayUntil" macro in the FreeRTOSConfig.h file and then re-build the FreeRTOS stack using command-line make command.
May I know what is the issue with modifying the FreeRTOSConfig.h file and re-building the lib? This will be a one-time activity only, and won't have to be re-build with the Application everytime.
OPTION-02
If customer cannot modify the FreeRTOSConfig.h and re-build the library
The only option here is to use alternate delay APIs like vTaskDelayUntil (but this is also not enabled by default)
Or if the customer is fine with using just vTaskDelay() function, this is supported and can be used, but the functionality is a bit different than xTaskDelayUntil
vTaskDelay will place the calling task into blocked state for certain number of tick periods, whereas the xTaskDelayUntil will place it in blocked state for an absolute time (passed as function arguement). If customer can handle the calculation beforehand and can use vTaskDelay, then we are not blocked.
But if absolute time needs to be passed, we will have to proceed with option-1
Regards,
Shaunak
Hi Shaunak,
Thanks for the detailed answer and for your extremely quick response!
To use vTaskDelayUntil, they will have to similarly make source changes to enable this API right? (This is what you mean by it is not enabled by default, correct?)
Best regards,
Mari Tsunoda
Hi Mari,
vTaskDelay - Available in out-of-box SDK
xTaskDelayUntil - Unavailable, needs source code change and FreeRTOS Lib re-build
vTaskDelayUntil - Unavailable, needs source code change and FreeRTOS Lib re-build
Regards,
Shaunak