📄 std.h
字号:
// Define data types
#ifndef _STD_H_
#define _STD_H_
#define S8 signed char
#define S16 signed short
#define S32 signed long
#define U8 unsigned char
#define U16 unsigned short
#define U32 unsigned long
#define REG8 volatile unsigned char
#define REG16 volatile unsigned short
#define REG32 volatile unsigned long
// Setup the current limits and size type defs for the defined processor.
// This will define constants for the sizes of integral types, with
// minimums and maximum values allowed for the define.
// Note: mins and maxs will be different for different processors.
// Size (Bytes) Alignment (Bytes)
//
// size casting
typedef char int8; // 1 1
typedef unsigned char uint8; // 1 1
typedef short int int16; // 2 2
typedef unsigned short uint16; // 2 2
typedef long int int32; // 4 4
typedef unsigned long uint32; // 4 4
// generic names for size types
typedef signed char schar; // 1 1
typedef unsigned char uchar; // 1 1
typedef short int sshort; // 2 2
typedef unsigned short ushort; // 2 2
typedef unsigned int uint; // 2 2
typedef short sint; // 2 2
typedef long int slint; // 4 4
typedef long int slong; // 4 4
typedef unsigned long ulint; // 4 4
typedef unsigned long ulong; // 4 4
typedef short std_Boolean;
// max/mins
#define USHORT_MAX 65535 // The maximum value of a uint16 variable.
/*
//添加typDef.h中的内容
#define NULL 0
#define EOF (-1)
#define FALSE 0
#define TRUE 1
#define NONE (-1)
#define EOS '\0'
// return status values
#define OK 0
#define ERROR (-1)
*/
/*
typedef char INT8;
typedef short INT16;
typedef int INT32;
typedef unsigned char INT8U;
typedef unsigned short INT16U;
typedef unsigned int INT32U;
typedef unsigned char UCHAR;
typedef unsigned short USHORT;
typedef unsigned int UINT;
typedef unsigned long ULONG;
typedef int BOOL;
typedef int STATUS;
typedef int ARGINT;
*/
#endif // _STD_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -