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
dma.h
- Committer:
- avbotz
- Date:
- 2013-08-02
- Revision:
- 1:f69ec4c889ff
- Parent:
- 0:2381a319fc35
File content as of revision 1:f69ec4c889ff:
#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