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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MODDMA_cache.h Source File

MODDMA_cache.h

00001 #ifndef MODDMA_CACHE_H__
00002 #define MODDMA_CACHE_H__
00003 
00004 #include "mbed.h"
00005 
00006 #include "MODDMA.h"
00007 
00008 // TODO: why doesn't include surfboard work? we should not have to extern this.
00009 //#include "surfboard.h"
00010 extern Serial submarine;
00011 
00012 class MODDMA_Cache : public MODDMA
00013 {
00014 public:
00015     MODDMA_Cache();
00016     uint32_t Setup(MODDMA_Config* config);
00017     void Reset(MODDMA_Config* config);
00018 protected:
00019 
00020 private:
00021     void init();
00022     // These variables cache DMA controller parameters
00023     //LPC_GPDMACH_TypeDef cache;
00024     uint32_t DMACCSrcAddr, DMACCDestAddr, DMACCLLI, DMACCControl, DMACCConfig, DMACSync, DMACIntTCClear, DMACIntErrClr, DMAREQSEL;
00025 };
00026 
00027 #endif