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

volatile float time;

volatile int raw = 0;  //Set by RS-232 character recieve interrupt, and effects if counts or volts are sent for the analog channels.

volatile int AN0_ADC;
volatile int AN1_ADC;
volatile int AN10_ADC;
volatile int AN11_ADC;
volatile int AN16_ADC;
volatile int AN17_ADC;
volatile int AN18_ADC;
volatile int AN19_ADC;

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

unsigned int ECAN1MSGBUF[ECAN1_MSG_BUF_LENGTH][8] __attribute__((space(dma),aligned(ECAN1_MSG_BUF_LENGTH*16)));

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

float  fTemp1;
float  fTemp2;


CANmsg message[ECAN1_NUM_TX_BUFFERS-1];  //One message structure for each buffer
