Hi,
I tried some codes from website of Univ. of Texas, which relates to generate sine wave with TMS320C6748.
The codes are as follows:
********************************************************
float sine_val;
void isrAudio(void) {
.........................
WriteSample(sine_val,sine_val);
}
void WriteSample(float left,float right) {
int32_t ileft = (int32_t) left;
int32_t iright = (int32_t)right;
int32_t dataOut32;
dataOut32 = (iright << 16) | (ileft & 0x0000ffff);
while(!CHKBIT(MCASP->SRCTL11, XRDY)){}
MCASP->XBUF11 = dataOut32;
}
*********************************************************
After I built the project, an error comes out and says that "Declaration is incompatible with previous "WriteSample" ".
I don't know how to solve this problem.
Thanks in advance!
Best regards,
PP