#ifndef _TypeDef_h_
#define _TypeDef_h_

#define    BSET(x,y)    x|=(1<<y)	//ÖÃ1
#define    BCLR(x,y)    x&=~(1<<y)	//ÖÃ0

typedef 
  union
  {
	  struct
	  {
	      unsigned b0:1;
	      unsigned b1:1;
	      unsigned b2:1;
	      unsigned b3:1;	
	      unsigned b4:1;
	      unsigned b5:1;	
	      unsigned b6:1;
	      unsigned b7:1;		
	  }one;
	  unsigned char all;
  }bits;	

#endif