finally....
1...delete the mbed lybrary..and add this "http://mbed.org/projects/libraries-testing/svn/beta?rev=31".
2...add 'DSP' library.
my example:
- include "mbed.h"
- include "arm_math.h"
LocalFileSystem local("local");
Serial pc(USBTX, USBRX);
DigitalOut pinout(p7);
int main() {
float32_t In[1024];
float32_t Out[1031];
float32_t Ca[8]={ -0.0758, -0.0296, 0.4976, 0.8037, 0.2979, -0.0992, -0.0126, 0.0322};
float32_t Cd[8]={ -0.0322, -0.0126, 0.0992, 0.2979, -0.8037, 0.4976, 0.0296, -0.0758};
uint32_t I=1024;
uint32_t f=8;
FILE *file_0 = fopen("/local/y.txt", "r");
if (file_0 == NULL) {
error("Could not open file");
}
for (int i=0;i<=1023;i++){
fscanf(file_0,"%f",(In+i));
}
fclose(file_0);
arm_conv_f32(In,I,Cd,f,Out); convolution save in Out
FILE *file_1 = fopen("/local/file_1.txt", "w");
for (int i=0;i<1031;i++){
fprintf(file_1,"%f ",Out[i]);
}
fclose(file_1);
}
Hi Everybody
I am working with the DSP library but I cannot figure out how to get working the arm_conv functions. If somebody could post a small example it will be of big help.
Thank you so much