Tool/software: Code Composer Studio
Hello experts,
1. a static variable "static uint16_t myVar = 200U ;" is defined in "my.c" file
2. in header file "my.h", this variable is defined with "extern uint16_t myVar;";
3. in .cla file "my.cla", include header file with " #include "my.h"
we try to use this variable "myVar" in "my.cla", but this does not work.
Could you please tell us what we did wrong, and help to correct the code above? Thanks!