Global Variables
Posted: Wed Apr 29, 2020 12:18 pm
Maybe it is an old question, but I am facing a situation where I have a big structure (64 words) and I want it to be shared with all C files/threads, so is there any way other than using persist variables array method?
anyway I don't want the data to persist, I am using this structure everywhere (reading & writing) so I don't want to keep getting it from the persist data array and loading it back just to modify a bit or two.
I tried to use the header file declaration and the extern keyword with no success.
I hope I am clear enough here.
Thanks in advance.
anyway I don't want the data to persist, I am using this structure everywhere (reading & writing) so I don't want to keep getting it from the persist data array and loading it back just to modify a bit or two.
I tried to use the header file declaration and the extern keyword with no success.
I hope I am clear enough here.
Thanks in advance.