I am new to mutex and I read that the mutex is used for different tasks to share the resource.
My question is that can I use mutex in different functions?
Yes, by making the mutex a global variable, you can use it across your code in different tasks and functions. Take a look at C:\Freescale\Freescale_MQX_4_0\mqx\examples\mutex\main.c to see an example of this being done.
Retrieving data ...