⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 compiler.h

📁 atmel ARM7单片机at91sam7x256软件中断实验程序
💻 H
字号:

#ifndef _COMPILER_H_
#define _COMPILER_H_

/*_____ I N C L U D E S ____________________________________________________*/


/*_____ M A C R O S ________________________________________________________*/

/***  Type definition ***/

typedef unsigned char      Byte;
typedef unsigned char      Uchar;
typedef unsigned short     Uint16;
typedef short              Int16;
typedef unsigned  int      Uint32;
typedef int                Int32;
typedef unsigned char      Bool;

typedef union 
{
  Uint32 l;
  Uint16 w[2];
  Byte   b[4];
} Union32;

typedef union 
{

  Uint16 w;
  Byte   b[2];
} Union16;



/***  General purpose defines ***/

#define FALSE   0
#define TRUE    1
#define KO      0
#define OK      1
#define OFF     0
#define ON      1
#define CLR     0
#define SET     1

#define LOW(U16)   ((Byte)U16)
#define HIGH(U16)  ((Byte)(U16>>8))


/*_____ D E F I N I T I O N ________________________________________________*/



/*_____ D E C L A R A T I O N ______________________________________________*/


#endif /* _COMPILER_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -