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

📄 saa7114.lst

📁 NOVATEK公司的LCD_CONTROLLER源代码 液晶显示器驱动板源代码NT68521
💻 LST
📖 第 1 页 / 共 5 页
字号:
  43      =1  // ADC PLL
  44      =1  #define AnalogPLL 0
  45      =1  #define DigitalPLL 1
  46      =1  
  47      =1  #define ADC_PLL DigitalPLL
  48      =1  //DVI
  49      =1  #define HVmode 0
  50      =1  #define DEmode 1
  51      =1  
  52      =1  #define DVImode HVmode
  53      =1  
  54      =1  #define Low 0
  55      =1  #define High 1
  56      =1  #define PanelPowerActive High
  57      =1  
  58      =1  #endif
   7          #include "MCU.H"
   1      =1  #ifndef _MCU_H_
   2      =1  #define  _MCU_H_
   3      =1  
   4      =1  extern code unsigned char KeyTab[];
   5      =1  
   6      =1  void InitMCU(void);
   7      =1  //void Timer0(void);
   8      =1  void Sleep(unsigned short time);
   9      =1  void CheckKey(void);
  10      =1  void LED_GrnOn(void);
  11      =1  void LED_GrnOff(void);
  12      =1  void LED_RedOn(void);
  13      =1  void LED_RedOff(void);
  14      =1  void BackLightOn(void);
  15      =1  void BackLightOff(void);
C51 COMPILER V7.20   SAA7114                                                               09/14/2004 12:21:14 PAGE 9   

  16      =1  void PanelPowerOff(void);
  17      =1  void PanelPowerOn(void);
  18      =1  void ResetOff(void);
  19      =1  void ResetOn(void);
  20      =1  void AUDIO_MUTE(void);
  21      =1  void AUDIO_On(void);
  22      =1  void DVI_On(void);
  23      =1  void DIV_PWND(void);
  24      =1  void AMP_STBY(void);
  25      =1  void AMP_On(void);
  26      =1  void DIG_SEL(void);
  27      =1  void DIG_Off(void);
  28      =1  void CheckDDC2Bi(void);
  29      =1  void ScanKeyPad(void);
  30      =1  void WaitSetup(unsigned short time);
  31      =1  void VideoEnable(void);
  32      =1  void VideoDisable(void);
  33      =1  
  34      =1  #endif
   8          #include "OSD.H"
   1      =1  #ifndef _OSD_H
   2      =1  #define _OSD_H
   3      =1  
   4      =1  // OSD Palette Data
   5      =1  #define BLACK           0x0000
   6      =1  #define RED                     0xf800//
   7      =1  #define GREEN           0x07e0//
   8      =1  #define BLUE            0x001F
   9      =1  #define CYAN            0x871c//(BLUE|GREEN)
  10      =1  #define MAGENTA         0xdfff//(RED|BLUE)
  11      =1  #define YELLOW          (RED|GREEN)
  12      =1  #define WHITE           (RED|GREEN|BLUE)
  13      =1  #define TBLACK          0x0000
  14      =1  #define TRED            0x4000
  15      =1  #define TGREEN          0x0200
  16      =1  #define TBLUE           0x000c
  17      =1  #define TCYAN           0x036d//(TBLUE|TGREEN)
  18      =1  #define TMAGENTA        (TRED|TBLUE)
  19      =1  #define TYELLOW         (TRED|TGREEN)
  20      =1  #define GRAY            0x8410//0x4210
  21      =1  
  22      =1  #define iBLACK          0
  23      =1  #define iRED            1
  24      =1  #define iGREEN          2
  25      =1  #define iBLUE           3
  26      =1  #define iCYAN           4
  27      =1  #define iMAGENTA        5
  28      =1  #define iYELLOW         6
  29      =1  #define iWHITE          7
  30      =1  #define iTBLACK         8
  31      =1  #define iTRED           9
  32      =1  #define iTGREEN         10
  33      =1  #define iTBLUE          11
  34      =1  #define iTCYAN          12
  35      =1  #define iTMAGENTA       13
  36      =1  #define iTYELLOW        14
  37      =1  #define iGRAY           15
  38      =1  
  39      =1  #define FrameColor (((iBLACK-1)<<8)|(iCYAN<<4))
  40      =1  #define FactoryColor (((iBLACK-1)<<8)|(iGREEN<<4))
  41      =1  #define FrameMColor ((iCYAN<<4)|0x0c)
  42      =1  #define FactoryMColor ((iGREEN<<4)|0x0c)
C51 COMPILER V7.20   SAA7114                                                               09/14/2004 12:21:14 PAGE 10  

  43      =1  #define TitleColor (((iWHITE-1)<<8)|(iTCYAN<<4))
  44      =1  #define TextColor (((iTBLUE-1)<<8)|(iMAGENTA<<4))
  45      =1  #define TextSelColor (((iTBLUE-1)<<8)|(iYELLOW<<4))
  46      =1  #define IconColor (((iBLACK-1)<<8)|(iYELLOW<<4))
  47      =1  #define IconRedColor (((iRED-1)<<8)|(iYELLOW<<4))
  48      =1  #define IconGreenColor (((iGREEN-1)<<8)|(iYELLOW<<4))
  49      =1  #define IconBlueColor (((iBLUE-1)<<8)|(iYELLOW<<4))
  50      =1  #define IconMColor ((iYELLOW<<4)|0x0c)
  51      =1  #define RedFrameColor (((iGREEN-1)<<8)|(iRED<<4))
  52      =1  #define MsgColor1 (((iTBLUE-1)<<8)|(iCYAN<<4))
  53      =1  #define MsgColor2 (((iTBLUE-1)<<8)|(iGREEN<<4))
  54      =1  #define DisIconColor (((iWHITE-1)<<8)|(iCYAN<<4))
  55      =1  #define DisIconMColor ((iCYAN<<4)|0x100c)
  56      =1  #define ChannelColor (((iGREEN-1)<<8)|(iBLACK<<4))
  57      =1  #define RedColor (((iRED-1)<<8)|(iCYAN<<4))
  58      =1  #define GreenColor (((iGREEN-1)<<8)|(iCYAN<<4))
  59      =1  #define BlueColor (((iBLUE-1)<<8)|(iCYAN<<4))
  60      =1  //
  61      =1  #define OSD_WIDTH       32//22
  62      =1  #define OSD_HIGHT       15
  63      =1  #define OSD2_WIDTH      32//22
  64      =1  #define OSD2_HIGHT      5
  65      =1  #define OSD3_WIDTH      8
  66      =1  #define OSD3_HIGHT      1
  67      =1  #define OSD4_HIGHT      10
  68      =1  
  69      =1  #define OSD_ZoomX 1
  70      =1  #define OSD_ZoomY 1
  71      =1  #define CR9e 0
  72      =1  //#define CR9e 1
  73      =1  //#define CR9e 2
  74      =1  //#define CR9e 3
  75      =1  #define OSD_RBx (PanelWidth - (12 * OSD_ZoomX * OSD_WIDTH))
  76      =1  #define OSD_RBy (PanelHeight - (18 * OSD_ZoomY * OSD_HIGHT))
  77      =1  #define OSD_RBx1 (PanelWidth - (18 * OSD_ZoomX * OSD_HIGHT))
  78      =1  #define OSD_RBy1 (PanelHeight - (12 * OSD_ZoomY * OSD_WIDTH))
  79      =1  //
  80      =1  #define OSD2_CCx (PanelWidth - (12 * OSD_ZoomX * OSD2_WIDTH)) / 2
  81      =1  #define OSD2_CCy (PanelHeight - (18 * OSD_ZoomY * OSD2_HIGHT)) / 2
  82      =1  #define OSD2_CCx1 (PanelWidth - (18 * OSD_ZoomX * OSD2_HIGHT)) / 2
  83      =1  #define OSD2_CCy1 (PanelHeight - (12 * OSD_ZoomY * OSD2_WIDTH)) / 2
  84      =1  #define OSD2_RBx (PanelWidth - (12 * OSD_ZoomX * OSD2_WIDTH))
  85      =1  #define OSD2_RBy (PanelHeight - (18 * OSD_ZoomY * OSD2_HIGHT))
  86      =1  //
  87      =1  #define OSD3_Px (PanelWidth - (12 * 2 * OSD3_WIDTH))
  88      =1  #define OSD3_Py 0
  89      =1  
  90      =1  extern code unsigned char IconPosition[];
  91      =1  extern code unsigned char ClearLine1[];
  92      =1  extern code unsigned char ClearLine2[];
  93      =1  extern code unsigned char ClearLine3[];
  94      =1  extern code unsigned char MenuItem[];
  95      =1  extern code unsigned char *SourceTab[];
  96      =1  
  97      =1  void OsdInit(void);
  98      =1  void Osd2Init(void);
  99      =1  void Osd3Init(void);
 100      =1  void Osd4Init(void);
 101      =1  void LoadFont(void);
 102      =1  void ShowMainMenu(void);
 103      =1  void MainMenu(void);
 104      =1  void ClearOSD(void);
C51 COMPILER V7.20   SAA7114                                                               09/14/2004 12:21:14 PAGE 11  

 105      =1  void OSD_OFF(void);
 106      =1  void ShowSubMenu(void);
 107      =1  void ValueUp(void);
 108      =1  void ValueDown(void);
 109      =1  void ShowT_Bar(void);
 110      =1  void ShowBrightness(void);
 111      =1  void ShowContrast(void);
 112      =1  void ShowClock(void);
 113      =1  void ShowPhase(void);
 114      =1  void ShowHP(void);
 115      =1  void ShowVP(void);
 116      =1  void ShowNO_YES(unsigned char i);
 117      =1  void SetPosition(void);
 118      =1  void ShowVersion(void);
 119      =1  void ClearText(void);
 120      =1  void ShowOutOfRange(void);
 121      =1  void ShowNoSync(void);
 122      =1  void ShowDisconnector(void);
 123      =1  void SaveData(void);
 124      =1  void ShowAutoAdj1(void);
 125      =1  void ShowAutoAdj(void);
 126      =1  void ShowRGB(void);
 127      =1  void ShowOSD_X(void);
 128      =1  void ShowOSD_Y(void);
 129      =1  void ShowOSD_Timer(void);
 130      =1  void ShowColorTemperature(void);
 131      =1  void ShowLanguage(void);
 132      =1  void SelectItem(void);
 133      =1  void WriteSequenceScaler(unsigned char addr,unsigned char *p);
 134      =1  void WriteStringScaler(unsigned char Attr,unsigned char *p);
 135      =1  void WriteXY_StrScaler(unsigned char Attr,unsigned char x,unsigned char y,unsigned char *p);
 136      =1  void FillLineAttr(unsigned char x,unsigned char y,unsigned char l,unsigned short Attr);
 137      =1  void UnselectIcon(void);
 138      =1  void WriteXY_CStrScaler(unsigned char Attr,unsigned char x,unsigned char y,unsigned char w,unsigned char *
             -p);
 139      =1  void CheckRGB(void);
 140      =1  void ShowMisceMenu(void);
 141      =1  void ShowInverter(void);
 142      =1  void ShowSaturation(void);
 143      =1  void ShowTint(void);
 144      =1  void ShowSharpness(void);
 145      =1  void SetMovePosition(void);
 146      =1  void ShowVolume();
 147      =1  void DirectVolume();
 148      =1  void ShowValue(unsigned char Attr,unsigned char value);
 149      =1  void ShowSliderBar(unsigned char x,unsigned char y,unsigned char value);
 150      =1  void ShowFreq(void);
 151      =1  void ShowResolution(void);
 152      =1  void ShowNum(unsigned char Attr,unsigned char xx,unsigned char yy,unsigned char value);
 153      =1  void ShowInputSource(void);
 154      =1  void VideoMenu(void);
 155      =1  void ShowVideoMenu(void);
 156      =1  void ShowVideoSubMenu(void);
 157      =1  void VideoValueUp(void);
 158      =1  void VideoValueDown(void);
 159      =1  void VideoUnSelectIcon(void);
 160      =1  void VideoSelectItem(void);
 161      =1  
 162      =1  enum{
 163      =1          NotSaveSaveFlag,
 164      =1          BrightnessSaveFlag,
 165      =1          ContrastSaveFlag,
C51 COMPILER V7.20   SAA7114                                                               09/14/2004 12:21:14 PAGE 12  

 166      =1          ClockSaveFlag,
 167      =1          PhaseSaveFlag,
 168      =1          HP_SaveFlag,
 169      =1          VP_SaveFlag,
 170      =1          //ColorTempSaveFlag, /*调整函数中自己更新EEPAM */
 171      =1          R_GainSaveFlag,
 172      =1          G_GainSaveFlag,
 173      =1          B_GainSaveFlag,
 174      =1          VolumeSaveFlag,
 175      =1          //LanguageSaveFlag,  /*调整函数中自己更新EEPAM */
 176      =1          OSD_X_SaveFlag,
 177      =1          OSD_Y_SaveFlag,
 178      =1          OSD_TimerSaveFlag,
 179      =1          SaturationSaveFlag,

⌨️ 快捷键说明

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