Capstone project files
Dependencies: mbed-dsp mbed capstone_display_2
Diff: main.cpp
- Revision:
- 1:4fe83f71b889
- Parent:
- 0:3aae5d23d0db
- Child:
- 2:8ae58834937f
diff -r 3aae5d23d0db -r 4fe83f71b889 main.cpp --- a/main.cpp Wed Feb 05 02:12:20 2014 +0000 +++ b/main.cpp Wed Feb 05 02:49:00 2014 +0000 @@ -1,14 +1,13 @@ #include "mbed.h" #include "arm_math.h" -#include "cmsis_dsp/FilteringFunctions/arm_fir_f32.c" +#include "arm_fir_f32.c" //the full path is cmsis_dsp/FilteringFunctions/arm_fir_f32.c DigitalOut myled(LED1); int main() { + //to initialize the filter stuff use the kind of form below (see line 104 in the arm_fir_f32.c file for documentation) + //arm_fir_instance_f32 S = {numTaps, pState, pCoeffs}; + while(1) { - myled = 1; - wait(0.2); - myled = 0; - wait(0.2); } }