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

📄 file_util.h

📁 能够在单片机等小型处理器上使用的fat16文件系统
💻 H
字号:
//-----------------------------------------------------------------------------
// Header File Preprocessor Directive
//-----------------------------------------------------------------------------

#ifndef _UTIL_H_
#define _UTIL_H_

#include "file_header.h"

//-----------------------------------------------------------------------------
// Function Prototypes
//-----------------------------------------------------------------------------

extern DWORD htonl(DWORD d);
extern unsigned htons(unsigned w);
#define ntohs htons
#define ntohl htonl

//-----------------------------------------------------------------------------
// Variable Prototype
//-----------------------------------------------------------------------------

char* Str_Token(char* str);

//-----------------------------------------------------------------------------
// Macros Prototypes
//-----------------------------------------------------------------------------

#define min(a,b) (((a)<(b))?(a):(b))
#define max(a,b) (((a)>(b))?(a):(b))

#define msb(x) (((x)>>8)&0x000000FFul)
#define lsb(x) ((x)&0x000000FFul)

#endif

⌨️ 快捷键说明

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