natanel wrote on Sunday, August 12, 2007:
Hi
I just started using freeRTOS and I have few questions
1) if I want to keep the value of an array between task switch
that the array will have the same values after task return
what is the best way to do it
I am using "static" right now, is it ok?
2) I am almost sure that those values are not pushed to the stack (array can be very big)
so were exactly they are kept between calls?
3) reading examples I found that parameters sent to task use memory allocation
when does it is exactly needed? way?
for example telling task to ran with delay of N msec.
do it need to be used by parameters sending with memory allocation?
do I need to use parameters with memory allocation for solving question number 1 ?
4) finally "volatile". on which variables it should be used
does the array from 1 should be declared as volatile to keep its data between task switch?
does all the variables in a task should be volatile?
thanks