FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [October 2014 Threads] How can i get state of task in freeRTOS?Posted by jayeshbhoi on October 8, 2014 I want to know current state of task and i found somthing in below link
http://www.freertos.org/a00021.html
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
eTaskState eTaskStateGet( xTaskHandle pxTask ) PRIVILEGED_FUNCTION;
so how can i get state of task?
How can i get state of task in freeRTOS?Posted by rtel on October 8, 2014 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.
Regards.
How can i get state of task in freeRTOS?Posted by jayeshbhoi on October 8, 2014 i am using freeRTOS version 7.3.0 and yes, i tried to calling function eTaskStateGet but it give error like
undefined reference to eTaskStateGet.
where i can found defination of that function?
How can i get state of task in freeRTOS?Posted by rtel on October 8, 2014 ...did you set INCLUDEeTaskGetState (or INCLUDEeTaskStateGet) to 1 in
FreeRTOSConfig.h? Have a look at the function in the source code.
Regards.
How can i get state of task in freeRTOS?Posted by jayeshbhoi on October 8, 2014 Ok got it and now error is gone. Thanks for your support.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|