toolbox.h
来自「This network protcol stack,it is very s」· C头文件 代码 · 共 26 行
H
26 行
#ifndef _TOOLBOX_H_
#define _TOOLBOX_H_
#include "App_Target.h"
#include "DigiType.h"
/* Place NR before a function if the return value
from the function is not used - avoids using a
pragma to switch of compiler warnings. */
#define NR (void)
/* Exists in the MAC library, but we can also use them in the application */
void FLib_MemCpy(void *, void *, uint8_t);
void FLib_MemCmp(void *, void *, uint8_t);
/* Almost ANSI compliant versions of memcpy/memcmp
Length (l) can only be in the range 0-255
memcmp returns 0 if x==y and 1 if x!=y. Real memcmp
would return -1 if x<y, 1 if x>y, and 0 if x==y. */
#define memcpy(x,y,l) (void)FLib_MemCpy((x),(y),(l))
#define memcmp(x,y,l) (! FLib_MemCmp((x),(y),(l)))
#endif // _TOOLBOX_H_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?