#ifndef __DEFINE__
#define __DEFINE__



#define		ADC_CH_AN0	0
#define		ADC_CH_AN1	1
#define		ADC_CH_AN2	2
#define		ADC_CH_AN3	3
#define		ADC_CH_AN4	4
#define		ADC_CH_AN5	5
#define		ADC_CH_AN6	6
#define		ADC_CH_1_4VDD	7
#define		ADC_CH_AN8	8
#define		ADC_CH_AN9	9
#define		ADC_CH_AN10	10
#define		ADC_CH_AN11	11
#define		ADC_CH_AN12	12
#define		ADC_CH_AN13	13
#define		ADC_CH_AN14	14
#define		ADC_CH_AN15	15
#define		ADC_CH_AN16	16
#define		ADC_CH_AN17	17
#define		ADC_CH_AN18	18
#define		ADC_CH_AN19	19
#define		ADC_CH_AN20	20
#define		ADC_CH_AN21	21
#define		ADC_CH_AN22	22
#define		ADC_CH_OPO	23
#define		ADC_CH_GND	24

#define		ADC_Vref_1_3V	3
#define		ADC_Vref_2V	2
#define		ADC_Vref_3V	1
#define		ADC_Vref_VDD	0

#define		ADC_Fre_CPU_1	0
#define		ADC_Fre_CPU_2	1
#define		ADC_Fre_CPU_4	2
#define		ADC_Fre_CPU_8	3
#define		ADC_Fre_CPU_16	4
#define		ADC_Fre_CPU_32	5
#define		ADC_Fre_CPU_128	6
#define		ADC_Fre_CPU_FRC	7

#define	ENABLE 		1
#define	DISABLE		0

	typedef unsigned char  	u8;
	typedef unsigned short 	u16;
	typedef unsigned long  	u32;
	
	typedef signed char    	i8;
	typedef signed short int i16;
	typedef signed long    	i32;
	
	typedef struct __bits8_t
	{
		unsigned bit0	:1;
		unsigned bit1	:1;
		unsigned bit2	:1;
		unsigned bit3	:1;
		unsigned bit4	:1;
		unsigned bit5	:1;
		unsigned bit6	:1;
		unsigned bit7	:1;
	}bits8;

int number = 0;
int	ADC_NEGATIVE_FLAG = 0;	//ADC_offset负偏标志位
int	ADC_POSITIVE_FLAG = 0;	//ADC_offset正偏标志位	
int	ADC_TIM_FLAG = 0;		//ADC_offset校准标志位
volatile u16 Gui_AdcValue; 	//可仿真在view-watch窗口查看采集值

#endif