Matthias Weingart wrote:
Some remarks to examples/tasker
swap() should be implemented as naked
it does not work with gcc optimising switched off
(R4 is push onto stack and confuse swap() or at least the debugger ;-)
thats coorect, it must be a "nacked" function for correct function
Is the content of
static TASK tasks[MAX_TASKS];
filled with zeros at startup?
yes, vars, allocated at program start are initialized, s local static
var is basicaly a global variable with a hidden name, so that it can
only be seen from the function its defined in.
chris