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

📄 toolbox.h

📁 This network protcol stack,it is very strong and powerful!
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -