types.h
来自「EMU_FTAbox_ref441328_code_source ali m33」· C头文件 代码 · 共 54 行
H
54 行
/****************************************************************************
*
* ALi
*
* File: types.h
*
* Description: This file define the common data types which may be used
* throughout the project.
*
* History:
* Date Author Version Comment
* ==== ====== ======= =======
* 2006.1.13
*
****************************************************************************/
#ifndef _TYPES_H_
#define _TYPES_H_
#include <basic_types.h>
/*
* union which converts two 8bit values into 16bit value.
*/
typedef union
{
UINT16 uint_16;
struct
{
UINT8 uint80; /* LSB */
UINT8 uint81; /* MSB */
} uint_8;
} UINT16TO8;
/*
* union which converts two 16bit values into 32bit value.
*/
typedef union
{
UINT32 uint_32;
struct
{
UINT16 low_16;
UINT16 hi_16;
} uint_16;
} UINT32TO16;
/* Support macros */
#define itemsof(a) (sizeof(a) / sizeof(a[0]))
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?