This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

About data type mistake

Other Parts Discussed in Thread: TMS320VC5505

Just started to learn about CCS. The Chip version I used is: TMS320VC5505 eZdsp. I write a function to create m-sequence, and want to print the sequence on the console window. But when it comes to this part: the printf(m_seq); the compiler shows the following error:

Description Resource Path Location Type
argument of type "void (*)(Bool *, Bool *)" is incompatible with parameter of type "const char *" gpio_Output_Pin_Example.c /CSL_GPIO_OutputPinExample line 186 C/C++ Problem

The funtion below is what I used to create the m sequence:

void m_seq (Bool (*mseq),Bool (*fc))
{
int i,j;
Bool mreg[8]={0,0,0,0,0,0,0,1};
Bool newmreg[8];
int mod=0;
*mseq=mreg[7];
printf(m_seq);

for (i=1;i<255;i++)
{
for (j=0;j<8;j++){mod+=mreg[j]&*(fc+j);}
newmreg[0]=mod%2;
mod=0;
for (j=1;j<=7;j++)
{
newmreg[j]=mreg[j-1];
}
for (j=0;j<8;j++){mreg[j]=newmreg[j];}
*(mseq+i)=mreg[7];
}
}

Thanks in advance!! Really appreciate your help!