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.

Compiler/TMDSDSK6713: compilation error in main() function

Part Number: TMDSDSK6713


Tool/software: TI C/C++ Compiler

i am writing a simple code on CCS6 to access the codec of dsk6713. the error occurs at the beginning of main() function,the console output is as follow.

 

**** Build of configuration Debug for project proj1 ****

"c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../proj1.c'
'Invoking: C6000 Compiler'
"c:/ti/ccsv6/tools/compiler/c6000_7.4.8/bin/cl6x" -mv6713 --abi=coffabi -g --include_path="E:/dspMini/csl/include" --include_path="E:/dspMini/bsl/include" --include_path="E:/dspMini/compiler/include" --define=CHIP_6713 --define=c6713 --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="proj1.pp" "../proj1.c"
"../proj1.c", line 16: error #66: expected a ";"
"../proj1.c", line 35: warning #12-D: parsing restarts here after previous syntax error

1 error detected in the compilation of "../proj1.c".
>> Compilation failure
gmake: *** [proj1.obj] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

// following is code:

#include <dsk6713.h>
#include <dsk6713_aic23.h>
#include <stdlib.h>
#include <math.h>

DSK6713_AIC23_Config config = {

0x0017,
0x0017,
0x01f9,
0x01f9,
0x0000,
0x0043,
0x0001}

void main(){
   dsk6713_aic23_codechandle hcodec;
   int16 out_l,out_r;
   Uint32 in_l,in_r;
   dsk6713_init();

hcodec = dsk6713_aic23_opencodec(0,&config);

dsk6713_aic23_setfreq(hcodec,dsk6713_aic23_freq_48khz);
while(1)
{
  while(!dsk6713_aic23_read(hcodec,&in_l));

out_l = in_l;
out_r = in_l;
   while(!dsk6713_aic23_write(hcodec,out_r));

}
sk6713_aic23_closecodec(hcodec);
}

any support and help is highly appreciated. thank you