util.h

来自「经典s3c44b0xBios引导程序代码内含详细说明 烧写步骤 1>」· C头文件 代码 · 共 17 行

H
17
字号
/************************************************************
 * File name	: Util.h									*
 * By 			: hugang, hgx2000@mail.china.com			*
 ************************************************************/

#ifndef __UTIL_H__
#define __UTIL_H__

unsigned int getpackedlong(void *lbuf);
unsigned short csum(void *dp, unsigned short count);
unsigned short swapw(unsigned short w);
unsigned int swapl(unsigned int lw);

#define READ_PACKED(x) getpackedlong((void *)(&(x)))

#endif

⌨️ 快捷键说明

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