Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-dsp
Fork of mbed-os-example-blinky by
Diff: main.cpp
- 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 +} +*/