GrandAlf
Advanced Member level 2
As a relative newcomer to C, I have a couple of questions that maybe someone could enlignten me on. The first is when a variable is declared outside any functions, I have read that it should also be declared within any function that uses it. I have found that it works just fine without doing this, anyone know why this should be a requirement?. Also when using an RTOS, and assuming I have a function within a task that is not using external variables, can I call it it as a normal function, or are there any timing problems in passing data backwards and forwards.
Any opinions gratefully received.
Any opinions gratefully received.