/* 
 * File:   extern.h
 * Author: hamilton
 *
 * Created on January 27, 2014, 5:42 PM
 */

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

#ifndef EXTERN_H
#define	EXTERN_H

extern volatile float time;

extern volatile int raw;


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

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

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

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

extern float  fTemp1;
extern float  fTemp2;


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


#endif	/* EXTERN_H */

