am getting c141 error in the below piece of code
/***** Utility Functions *****/ void wrdata (BYTE data);error is coming here for the prototype definition also am getting the same error if the function is removed then everything is working fine its compiling properly // Write a Character to the LCD Display. { P3 = 0x0000; P0 = LCD_DATA_WR | data; error is being seen here too // Toggle Pin 'E' to send the command. P0 |= E_PIN_MASK; #pragma ASM nop; nop; nop; nop; #pragma ENDASM P0 &= ~E_PIN_MASK; lcd_wait(); }
the BYTE is unsigned char as below
typedef unsigned char BYTE;
the
LCD_DATA_WR is a macro