#include <dsp.h>
#include "config.h"
#include "can.h"
#include "types.h"

volatile float time = 0.0;
volatile float time_relative = 0.0;

volatile int outSamples[FILTERSAMPLES];

int raw = 0;  //indicates if output should be raw counts or engineering units

volatile int Pressure_ADC[FILTERSAMPLES];
volatile int I_Flow_ADC[FILTERSAMPLES];

//volatile int Pressure_Buf[REPORTINGSAMPLES];
//volatile int I_Flow_Buf[REPORTINGSAMPLES];

unsigned int BufferA[FILTERSAMPLES*NUMAIO] __attribute__((space(dma),aligned(64)));
unsigned int BufferB[FILTERSAMPLES*NUMAIO] __attribute__((space(dma),aligned(64)));


float  DiffPressure;
float FlowRate_1;
float FlowTotal_1 = 0.0;
float FlowRate_2;
float FlowTotal_2 = 0.0;

unsigned long paddlewheel_cnts = 0;

unsigned int uiTemp1;

int iTemp1;
int iTemp2;
int iTemp3;
int iTemp4;

float  fTemp1;
float  fTemp2;

