工具/软件:Code Composer Studio
尊敬的先生/女士:
我有一个用于 fir 滤波器的代码。 fir 滤清器的代码如下面所示
#include
#include
#include "dsk6713.h"
#include "dsk6713_AIC23.h"
const int low = 51;
const real64_T 低通[51]={
-0.0009190982084803、-0.002717696026614、-0.002486952759855、0.0036614383488、
0.01365092523065、0.0173511659011、0.007665306190435、-0.006554718869626、
-0.00769678403705、0.006105459421406、0.01387391574864、0.0003508617282953、
-0.01690892543669、-0.008905642749153、0.01744112950086、0.02074504452761、
-0.01229649425194、-0.03424086590958、-0.001034529605573、0.0477903055208、
0.02736303791485、-0.05937951883105、-0.08230702592923、0.06718690943287、
0.3100151770902、0.4300478803435、0.3100151770902、0.06718690943287、
-0.08230702592923、-0.05937951883105、0.02736303791485、0.0477903055208、
-0.001034529605573、-0.03424086590958、-0.01229649425194、0.02074504452761、
0.01744112950086、-0.008905642749153、-0.01690892543669、0.0003508617282953、
0.01387391574864、0.006105459421406、-0.00769678403705、-0.006554718869626、
0.007665306190435、0.0173511659011、0.01365092523065、0.003661438383488、
-0.002486952759855、-0.002717696026614、-0.0009190982084803};
UNION{uint32 combo;short channel[2];}temp;
uint32 Leftchannel、Rightchannel、data;
Int A、I;
void main()
{
DSK6713_AIC23_CodecHandle hCodec;
DSK6713_AIC23_Config 配置= DSK6713_AIC23_DEFAULTCONFIG;
DSK6713_IN_AICit();
DSK6713_DIP_init ();
hCodec=DSK6713_AIC23_openCodec (0、&CONFIG);
while (1)
{
if (DSK6713_DIP_Get (0)= 0)
{
浮点样本[50];
浮点结果= 0.0;
while (!DSK6713_AIC23_Read (hCodec、&data));
对于(a=low -1;a>=1;A--)
samples[a]=samples[a-1];
temp.combo=data;
samples[0]=(float) temp.channel[0];
for (a=0;<low;a++)
结果+= lowpass [a]*样本[a];
while (!DSK6713_AIC23_write (hCodec、(short) result));
}
其他
{
while (!DSK6713_AIC23_Read (hCodec、&data));
while (!DSK6713_AIC23_write (hCodec、data));
}
}
}
执行代码时、会显示以下错误
说明资源路径位置类型
#5无法打开源文件"DSK6713_AIC23.h" main.c /firreal line 3 C/C++ problem
#5无法打开源文件"csl.h" main.c /firreal 行3 C/C++问题
如何下载 DSK6713头文件和 csl.h 头文件