uint8_t *output;
} Uart;
-static int MillerDecoding(int bit)
+static RAMFUNC int MillerDecoding(int bit)
{
int error = 0;
int bitright;
uint8_t *output;
} Demod;
-static int ManchesterDecoding(int v)
+static RAMFUNC int ManchesterDecoding(int v)
{
int bit;
int modulation;
// triggering so that we start recording at the point that the tag is moved
// near the reader.
//-----------------------------------------------------------------------------
-void SnoopIso14443a(void)
+void RAMFUNC SnoopIso14443a(void)
{
// #define RECV_CMD_OFFSET 2032 // original (working as of 21/2/09) values
// #define RECV_RES_OFFSET 2096 // original (working as of 21/2/09) values
// As we receive stuff, we copy it from receivedCmd or receivedResponse
// into trace, along with its length and other annotations.
//uint8_t *trace = (uint8_t *)BigBuf;
- //int traceLen = 0;
+
+ traceLen = 0; // uncommented to fix ISSUE 15 - gerhard - jan2011
// The DMA buffer, used to stream samples from the FPGA
int8_t *dmaBuf = ((int8_t *)BigBuf) + DMA_BUFFER_OFFSET;