digitalfreak
Joined: 16 Feb 2005 Posts: 25
|
functions, C code question |
Posted: Wed Jul 19, 2006 12:41 pm |
|
|
Please let me know if can do something like this ? or what is a better way of doing it...
What iam doing is fairly compliacted I have to call the functions few number of times with different PIN variables?
Below is stripped down version.
Thanks,
Code: |
#define P PIN_A0
#define Q PIN_A1
#define R PIN_A2
#define S PIN_A3
int8 myfunc(const X, const Y){
int8 Z;
output_high(X);
Z = input(Y);
return Z;
}
void main(void){
myfunc(P, Q);
myfunc(R, S);
}
|
|
|