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.

CCS: error of code

Tool/software: Code Composer Studio

hi

i use this code but  i have  six error what can i do?

#include "dsk6713_aic23.h" //fichier entête pour le codec,DSK
Uint32 fs = DSK6713_AIC23_FREQ_8KHZ; //fixe la fréquence d’échantillonnage
short loop = 0; //indice de la table
short gain = 10; //facteur de gain

//valeurs de la sinusoïde

short sine_table[8]={0,707,1000,707,0,-707,-1000,-707};
void main()
{
comm_poll(); //initialisation de la DSK, du codec, et du McBSP
DSK6713_LED_init(); //initialisation des LED à partir de BSL
DSK6713_DIP_init(); //initialisation des switch DIP à partir de BSL

//BSL : Board Support Library (fonctions
//incluses dans CCS sous forme de librairies
//dsk6713bsl.lib

while(1) //boucle infinie
{
if(DSK6713_DIP_get(0)==0) //=0 si le switch #0 est enfoncé
{
DSK6713_LED_on(0); //la LED#0 et à l’état ON (allumée)
output_sample(sine_table[loop]*gain); //output chaque Ts (SW0 on)
if (++loop > 7) loop = 0; //vérification de fin de table
}
else DSK6713_LED_off(0); //LED #0 off
} //fin de la boucle while(1)
} //end of main


**** Build of configuration Debug for project sinus12 ****

"C:\\ti2\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../main.c'
'Invoking: C6000 Compiler'
"C:/ti2/ccsv6/tools/compiler/c6000_7.4.7/bin/cl6x" -mv6700 --abi=coffabi -g --include_path="C:/ti2/ccsv6/tools/compiler/c6000_7.4.7/include" --include_path="C:/Program Files/C6xCSL/include" --include_path="C:/Program Files/C6xCSL/lib_3x" --define=c6713 --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
"C:/Program Files/C6xCSL/include/csl_chiphal.h", line 265: error #171: expected a declaration
"C:/Program Files/C6xCSL/include/csl_chiphal.h", line 267: error #18: expected a ")"
"C:/Program Files/C6xCSL/include/csl_chiphal.h", line 416: warning #12-D: parsing restarts here after previous syntax error
"C:/Program Files/C6xCSL/include/csl.h", line 66: error #20: identifier "_IRQ_Dispatch" is undefined
"C:/Program Files/C6xCSL/include/csl.h", line 71: error #20: identifier "TIMER_Handle" is undefined
"..\dsk6713_aic23.h", line 26: error #20: identifier "MCBSP_Handle" is undefined
"..\dsk6713_aic23.h", line 27: error #20: identifier "MCBSP_Handle" is undefined
"../main.c", line 11: warning #225-D: function declared implicitly
"../main.c", line 12: warning #225-D: function declared implicitly
"../main.c", line 13: warning #225-D: function declared implicitly
"../main.c", line 21: warning #225-D: function declared implicitly
"../main.c", line 23: warning #225-D: function declared implicitly
"../main.c", line 24: warning #225-D: function declared implicitly
"../main.c", line 27: warning #225-D: function declared implicitly
6 errors detected in the compilation of "../main.c".

>> Compilation failure
gmake: *** [main.obj] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****