thannara123
Advanced Member level 5
I have a project having more source file (ie .c file and correspondig .h files).
I am using MPLAB xc8 compailer .
I require a function return a variable value in adc.c file these varaiable value need to be use in anouther interrupt.c file .
I have tried , as follows
Declared the varaible as global variable (declared in main.c befor the main function) but not working .
Declared as extern int varaiable in header file
and defined in interrupt.c file but not working
may i get the any clarification
I am using MPLAB xc8 compailer .
I require a function return a variable value in adc.c file these varaiable value need to be use in anouther interrupt.c file .
I have tried , as follows
Declared the varaible as global variable (declared in main.c befor the main function) but not working .
Declared as extern int varaiable in header file
and defined in interrupt.c file but not working
may i get the any clarification