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

📄 msg.lst

📁 基于averlogic公司的AL320的AUO 2.4" SRGB屏的驱动程序
💻 LST
📖 第 1 页 / 共 2 页
字号:
C51 COMPILER V7.50   MSG                                                                   06/25/2008 18:49:33 PAGE 1   


C51 COMPILER V7.50, COMPILATION OF MODULE MSG
OBJECT MODULE PLACED IN .\Output\MSG.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE MSG.C BROWSE DEBUG OBJECTEXTEND PRINT(.\Output\MSG.lst) OBJECT(.\Output\MSG
                    -.obj)

line level    source

   1          /*--------------------------------------------------------------------------
   2          MSG.C
   3          C file for MSG
   4          
   5          History:
   6          07/20/2006 : First Version V0.1 ---HsinChu Office
   7          
   8          Copyright (c) 1998-2006 AverLogic Inc
   9          All rights reserved.
  10          --------------------------------------------------------------------------*/
  11          #include "REG52.H"
  12          #include "DATATYPE.H"
  13          #include "STRUCT.H"
  14          #include "MSG.H"
  15          #include "RS232.H"
  16          #include "AL320_OSD.H"
  17          #include "AL320_OSDDISPLAY.H"
  18          #include "I2C.H"
  19          #include "DEFINE.H"
  20          #include "EEPROM.H"
  21          #include <stdio.h>
  22          
  23          Bool gbDebug = 0;
  24          Bool gbPowerON=1;
  25          Byte gucPowerCounter;
  26          extern Bool gbIR_Repeat,ffac;
  27          extern Byte guc5msCounter2;
  28          extern Byte guc1sCounter;
  29          extern bdata Byte menucursor;
  30          extern idata Byte vcjbright,vcjcontrast,vcjcolor,vcjbeepon;
  31          extern idata Byte fac[6];
  32          extern Byte ucIrRep;
  33          extern unsigned int presstime;
  34          
  35          extern void osdclr(Byte clrcolstart, Byte clrcolend,Byte clrrowstart, Byte clrrowend, Byte cColor);
  36          
  37          // *********************************************************
  38          // Function    : Msg_Handler
  39          // Description : Execute IR & Key Command.
  40          // Input parameters : Byte - ucMsgId : Key code
  41          // Return value     : None.
  42          // *********************************************************
  43          void Msg_Handler(Byte ucMsgId)
  44          {
  45   1      
  46   1          switch(ucMsgId)
  47   1          {
  48   2      /*
  49   2              case KEYPRESS_POWER: //KEY01
  50   2                      if (gbIR_Repeat) {
  51   2                      if (gbPowerON) {
  52   2                              Delay(50);
  53   2                              gucPowerCounter++;
  54   2                              if (gucPowerCounter==2)
C51 COMPILER V7.50   MSG                                                                   06/25/2008 18:49:33 PAGE 2   

  55   2                                      {
  56   2                                      gbPowerON=0;
  57   2                                      gucPowerCounter=0;
  58   2                                      }
  59   2      */
  60   2      
  61   2       //  SetReg(SLAVE_ADDRESS_AL320, 0xff, 0x01);
  62   2       //  SetReg(SLAVE_ADDRESS_AL320, 0x22, 0x22);
  63   2       //  SetReg(SLAVE_ADDRESS_AL320, 0x25, 0x40);
  64   2       //  SetReg(SLAVE_ADDRESS_AL320, 0x26, 0x05);
  65   2       //  SetReg(SLAVE_ADDRESS_AL320, 0x2a, 0x0d);
  66   2       // SetReg(SLAVE_ADDRESS_AL320, 0x2c, 0x02);
  67   2      /*
  68   2                      }
  69   2                      else {
  70   2                              Delay(50);
  71   2                              gucPowerCounter++;
  72   2                              if (gucPowerCounter==1)
  73   2                                      {
  74   2                                      gbPowerON=1;
  75   2                                      gucPowerCounter=0;
  76   2      */
  77   2        // SetReg(SLAVE_ADDRESS_AL320, 0xff, 0x01);
  78   2      
  79   2        // SetReg(SLAVE_ADDRESS_AL320, 0x22, 0x20);
  80   2        // SetReg(SLAVE_ADDRESS_AL320, 0x25, 0xd8);
  81   2       //  SetReg(SLAVE_ADDRESS_AL320, 0x26, 0x35);
  82   2       //  SetReg(SLAVE_ADDRESS_AL320, 0x2a, 0x00);
  83   2        // SetReg(SLAVE_ADDRESS_AL320, 0x2c, 0x00);                           
  84   2      /*                              }
  85   2                              }
  86   2                              }
  87   2                      break;
  88   2                  
  89   2      */                      
  90   2      
  91   2              case KEYPRESS_MENU:  //KEY02
  92   2              
  93   2      //printf(" %02x,", (int)gbOSDMenu);
  94   2      /*
  95   2                      if(gbPowerON){
  96   2                                      if (gbOSDMenu == 1)
  97   2                                      {
  98   2                                           SetReg(SLAVE_ADDRESS_AL320, 0xff, 0x01);//Switch to Page2
  99   2                                           if (gbOSDMode==OSD_INFORMATION)
 100   2                                                      {                                                                                               //070518
 101   2                                                      AL320_OSDExit_VideoSource();
 102   2                                              }
 103   2      
 104   2                                               AL320_DisplayMenuIcon(MainMenuIcon, OSD_Icon_HTotal, OSD_Icon_VTotal);   //jack++
 105   2                                           AL320_OSDIconDetect();  // Set OSD Icon and Display
 106   2                                   AL320_SetOSDDisplayIcon();
 107   2                           AL320_EnableOSD(OSD_ON);//OSDOn();
 108   2                                           gbOSDMenu = 0;
 109   2                                               gbContrast = 1;
 110   2                                               gbSecondMenu = 1;
 111   2                                       gbQualityAdjustment = 1;
 112   2                                 }
 113   2                                 else
 114   2                     {
 115   2                      AL320_OSDEnterFunction();
 116   2                                 }
C51 COMPILER V7.50   MSG                                                                   06/25/2008 18:49:33 PAGE 3   

 117   2                      }
 118   2                  break;
 119   2      */
 120   2                      //      presstime=1000;
 121   2                 //SetReg(SLAVE_ADDRESS_AL320, 0xff, 0x01);
 122   2      
 123   2      
 124   2                              if(ffac)
 125   2                              {
 126   3      
 127   3                                
 128   3      //                                      osdclr(8,21,9,13,0x00);
 129   3                                              menucursor++;
 130   3                                              if(menucursor>5)menucursor=0;
 131   3                                              break;
 132   3                              }
 133   2      
 134   2                              
 135   2                              guc1sCounter=6;
 136   2                              if(menucursor==0)
 137   2                              {
 138   3                                              AL320_EnableOSD(OSD_OFF);
 139   3                                              osdclr(8,21,8,8,0x14);
 140   3                                              osdclr(8,21,9,12,0x04);
 141   3                              }
 142   2                              menucursor++;
 143   2                              if(menucursor>4)menucursor=1;
 144   2      
 145   2        
 146   2      
 147   2                              
 148   2                              break;
 149   2                      case KEYPRESS_LEFT: //KEY04
 150   2      
 151   2      //                      if (gbOSDMenu == 0){
 152   2      

⌨️ 快捷键说明

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