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

📄 remote.lst

📁 一个LCD TV的源程序, 用的是realtek的IC
💻 LST
字号:
C51 COMPILER V7.07   REMOTE                                                                05/03/2006 14:30:08 PAGE 1   


C51 COMPILER V7.07, COMPILATION OF MODULE REMOTE
OBJECT MODULE PLACED IN REMOTE.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE REMOTE.C BROWSE DEBUG OBJECTEXTEND

stmt level    source

   1          /*********************************************************************
   2          
   3                COPYRIGHT  (C)  Himax Technologies, Inc.
   4          
   5                File name     : REMOTE.C     
   6          
   7                Description   : Remote Controller Implement Code
   8          
   9                Author        : Nice Chen
  10          
  11                Create date   : 2004/10/07
  12          
  13                Modifications :
  14          
  15          
  16          *********************************************************************/
  17          
  18          #define _REMOTE_C
  19          
  20          /********************** Include Section *****************************/
  21          
  22          #include "remote.h"
*** ERROR C141 IN LINE 197 OF PA8204.H: syntax error near 'AutoType', expected ')'
*** ERROR C141 IN LINE 198 OF PA8204.H: syntax error near 'AutoPosType', expected ')'
*** ERROR C141 IN LINE 200 OF PA8204.H: syntax error near 'GeometryAttrib', expected ')'
*** ERROR C141 IN LINE 202 OF PA8204.H: syntax error near 'AutoWhiteType', expected ')'
  23          #include "tuner.h"
  24          #include "osd.h"
  25          
  26          /**************** Function Implement Section ************************/
  27          
  28          /* ================================================================
  29              Name    : init_remote
  30              Purpose : initial PA8204's remote controller function
  31              Passed  : None                      
  32              Notes   : None
  33             ================================================================ */ 
  34          
  35          void Init_Remote(void)
  36          {
  37   1              // External interrupt enable 
  38   1              EX0                                             =       1;
  39   1              // INT 0 type : falling edge                    
  40   1              IT0                                             =       1;
  41   1              // Setup Remote Controller Parameters to PA8204
  42   1              I2CWrite2Byte(PA8204_ADDR,PA8204_CUSTOM_DATA_1 , _RMT_CUSTOM_HI, _RMT_CUSTOM_LO );
*** ERROR C202 IN LINE 42 OF REMOTE.C: 'PA8204_ADDR': undefined identifier
  43   1          // Setup Repeat Threshold-Low [0x89 ~ 0x8A]
  44   1          // [0x8A] Repear IR is not working
  45   1          I2CWrite2Byte(PA8204_ADDR,PA8204_RD_WIDTH, 0x89, 0xA0);
*** ERROR C202 IN LINE 45 OF REMOTE.C: 'PA8204_ADDR': undefined identifier
  46   1          // Enable HX6204A Interrupt Mask
  47   1          I2CWriteByte(PA8204_ADDR, PA8204_INT_MASK_STAUS, 0x07);
*** ERROR C202 IN LINE 47 OF REMOTE.C: 'PA8204_ADDR': undefined identifier
  48   1      }       
C51 COMPILER V7.07   REMOTE                                                                05/03/2006 14:30:08 PAGE 2   

  49          
  50          /* ================================================================
  51              Name    : RemoteControl
  52              Purpose : Pass PA8204 IR received IR data stream
  53              Passed  : Byte              
  54              Notes   : None
  55             ================================================================ */ 
  56          
  57          void RemoteControl(Byte IRStream)
  58          {
  59   1              // Display Press-Key Code
  60   1              Puts_UART("RC="),HexTobyStr(IRStream),Puts_UART(byStr),Puts_UART("\r\n");
  61   1              
  62   1          // According to SystemPower Status, then Processing Key function
  63   1          switch (SystemPower)
*** ERROR C202 IN LINE 63 OF REMOTE.C: 'SystemPower': undefined identifier
  64   1              {
  65   2              // ============================[Power Off Section]==============================
  66   2              case _Power_Off:         
  67   2                     switch (IRStream)
  68   2                     {    
  69   3                      // [1] FREEZE KEY
  70   3                              case _RMT_OverScan:
  71   3                                  // ========== NICE_DEBUG ========== // 
  72   3                                  #if NICE_DEBUG==1
*** WARNING C322 IN LINE 72 OF REMOTE.C: unknown identifier
                                                  BootFromLDROM();
                                                  break;
                                          #endif
  76   3                                  // ========== END DEBUG =========== //
  77   3                         
  78   3                      // [2] Power 
  79   3                      case _RMT_StandBy: 
  80   3                          SystemPower= _Power_On;
*** ERROR C202 IN LINE 80 OF REMOTE.C: 'SystemPower': undefined identifier
  81   3                          break;                     
  82   3                 }
  83   2                 break;
  84   2              // ============================[End of Power Off]===============================
  85   2      
  86   2              // ============================[Power On Section]===============================
  87   2              case _Power_On:
  88   2                     switch (IRStream)
  89   2                     {  
  90   3                      // [1] Power Key
  91   3                      case _RMT_StandBy:
  92   3                          SystemPower=_Power_Off;
*** ERROR C202 IN LINE 92 OF REMOTE.C: 'SystemPower': undefined identifier
  93   3                          break;  
  94   3                 
  95   3                      // [2] Mute
  96   3                      case _RMT_Mute:
  97   3                                  // ========== NICE_DEBUG ========== // 
  98   3                                  #if NICE_DEBUG==1
*** WARNING C322 IN LINE 98 OF REMOTE.C: unknown identifier
                                  Puts_UART("Start Auto Function\r\n");
                                                  InitAutoFunction();
                                  SetAutoClock(_Main);
                                  SetAutoPhase(_Main);
                                  SetAutoPos(_Main);
                                  SetAutoColor_RGB(_Main);
                                                  break;
C51 COMPILER V7.07   REMOTE                                                                05/03/2006 14:30:08 PAGE 3   

                                          #endif
 107   3                                  // ========== END DEBUG =========== //
 108   3      
 109   3                      // [3] S-Video
 110   3                      case _RMT_AV2:
 111   3                          Puts_UART("S-Video\r\n");
 112   3                          byCurSource=_YC;
*** ERROR C202 IN LINE 112 OF REMOTE.C: 'byCurSource': undefined identifier
 113   3                          ChangeToVideo();
 114   3                          break;
 115   3      
 116   3                      // [4] YUV
 117   3                      case _RMT_AV3:
 118   3                          Puts_UART("YUV\r\n");
 119   3                          ChangeToYUV();
 120   3                          break;
 121   3      
 122   3                      // [5] VGA
 123   3                      case _RMT_PC:
 124   3                          Puts_UART("VGA\r\n");
 125   3                          ChangeToVGA();
 126   3                          break;
 127   3      
 128   3                                      /*
 129   3                      // [6] TV
 130   3                      case _RMT_TV:
 131   3                          byCurSource=_Tuner;
 132   3                          Puts_UART("TV\r\n");
 133   3                          ChangeToVideo();
 134   3                          break;
 135   3                                      */
 136   3      
 137   3                      // [7] Channel ++
 138   3                      case _RMT_ChannelUp:
 139   3                          Puts_UART("CH+\r\n");
 140   3                          byChannelNumber++;
 141   3                          if(byChannelNumber>_Max_CH)
 142   3                          {
 143   4                              byChannelNumber=_Min_CH;
 144   4                          }  
 145   3                          ChnlSet(byChannelNumber);
 146   3                          OsdSetChanelValue(4, 10, (8|Transparent), (5|Transparent),byChannelNumber);
 147   3                          break;
 148   3      
 149   3                      // [8] Channel --
 150   3                      case _RMT_ChannelDown:
 151   3                          Puts_UART("CH-\r\n");
 152   3                          byChannelNumber--;
 153   3                          if(byChannelNumber<_Min_CH)
 154   3                          {
 155   4                              byChannelNumber=_Max_CH;
 156   4                          }
 157   3                          ChnlSet(byChannelNumber);
 158   3                          OsdSetChanelValue(4, 10, (8|Transparent), (5|Transparent),byChannelNumber);
 159   3                          break;            
 160   3                 }
 161   2                 break;
 162   2              // ============================[End of Power On]================================            
 163   2              }
 164   1      }       

C51 COMPILATION COMPLETE.  2 WARNING(S),  11 ERROR(S)

⌨️ 快捷键说明

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