?? pio.h
字號:
/**************************************************************************
(C)Copyright Cheertek Inc. 2002-2003,
D300, all right reserved.
Product : VCD25 Firmware
Date : 1997.2.9
Author : Cheertek (D300 TCH)
Purpose : PIO declaration
Sources : pio.h
****************************************************************************/
#ifndef __PIO_H__
#define __PIO_H__
/////////////////////////
// PANEL module usage
#ifdef _WINDVD
// SFRs of Turbo uP
sfr EIP = 0xF8;
sfr EIE = 0xE8;
sfr T2MOD = 0xC9;
sfr TA = 0xC7;
sfr PMR = 0xC4;
sfr RAMCON = 0xC3;
sfr SBUF1 = 0xC1;
sfr SCON1 = 0xC0;
sfr P5CON = 0xAF;
sfr P5 = 0xA7;
sfr P4 = 0xA6;
sbit RI1 = 0xC0;
sbit TI1 = 0xC1;
sbit EWT = 0xD9;
sbit WTRF = 0xDA;
sbit EWDI = 0xEC;
//LJY2.37, port KCHong's code
sfr MONITOR_RUN_PROGRAM = 0xc3; //Chuan0.86, used to control PC to 4K SRAM
// ** TCH.277a; begin...
#ifdef EXT_IO
extern BYTE __sbVFDcs;
extern BYTE __sbVFDsck;
#endif // #ifdef EXT_IO
// ** TCH.277a; end...
//Kevin0.91, I2C sck/sda may be shared among panel, panel key scan & EEPROM
//#ifndef I2C_USING_P4 //use P3
sbit __sbI2Csclk = P3 ^ 4;
sbit __sbI2Csdat = P3 ^ 5;
#ifdef SUPPORT_PORTABLE_PROJECT
// for DV9990 & 9970
//sbit __sbVideosw = P1 ^ 5; //added for portable video sw.
//sbit __sbKEYfour = P1 ^ 7;
sbit __sbInSwitch = P1 ^ 6;// Added for portable, KCHong, 20031117
#endif
#ifdef TFT_CONTROL
sbit __sbTftreset = P1 ^ 5;
#ifndef SERIAL_DEBUG
sbit __sbTftud = P3 ^ 0;
sbit __sbTftlr = P3 ^ 1;
#endif
//#ifdef SUPPORT_AVIN //yfxiao1215 ,for pdv288
sbit __sbAvIn = P1 ^ 7;// Added for portable, KCHong, 20031117
//#endif
#endif
//#endif
#endif // _WINDVD
// ** 0.40; end...
#ifdef AUTO_UPGRADE_PIO
// wyc2.80, remove MSDAV / MSAV 3.0 system board control code.
sbit __btA15 = P1 ^ 4;
sbit __btA16 = P1 ^ 5;
sbit __btA17 = P1 ^ 6;
sbit __btA18 = P1 ^ 7;
sbit __sbLED0= P1 ^ 0; // VFD_CS pin
sbit __sbLED1= P1 ^ 1; // VFD_SDA pin
sbit __sbLED2= P1 ^ 2; // VFD_SCK pin
#define ACTIVE_LOW // these pin are active low
// usage for LED to light or dark feature
#ifdef ACTIVE_HIGH
#define LIGHT 1
#define DARK 0
#endif // #ifdef ACTIVE_HIGH
#ifdef ACTIVE_LOW
#define LIGHT 0
#define DARK 1
#endif // #ifdef ACTIVE_LOW
#endif // AUTO_UPGRADE_PIO
#endif // __PIO_H__
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -