How do global variable declarations work?
For example:
In file1.c I am defining:
#define volt_add 0x20
uint8_t vol[8]= {0x53, 0x35, 0x05, 0x22, volt_add,0x00,0x00,0x00};
uint16_t EM_vol;
I need to use all above variables in file2.c.
I tried to define them in the global.h file and included that file in both file1.c and file2.c, but I am getting a multiple definition error, first defined here error.
How can I do it?