Hi ! I am trying to write C program for a microcontroller (CCS compiler software), here is the part that I get error "Expect a close paren"
void Speech(char words);
void main()
{
//INTRO OR GUIDED WORDS
char hello[]="HELLO WORLD!\n";
Speech(hello,0xC0); //it says error here
}
void Speech(char words,int position)
{
char *textptr;
textptr = words;
WrCmd2Lcd(position);
delay_ms(64);
do
{
WrDat2Lcd(*textptr);
*textptr++;
}
while(*textptr != '\n');
}
everything is okey until I add "int position" to the function Speech.
What is my wrong coding ?
Thanks !!!