Hi. I'm using MPLAB X IDE and XC8. This code was originally written for MPLAB 8 and C18. Fairly new to PICs so I wanted to learn the latest software but I keep encountering problems with legacy coding not being compatible. In this caes it is for a PIC18F452 to a LCD.
The header file (part) gives this error when I clean and build project:
/* prototypes */
void delay_ms(unsigned char);
void lcd_busy(void);
void lcd_i_write(unsigned char);
void lcd_d_write(unsigned char);
void lcd_init(void);
void putrs_lcd(const rom char *); ../lcd.h:28: error: (372) "," expected
void puts_lcd(char *);
char ntox(unsigned char);
char *btox(unsigned char, char *);
char *itox(unsigned int, char *);
char *ltox(unsigned long, char *);
and the .c file (part) gives this error:
void putrs_lcd(const rom char *buffer) ../lcd.c:222: error: (372) "," expected
{
while (*buffer) {
lcd_d_write(*buffer);
buffer++;
}
}
Any suggestions as to where I'm going wrong?
Steve
The header file (part) gives this error when I clean and build project:
/* prototypes */
void delay_ms(unsigned char);
void lcd_busy(void);
void lcd_i_write(unsigned char);
void lcd_d_write(unsigned char);
void lcd_init(void);
void putrs_lcd(const rom char *); ../lcd.h:28: error: (372) "," expected
void puts_lcd(char *);
char ntox(unsigned char);
char *btox(unsigned char, char *);
char *itox(unsigned int, char *);
char *ltox(unsigned long, char *);
and the .c file (part) gives this error:
void putrs_lcd(const rom char *buffer) ../lcd.c:222: error: (372) "," expected
{
while (*buffer) {
lcd_d_write(*buffer);
buffer++;
}
}
Any suggestions as to where I'm going wrong?
Steve