On Thu, 05 May 2005 22:53:23 -0500, "Brain101" <brain_uk@hotmail.com>
wrote in comp.dsp:
> I am coding for a 6711 in C. I have an array of sampled data, which I would
> like to output via the McBSP. Unfortunatly, on compiling I get the error
> message "argument of type "unsigned int *" is incompatible with parameter
> of type "int"". Does this think I'm trying to use a pointer? All i want to
> do is output the entire array. Can anybody please help me?
>
> int i;
> short int input1;
> short int input2;
> int tdmArray[0x7FFFFFF];
>
> for (i = 0; i >0x7FFFFFF; i=i+2)
> {
> input1 = mcbsp1_read();
> tdmArray[i] = input1;
> input2 = mcbsp1_read();
> tdmArray[i+1] = input2;
> }
>
> mcbsp1_write(tdmArray);
>
> This message was sent using the Comp.DSP web interface on
> www.DSPRelated.com
Brain,
Can you give the definition of mcbsp1_write ?. I suspect it to be a
mismatch between the caller and callee arguments...
~Sandeep
Reply by Brain101●May 6, 20052005-05-06
I am coding for a 6711 in C. I have an array of sampled data, which I would
like to output via the McBSP. Unfortunatly, on compiling I get the error
message "argument of type "unsigned int *" is incompatible with parameter
of type "int"". Does this think I'm trying to use a pointer? All i want to
do is output the entire array. Can anybody please help me?
int i;
short int input1;
short int input2;
int tdmArray[0x7FFFFFF];
for (i = 0; i >0x7FFFFFF; i=i+2)
{
input1 = mcbsp1_read();
tdmArray[i] = input1;
input2 = mcbsp1_read();
tdmArray[i+1] = input2;
}
mcbsp1_write(tdmArray);
This message was sent using the Comp.DSP web interface on
www.DSPRelated.com