embeddedsw icon indicating copy to clipboard operation
embeddedsw copied to clipboard

No FreeRTOS settings to override INCLUDE_xTaskGetCurrentTaskHandle

Open smartinou opened this issue 2 years ago • 2 comments

The freertos10_xilinx.tcl script that generates FreeRTOSConfig.h file doesn't allow to override the default setting for INCLUDE_xTaskGetCurrentTaskHandle, found in FreeRTOS.h. The default value is disabled.

Third party SafeFlash library from HCC requires this feature to be enabled.

Currently there's no way to get around this but to post-edit the FreeRTOSConfig.h file, which is far from being a good solution.

smartinou avatar Dec 09 '22 14:12 smartinou

Thanks for pointing to this. We will take a look at this ask in our next release.

anirudha1977 avatar Dec 10 '22 04:12 anirudha1977

@smartinou Though INCLUDE_xTaskGetCurrentTaskHandle is not enabled by default, the xTaskGetCurrentTaskHandle() API should be available by default as we have configUSE_MUTEXES enabled by default. https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/tasks.c#L4016

Also, it will be enabled by default in our next release with FreeRTOS upgrade as latest FreeRTOS kernel has this enabled by default https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/include/FreeRTOS.h#L277 and i hope that will fix your issue. Also, we think that we can't provide GUI option for all these as there are so many config options and we expect few things to be taken care by the user as per their need.

sivadur avatar Feb 21 '23 14:02 sivadur