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

MODDMA_cache.h

Committer:
avbotz
Date:
2013-08-02
Revision:
0:2381a319fc35

File content as of revision 0:2381a319fc35:

#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