main.h

来自「LV4137显示驱动,自己做的,比较简单,但很实用,MCU用的是Myson MT」· C头文件 代码 · 共 69 行

H
69
字号
//----------------------------------------------------------------------------------------------------
// ID Code      : Main.h No.0000
// Update Note  : 
//
//----------------------------------------------------------------------------------------------------


//--------------------------------------------------
// Definations of Physical Boolean
//--------------------------------------------------
#define _TRUE                           1
#define _FALSE                          0
#define _ON                             1
#define _OFF                            0

//--------------------------------------------------
// Definitions of Bits
//--------------------------------------------------
#define _BIT0                           0x0001
#define _BIT1                           0x0002
#define _BIT2                           0x0004
#define _BIT3                           0x0008


//--------------------------------------------------
// Data Type Redefine
//--------------------------------------------------
typedef unsigned char BYTE;
typedef unsigned int  WORD;
typedef unsigned long DWORD;


#define SEC(x)                          (100 * x)

//----------------------------------------------------------------------------------------------------

#ifdef __MAIN__


//--------------------------------------------------
// Global Variables
//--------------------------------------------------
BYTE data pData[16];


//--------------------------------------------------
// Function Prototypes
//--------------------------------------------------
void NotUseFunc();

#else

//--------------------------------------------------
// Extern Global Variables
//--------------------------------------------------


//--------------------------------------------------
// Extern Function Prototypes
//--------------------------------------------------
extern void NotUseFunc();


#endif


//----------------------------------------------------------------------------------------------------

⌨️ 快捷键说明

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