hal_types.h

来自「基于ARM和uC/OS-II实现的串口控制台」· C头文件 代码 · 共 30 行

H
30
字号
#ifndef __HAL_TYPES_H__
#define __HAL_TYPES_H__

typedef signed char  hal_8;
typedef unsigned char  hal_u8;
typedef signed short hal_16;
typedef unsigned short hal_u16;
typedef signed long hal_32;
typedef unsigned long hal_u32;


/* Memory buffer */
typedef struct __mbuf  
{
    hal_u8 dat[255];
    hal_u16 dlci;
    hal_u8 frm_type;
    hal_u16 len;
    hal_u32 daddr;
    hal_u8 tag;
} mbuf;


typedef struct stat
{
	int tmp;
}stat;

#endif /* __HAL_TYPES_H__ */

⌨️ 快捷键说明

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