Tool/software: TI C/C++ Compiler
I tried the "#define EXAMPLE {x = 10;} " in blinky.c, sum.c and sysctl.c. x is a global variable and is declared earlier. All of the files are individual file, and blicky.c and sum.c are in the blinky project folder, but sysctl.c is in the C:\ti\TivaWare_C_Series-2.1.4.178\driverlib directory.
1) When I place the "EXAMPLE" into 3 of these files, only blinky.c and sum.c get x = 10 at the place of "EXAMPLE", any functions in sysctl.c has no "x = 10" replaced with no error. It just simply ignored and passing way.
2)After coping the sysctl.c and sysctl.c into the blinky project folder and changing #include path, all the functions in the 3 files work the same and get "x = 10".
Can anyone explain the reason? May it be the setting for the compiler or CCS itself?. Thanks