Tag: variable

C32 – Global variable across multiple files

This is a simple example on how to use the same variable across multiple files using Microchip C32 compliler. The main file (with void main(void) in it) is source-file-one.c. It has the include statement for source-file-two.h. The variable globalvariable is defined in the main source file, and then refered to in source-file-two.c using the extern […]