#ifndef ACZ702_LIB_COMMON_H_
#define ACZ702_LIB_COMMON_H_


//ϵͳͷļ
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>


//Xilinxͷļ
#include "xil_types.h"
#include "sleep.h"
#include "xparameters.h"
#include "xil_exception.h"
#include "xscugic.h"
#include "xscutimer.h"


//ACZ702ͷļ
#include "ISR.h"
#include "SCU_GIC.h"
#include "SCU_TIMER.h"

#include "lcd.h"
#include "PS_GPIO.h"
#include "Touch.h"
#include "SII9022.h"
#include "ADC_GPIF.h"

//ûͷļ


//û궨
#define	CPU_CLK_HZ	XPAR_PS7_CORTEXA9_0_CPU_CLK_FREQ_HZ	//CPUʱƵ(λHz)
#define INPUT		1
#define OUTPUT		0
#define	REG8		8
#define	REG16		16

//û
#define ADC_DATA_BASE		0x01800000
#define ADC_DATA_LENGTH		1024	//ADCݴ洢򳤶

#define KEY_S1 47

#define ADC_ROUND_DONE	(Get_Trans_Status()&1)
#define ADC_TRIG_DONE	(Get_Trans_Status()&2)

#endif /* ACZ702_LIB_COMMON_H_ */
