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:25:12 2013 +0000
Revision:
1:f69ec4c889ff
Parent:
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 MODDMA_CACHE_H__
avbotz 0:2381a319fc35 2 #define MODDMA_CACHE_H__
avbotz 0:2381a319fc35 3
avbotz 0:2381a319fc35 4 #include "mbed.h"
avbotz 0:2381a319fc35 5
avbotz 0:2381a319fc35 6 #include "MODDMA.h"
avbotz 0:2381a319fc35 7
avbotz 0:2381a319fc35 8 // TODO: why doesn't include surfboard work? we should not have to extern this.
avbotz 0:2381a319fc35 9 //#include "surfboard.h"
avbotz 0:2381a319fc35 10 extern Serial submarine;
avbotz 0:2381a319fc35 11
avbotz 0:2381a319fc35 12 class MODDMA_Cache : public MODDMA
avbotz 0:2381a319fc35 13 {
avbotz 0:2381a319fc35 14 public:
avbotz 0:2381a319fc35 15 MODDMA_Cache();
avbotz 0:2381a319fc35 16 uint32_t Setup(MODDMA_Config* config);
avbotz 0:2381a319fc35 17 void Reset(MODDMA_Config* config);
avbotz 0:2381a319fc35 18 protected:
avbotz 0:2381a319fc35 19
avbotz 0:2381a319fc35 20 private:
avbotz 0:2381a319fc35 21 void init();
avbotz 0:2381a319fc35 22 // These variables cache DMA controller parameters
avbotz 0:2381a319fc35 23 //LPC_GPDMACH_TypeDef cache;
avbotz 0:2381a319fc35 24 uint32_t DMACCSrcAddr, DMACCDestAddr, DMACCLLI, DMACCControl, DMACCConfig, DMACSync, DMACIntTCClear, DMACIntErrClr, DMAREQSEL;
avbotz 0:2381a319fc35 25 };
avbotz 0:2381a319fc35 26
avbotz 0:2381a319fc35 27 #endif