?? platform.h
字號:
/* **********************************************************************
Copyright (c) 2002-2006 Beyond Innovation Technology Co., Ltd
All rights are reserved. Reproduction in whole or in parts is
prohibited without the prior written consent of the copyright owner.
----------------------------------------------------------------------
Module: PLATFORM.H
Purpose: Interface of PLATFORM module.
Version: 0.15 03:14PM 2006/04/26
Compiler: Keil 8051 C Compiler v8.01
Reference:
[1] BIT1611B Data Sheet Version 1.0, 2005-11-10,
Beyond Innovation Technology
[2] BIT5101 8051 MICROCONTROLLER WITH 64K FLASH AND ISP Version 0.01,
2004/10/25, Beyond Innovation Technology
[3] TP2804 8051 MICROCONTROLLER WITH 64K FLASH AND ISP Version 1.2,
June 2004, TOPRO
----------------------------------------------------------------------
Modification:
R0.01 11:32AM 2005/11/17 Jeffrey Chang
Reason:
1. Original.
Solution:
----------------------------------------------------------------------
R0.02 07:43PM 2005/11/21 Jeffrey Chang
Reason:
1. To implement BIT1611B IR decoder module.
2. To revised BIT1611B video decoder path.
3. To fix I2C GetACK timing issue.
Solution:
----------------------------------------------------------------------
R0.03 04:43PM 2005/11/30 Jeffrey Chang
Reason:
1. DMO01010101 v0.05 supports variable resistor adjustment.
Solution:
----------------------------------------------------------------------
R0.04 06:20PM 2005/12/05 Jeffrey Chang
Reason:
1. DMO01010100 v0.06 supports Linear, Nonlinear and Bypass display modes.
Solution:
----------------------------------------------------------------------
R0.05 08:32PM 2005/12/27 Jeffrey Chang
Reason:
1. DMO01010100 v0.09 revised for 20051224 new recommended setting.
Solution:
----------------------------------------------------------------------
R0.06 16:45PM 2006/01/03 Lily Huang
Reason:
1. DMO06015600 v0.10 revised for VERTEX AUO 8.5" panel.
Solution:
----------------------------------------------------------------------
R0.07 07:09PM 2006/02/06 Jeffrey Chang
Reason:
1. DMO01013300 v0.12 revised for HANNSTAR HSD070I651-A (7.0") panel.
Solution:
----------------------------------------------------------------------
R0.08 01:16PM 2006/02/10 Jeffrey Chang
Reason:
1. To revised HASSIG_FLAG at BIT0 and NOSIG_FLAG at BIT1.
Solution:
----------------------------------------------------------------------
R0.09 11:22AM 2006/04/18 Jeffrey Chang
Reason:
1. DMO04093300 v0.14 revised for HANNSTAR HSD070I651-A (7.0") panel.
Solution:
----------------------------------------------------------------------
[JC010] 02:28PM 2006/04/25 Jeffrey Chang
Reason:
1. DMO01010100BSI v0.14 fixed the OSD Image Retention issue.
Solution:
----------------------------------------------------------------------
[JC011] 03:12PM 2006/04/26 Jeffrey Chang
Reason:
1. DMO01010100BSI v0.15 forced the EEPROM internal reset by software.
Solution:
----------------------------------------------------------------------
R0.12 11:12AM 2006/08/17 Lily Huang
Reason:
1. DMO04015800 v0.16 revised for TOPPOLY TD025THEB2 (2.5") panel.
Solution:
********************************************************************** */
#ifndef _PLATFORM_H_
#define _PLATFORM_H_
/* ------------------------------------
Header Files
------------------------------------ */
#include "common.h"
/* ------------------------------------
Macro Definitions
------------------------------------ */
#undef EXTERN
#ifdef _PLATFORM_C_
#define EXTERN
#else
#define EXTERN extern
#endif
/* ::::::::::::::::::::::::::::::::::::
VD Auto Color Standard detection
:::::::::::::::::::::::::::::::::::: */
#define AUTO_STD
/* ::::::::::::::::::::::::::::::::::::
BACKLIGHT Configuration
:::::::::::::::::::::::::::::::::::: */
#define BACKLIGHT_NEGATIVE 0
#define BACKLIGHT_POSITIVE 1
// To specify TFT-LCD panel backlight inverter control polarity
#define BACKLIGHT_CFG BACKLIGHT_NEGATIVE
/* ::::::::::::::::::::::::::::::::::::
Code Release Configuration
:::::::::::::::::::::::::::::::::::: */
#define CODE_RELEASE 0
/* ::::::::::::::::::::::::::::::::::::
VP Verification
:::::::::::::::::::::::::::::::::::: */
#define VP_AUTO_POSITION_MECHANISM 0
#define VP_AUTO_TUNING_MECHANISM 0
/* ::::::::::::::::::::::::::::::::::::
MCU Configuration
:::::::::::::::::::::::::::::::::::: */
#define BIT5101 1 // BITEK BIT5101 64K ROM + 256+256 RAM
#define TP2804 2 // TOPRO TP2804 64K ROM + 256+256 RAM
#ifndef MCU_CFG
// PROJECT is defined in UV2 file !
#error PLATFORM.H - Invalid MCU_CFG !
#endif
#include "bit5101.H"
/* ::::::::::::::::::::::::::::::::::::
Clock Mode Configuration
:::::::::::::::::::::::::::::::::::: */
#define CLOCK_X6 6 // Turbo (6 clocks) mode
#define CLOCK_X12 12 // Standard (12 clocks) mode
#define CLOCK_CFG CLOCK_X12
/* ::::::::::::::::::::::::::::::::::::
MCU Crystal Frequency Configuration
:::::::::::::::::::::::::::::::::::: */
#define XTAL_11200KHZ 112000 // 11.2000 MHz
#define XTAL_14318KHZ 143180 // 14.3180 MHz
#define XTAL_22118KHZ 221184 // 22.1184 MHz
#define XTAL_24576KHZ 245764 // 24.5760 MHz
#define XTAL_27000KHZ 270000 // 27.0000 MHz
/* ::::::::::::::::::::::::::::::::::::
MCU Interrupt Configuration
:::::::::::::::::::::::::::::::::::: */
#define EXT_INT_NONE 0 // Disable External Interrupt !
#define EXT_INT0 1
#define EXT_INT1 2
/* ::::::::::::::::::::::::::::::::::::
Watchdog Timer Configuration
:::::::::::::::::::::::::::::::::::: */
#define WDT_OFF 0
#define WDT_ON 1
#define WDT_CFG WDT_OFF
/* ::::::::::::::::::::::::::::::::::::
MCU Memory Model Configuration
:::::::::::::::::::::::::::::::::::: */
#define CODE code
#define IDATA idata
#define XDATA xdata
/* ::::::::::::::::::::::::::::::::::::
AUDIO Configuration
:::::::::::::::::::::::::::::::::::: */
#define AUDIO_00_NONE 0x00
#define AUDIO_01_TDA7053A 0x01 // Philips TDA7053A
#define AUDIO_02_TDA8552TS 0x02 // Philips TDA8552TS
#define AUDIO_03_TPA6011A4 0x03 // TI TPA6011A4
#define AUDIO_04_2N3904 0x04 // Vertex
#define AUDIO_05_4052 0x05
#define AUDIO_06_PT2259 0x06 // PTC PT2259
#define AUDIO_07_LM4832 0x07 // NS LM4832
/* ::::::::::::::::::::::::::::::::::::
EEPROM Configuration
:::::::::::::::::::::::::::::::::::: */
#define EEPROM_24LC04B 1 // [10]3-63 Microchip
#define EEPROM_AT24C04 2 // [11] Atmel
#define EEPROM_AT24C08 3 // [11] Atmel
#define EEPROM_AT24C16 4 // [11] Atmel
#define EEPROM_AT24C32 5 // [12]2-79 Atmel AT24C32
#define EEPROM_AT24C64 6 // [12]2-79 Atmel AT24C64
#define EEPROM_AM24LC02 7 // [12] ATC AM24LC02
#define EEPROM_IS24C02 8 // [21] ISSI IS24C02
#define EEPROM_IS24C04 9 // [21] ISSI IS24C04
#define EEPROM_PCF85116 10 // [9] Philips
#define EEPROM_TU24C02 11 // [27] Turbo IC TU24C02
/* ::::::::::::::::::::::::::::::::::::
EEPROM Write Mode Configuration
:::::::::::::::::::::::::::::::::::: */
#define EEPROM_WRITE_BYTE 1
#define EEPROM_WRITE_PAGE 2
/* ::::::::::::::::::::::::::::::::::::
IR Configuration
:::::::::::::::::::::::::::::::::::: */
#define IR_00_UNUSE 0x00 // No IR !
#define IR_01_NEC_DEBUG 0x01 // NEC Debug
#define IR_02_NEC_3COLORS 0x02 // NEC
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -