I must be overlooking something (again). I have several functions using local (= on the task’s stack) variables. What is the best way to initialise these at first use(where needed).
Without an RTOS, one would simply declare the variables-to-be-initialised-once as static, but this doesn’t work when multiple tasks are using the function re-entrantly.
I was thinking about setting some flags as TaskTag. But maybe there is a simpler way?