• Using macros with variables declared on #define
    Any ideas why it's impossible to compile that simple code? #define AB_VALUES 2,3 #define Add(a,b) a+b void main(void) { int c; c = Add (AB_VALUES); }
  • Using macros with variables declared on #define
    Any ideas why it's impossible to compile that simple code? #define AB_VALUES 2,3 #define Add(a,b) a+b void main(void) { int c; c = Add (AB_VALUES); }
  • declaration may not appear after executable statement
    #include<lpc214x.h> void init(void); void delay_ms(int); int main(void) { int i,j,k,A,B,C; IODIR0=0; A=0; B=IOPIN0; C=B^A; unsigned char c[]="I L*** NITC \n"; unsigned char r[]="I L*** EMBEDDED SYSTEMS...
  • declaration may not appear after executable statement
    #include<lpc214x.h> void init(void); void delay_ms(int); int main(void) { int i,j,k,A,B,C; IODIR0=0; A=0; B=IOPIN0; C=B^A; unsigned char c[]="I L*** NITC \n"; unsigned char r[]="I L*** EMBEDDED SYSTEMS...
  • Sharing #defines and EQU statements
    Does anyone know if there is a way to make a #define in 'C' visible to A51 code (or visa-versa)? I know how to make a header file in Hi-Tech C51 that will let 'C' and 'A51 definitions coexist, but can...