/*
* main.c
*/
#include "dsk6713.h"
#include "dsk6713_aic23.h"
#include "stdlib.h"
#include "math.h"
// Codec configuration settings
DSK6713_AIC23_Config config = { \
0x0017, /* 0 DSK6713_AIC23_LEFTINVOL Left line input channel volume */ \
0x0017, /* 1 DSK6713_AIC23_RIGHTINVOL Right line input channel volume */\
0x01f9, /* 2 DSK6713_AIC23_LEFTHPVOL Left channel headphone volume */ \
0x01f9, /* 3 DSK6713_AIC23_RIGHTHPVOL Right channel headphone volume */ \
0x0011, /* 4 DSK6713_AIC23_ANAPATH Analog audio path control */ \
0x0000, /* 5 DSK6713_AIC23_DIGPATH Digital audio path control */ \
0x0000, /* 6 DSK6713_AIC23_POWERDOWN Power down control */ \
0x0043, /* 7 DSK6713_AIC23_DIGIF Digital audio interface format */ \
0x0001, /* 8 DSK6713_AIC23_SAMPLERATE Sample rate control */ \
0x0001 /* 9 DSK6713_AIC23_DIGACT Digital interface activation */ \
};
void main()
{
DSK6713_AIC23_CodecHandle hCodec;
Int16 OUT_L, OUT_R;
Uint32 IN_L;
// Initialize BSL
DSK6713_init();
//Start codec
hCodec = DSK6713_AIC23_openCodec(0, &config);
// Set frequency to 48KHz
DSK6713_AIC23_setFreq(hCodec, DSK6713_AIC23_FREQ_48KHZ);
for(;;)
{
// Read sample from the left channel
while (!DSK6713_AIC23_read(hCodec, &IN_L));
// Feeding the input directly to output you can add effects here
OUT_L = IN_L;
OUT_R = IN_L;
// Send sample, first left next right channel
while (!DSK6713_AIC23_write(hCodec, OUT_L));
while (!DSK6713_AIC23_write(hCodec, OUT_R));
}
//DSK6713_AIC23_closeCodec(hCodec); // Codec close is unreachable
}
ERROR
Description Resource Path Location Type
Unknown main.c Unknown Unknown org.eclipse.core.internal.resources.Marker@b6539622 is not of a displayable type
Unknown c6713_audio Unknown Unknown org.eclipse.core.internal.resources.Marker@a443c6c3 is not of a displayable type
Unknown c6713_audio Unknown Unknown org.eclipse.core.internal.resources.Marker@a443c6c4 is not of a displayable type
Invalid project path: Include path not found (C:\ti\C6xCSL\include). c6713_audio pathentry Path Entry Problem
Invalid project path: Include path not found (C:\ti\DSK6713\c6000\dsk6713\include). c6713_audio pathentry Path Entry Problem
Unknown c6713_audio Unknown Unknown org.eclipse.core.internal.resources.Marker@a443c6c1 is not of a displayable type
console
**** Build of configuration Debug for project c6713_audio ****
"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../main.c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv6/tools/compiler/c6000_7.4.18/bin/cl6x" -mv6700 -g --define=c6713 --define=CHIP_6713 --include_path="C:/ti/ccsv6/tools/compiler/c6000_7.4.18/include" --include_path="C:/C6713/c6713_audio/include" --include_path="C:/DSK6713/DSK6713/c6000/dsk6713/include" --include_path="C:/TI/DSK6713/c6000/dsk6713/include" --include_path="C:/TI/C6xCSL/include" --display_error_number --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="main.d" "../main.c"
>> Compilation failure
subdir_rules.mk:7: recipe for target 'main.obj' failed
"C:/C6713/c6713_audio/include/dsk6713.h", line 20: fatal error #5: could not open source file "csl.h"
1 fatal error detected in the compilation of "../main.c".
Compilation terminated.
gmake: *** [main.obj] Error 1
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
Project EXplorer
c6713_audio
Includes
"C:\C6713\c6713_audio\include"
"C:\DSK6713\DSK6713\c6000\dsk6713\include"
"C:\TI\C6xCSL\include"
Debug
Include
C6713.cmd
main.c
TMS320C6713.ccxml
i inclide path but error not remove