⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 define.h

📁 基于averlogic公司的AL320的AUO 2.4" SRGB屏的驱动程序
💻 H
字号:
/*--------------------------------------------------------------------------
DEFINE.H
Header file for DEFINE

History:
07/20/2006 : First Version V0.1 ---HsinChu Office
09/15/2006 : Version 0.2 ---HsinChu Office
			 1.Increase AL320EVB and AL320DVB MCU I/O Port define.

Copyright (c) 1998-2006 AverLogic Inc
All rights reserved.
--------------------------------------------------------------------------*/
#ifndef __DEFINE_H__
#define __DEFINE_H__

#define TRUE  1
#define FALSE 0

// Define AL320DVB or AL320EVB
#define AL320EVB
//#define AL320DVB
#define AL320NEWEVB
#define CHIP_AL320B
#define littel_IR_remort

// MCU I/O Pin define
#ifdef AL320EVB //AL320EVB

sbit SHDN_1     = P1^7;
sbit DIMMING    = P1^7;
sbit PANEL_ON   = P2^1;
sbit GRST       = P1^3;
//sbit AUDIO_MUTE = P1^4;
//sbit AUDIO_OFF  = P1^5;
#ifdef AL320NEWEVB

sbit GREST=P1^3;
//sbit SHDB=P2^1;
sbit BL_EN=P1^2;
sbit TFT_CS=P1^1;
sbit LED1=P3^6;
sbit LED2=P3^7;

#else

sbit LED1=P2^0;
sbit LED2=P2^1;
//sbit LED3=P2^2;
sbit LED4=P2^3;
sbit LED5=P2^4;
sbit LED6=P2^5;
sbit LED7=P2^6;
sbit LED8=P2^7;

#endif

#else			//AL320DVB

sbit SHDN_1=P1^3;
sbit SHDN_2=P1^4;
sbit DIMMING=P1^5;
sbit PANEL_ON=P2^1;
sbit GRST=P1^3;

sbit LED1=P2^4;
sbit LED2=P2^5;
sbit LED3=P2^6;
sbit LED4=P2^7;

#endif

// Definition of EEPRom 

// Bank
#define BANK0  0
#define BANK1  1
#define BANK2  2
#define BANK3  3

//Parameter define
#define CONTRAST_SAVE       0x00
#define BRIGHTNESS_SAVE     0x01
#define COLOR_SAVE          0x02
#define BEEP_SAVE           0x03
#define EVB_FIRST_POWER_ON	0x7f

⌨️ 快捷键说明

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