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
Diff: dma.h
- Revision:
- 0:2381a319fc35
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dma.h Fri Aug 02 02:23:36 2013 +0000 @@ -0,0 +1,32 @@ +#ifndef DMA_H__ +#define DMA_H__ + +#include "mbed.h" + +#include "IOMacros.h" + +#include "surfboard.h" +#include "hydro_dsp.h" +#include "MODDMA_cache.h" + +// TODO: check this value +#define TARGET_SPS (105496 / 10) // samples per second + +int setup_dma(); +void teardown_dma(); + +void event_irq_init(); + +void dma_error_cb(); +void get_data(); +void parse_data(); + +extern MODDMA_Cache dma; +extern MODDMA_Config* dma_conf; +//extern q15_t parsed[2][NUM_CHANNELS][BLOCK_SIZE]; +extern char parsed[2][NUM_CHANNELS][BLOCK_SIZE][3]; +extern char write_block; +extern int buf_index; +extern unsigned int read_blocks; + +#endif