I have to thank people who manage this forum because on each of my questions, someone answered me so quickly and each time it was realy helpfull.
This time, I am working with the EB006 on a 16F877A.
I'm working on a quite big project and I would like to use my own functions in my Flowcode project. I currently use C element to include some custom code.
The thing is that in C elements, I manipulate some variables with the "FCV_MYVAR" style which are created by Flowcode.
I would like to manipulate those variables with functions I have created and writen in an external .c file.
The final aim is for example to write something like this in the C element:
Code: Select all
FCV_MY_VAR = 4, FCV_MY_VAR2 = 0;
FCV_MY_VAR2 = my_function( FCV_MY_VAR );
Code: Select all
int my_function( int var );
int my_function( int var ) {
return ( var / 2 );
}
I do not know if I am clear but I hope someone would be able to tell me how to do that.
Thank you in advance for your help
Regards,
Steve_L