I have a variable defined in a.c (main) that is used in an ISR. I also have a function in b.c that is called one time from main in a.c The function uses the variable so in file b.c I give it a storage specifier of extern. Now the problem I am running into is b.c modifies that variable BUT when the function in b.c is out of scope I lose the variable so I wanted to define it as "static extern" in b.c but Code Composer does not allow this. Has anyone run into this and if so how do you get around it? Seems like it could be a common issue......
Thanks