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: MODDMA_cache.h
- Revision:
- 0:2381a319fc35
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MODDMA_cache.h Fri Aug 02 02:23:36 2013 +0000 @@ -0,0 +1,27 @@ +#ifndef MODDMA_CACHE_H__ +#define MODDMA_CACHE_H__ + +#include "mbed.h" + +#include "MODDMA.h" + +// TODO: why doesn't include surfboard work? we should not have to extern this. +//#include "surfboard.h" +extern Serial submarine; + +class MODDMA_Cache : public MODDMA +{ +public: + MODDMA_Cache(); + uint32_t Setup(MODDMA_Config* config); + void Reset(MODDMA_Config* config); +protected: + +private: + void init(); + // These variables cache DMA controller parameters + //LPC_GPDMACH_TypeDef cache; + uint32_t DMACCSrcAddr, DMACCDestAddr, DMACCLLI, DMACCControl, DMACCConfig, DMACSync, DMACIntTCClear, DMACIntErrClr, DMAREQSEL; +}; + +#endif