compiler.h

来自「CanOpen的源代码」· C头文件 代码 · 共 24 行

H
24
字号
#ifndef _COMPILER_H_
#define _COMPILER_H_

#define NULL ((void*)0)

typedef unsigned char   uchar ;
typedef unsigned char   byte ;  // neu
typedef unsigned int    word ; // neu
typedef unsigned long   ulong ;


#define APIFUNCATTR
#define	EXPORTATTR
#define VERSION2UNSIGNED8(main,sub) ((unsigned char)(((main) & 7) << 5) | ((sub) & 0x1f))
// Anzahl der Receive-Messages
#define MAX_RCVMSG 16

/*** fehlende Standardmakros ***/
#ifndef min
  #define min(a,b)  ((a) < (b) ? (a) : (b))
  #define max(a,b)  ((a) > (b) ? (a) : (b))
#endif

#endif

⌨️ 快捷键说明

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