DSP program for the Surfboard hardware (PCB to be open sourced) http://www.avbotz.com/ourauv/electrical/signal-processing/

Dependencies:   MODDMA SimpleIOMacros mbed-dsp mbed

Committer:
avbotz
Date:
Fri Aug 02 02:23:36 2013 +0000
Revision:
0:2381a319fc35
Initial commit. Not working. MODDMA makes DMA setup slow, and the mbed SPI peripheral corrupts data sometimes. I will write my own SPI and DMA classes and see how it goes.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
avbotz 0:2381a319fc35 1 #ifndef HYDRO_DSP_H__
avbotz 0:2381a319fc35 2 #define HYDRO_DSP_H__
avbotz 0:2381a319fc35 3
avbotz 0:2381a319fc35 4 #include "dsp.h"
avbotz 0:2381a319fc35 5
avbotz 0:2381a319fc35 6 #define NUM_CHANNELS 6//
avbotz 0:2381a319fc35 7 #define FILTER_ORDER 6
avbotz 0:2381a319fc35 8 #define BLOCK_SIZE 512
avbotz 0:2381a319fc35 9 #define TDOA_THRESH (32767 / 2)
avbotz 0:2381a319fc35 10 //#define TDOA_MIN_NUM_HITS 2
avbotz 0:2381a319fc35 11
avbotz 0:2381a319fc35 12 void setup_dsp();
avbotz 0:2381a319fc35 13 int find_timestamp_tdoa(q15_t* filtered);
avbotz 0:2381a319fc35 14
avbotz 0:2381a319fc35 15 extern arm_iir_lattice_instance_q15 iir_filter[NUM_CHANNELS];
avbotz 0:2381a319fc35 16 extern q15_t filtered[BLOCK_SIZE];
avbotz 0:2381a319fc35 17
avbotz 0:2381a319fc35 18 #endif