Elektronikprojekt Grupp 13 / Mbed OS test_fft_grp13

Dependencies:   mbed-dsp

Fork of mbed-os-example-blinky by Elektronikprojekt Grupp 13

Revision:
66:866bf1606317
Parent:
64:92745a08320c
Child:
67:8de1eb1c4974
--- a/main.cpp	Mon Apr 10 12:54:53 2017 +0000
+++ b/main.cpp	Mon Apr 10 14:07:43 2017 +0000
@@ -2,6 +2,20 @@
 #include "arm_math.h"
 #include "arm_const_structs.h"
 
+
+q15 testData1[] = {10, 20, 30, 40, 50, 60, 70, 80, 10, 20, 30, 40, 50, 60, 70, 80,10, 20, 30, 40, 50, 60, 70, 80, 10, 20, 30, 40, 50, 60, 70, 80};
+q15 testData2[] = {10, 20, 30, 40, 50, 60, 70, 80, 10, 20, 30, 40, 50, 60, 70, 80,10, 20, 30, 40, 50, 60, 70, 80, 10, 20, 30, 40, 50, 60, 70, 80};
+q31 finalData[];
+int len1 = length(testData1);
+int len2 = length(testData2);
+q15 *p1 = &testData1(0);
+q15 *p2 = &testData2(0);
+q15 *p3 = &finalData(0);
+
+arm_correlate_q15(pi,len1,p2,len2,p3);
+
+
+/*
 const int FFT_SIZE = 32;
 int sampleCounter;
 float samples[FFT_SIZE*2];
@@ -50,4 +64,5 @@
         }
 
     }
-} 
\ No newline at end of file
+} 
+*/