But in my freertos source there is no function named eTaskGetState but there is one function named eTaskStateGet in task.h file and also this function not defined. it is declared as follows
I presume you are using an old version of FreeRTOS - but the function you found should still work (even though it was renamed some time ago) and you may even find there is a
#define
that maps the old name to the new name.
As you are posting this I assume you tried calling the function but it didn’t work? If so please let us know what the issue was.