main.h

来自「单片机直接驱动TFT液晶显示320x240图像不需要lcd驱动IC」· C头文件 代码 · 共 50 行

H
50
字号
#ifndef __MAIN_H
#define __MAIN_H

//;**********************************************************
#include <iom8515v.h>
#include <macros.h>

/*
//*************************************************************************
// macros
//*************************************************************************
*/
#define SWAP(x)   ((((x) & 0xFF) << 8) | (((x) >> 8) & 0xFF))

#define MSB(x)    (((x) >> 8) & 0xFF)
#define LSB(x)    ((x) & 0xFF)

#define FALSE   0
#define TRUE    (!FALSE)

/*
//*************************************************************************
// basic typedefs
//*************************************************************************
*/
typedef unsigned char bool;
typedef unsigned char uchar;
typedef unsigned int  uint;
typedef unsigned long ulong;

typedef unsigned char BOOL;
typedef unsigned char UCHAR;
typedef unsigned int  UINT;
typedef unsigned long ULONG;

typedef unsigned char u8;
typedef unsigned int  u16;
typedef unsigned long u32;

typedef unsigned char U8;
typedef unsigned int  U16;
typedef unsigned long U32;
///////////////////////////////////////////////////////////

void load_bmp_to_ram(void);
BOOL check_extram(void);
unsigned int BinBcd(unsigned char);

#endif

⌨️ 快捷键说明

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