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

📄 ui_main.lst

📁 智原mp3 SDK 开发包 与巨力 有mp3 wma ogg decoder
💻 LST
字号:
C51 COMPILER V7.09   UI_MAIN                                                               05/22/2008 10:13:54 PAGE 1   


C51 COMPILER V7.09, COMPILATION OF MODULE UI_MAIN
OBJECT MODULE PLACED IN ..\output\ui_main.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ..\..\common\ui_main.c LARGE OPTIMIZE(9,SIZE) BROWSE INCDIR(..\..\..\bsp\in
                    -clude;..\src\include;..\..\include) DEFINE(CONFIG_ASIC) DEBUG OBJECTEXTEND PRINT(.\ui_main.lst) OBJECT(..\output\ui_main
                    -.obj)

line level    source

   1          /****************************
   2           *  ui_main.c
   3           ****************************/
   4          
   5          #include <string.h>
   6          #include "api.h"
*** WARNING C318 IN LINE 6 OF ..\..\common\ui_main.c: can't open file 'api.h'
   7          #include "lcd.h"
*** ERROR C129 IN LINE 102 OF ..\..\INCLUDE\LCD.H: missing ';' before 'lcd_max_str'
   8          #include "common.h"
*** WARNING C318 IN LINE 5 OF ..\..\INCLUDE\COMMON.H: can't open file 'types.h'
   9          #include "ap_common.h"
  10          #include "display.h" 
*** WARNING C318 IN LINE 4 OF ..\..\INCLUDE\DISPLAY.H: can't open file 'types.h'
  11          #include "res.h"
  12          #include "res_show.h"
  13          #include "ui_main.h"
  14          #include "batt.h"
  15          #include "prefer.h"
  16          
  17          
  18          INT16U charge_count=0;
  19          
  20          
  21          void ui_show_data(UINT8 *buf, UINT8 x, UINT8 y)
  22          {       
  23                  while(1)
  24                  {
  25                          if(*buf!=0)bResShowPic(PRGNUM0+*buf-0x30, x, y);
  26                          else
  27                                  break;
  28                          buf++;
  29                          x+=11;
  30                  }
  31          }
  32          
  33          void ui_show_data1(char *buf, UINT8 x, UINT8 y)
  34          {        
  35                  while(1)
  36                  {
  37                          if(*buf!=0)bResShowPic(TIMENUM0+*buf-0x30, x, y);
  38                          else
  39                                  break;
  40                          buf++;
  41                          x+=5;
  42                  }
  43          }
  44          
  45          void ui_show_data2(char *buf, UINT8 x, UINT8 y)
  46          {      
  47                  while(1)
  48                  {
  49                          if(*buf!=0)bResShowPic(MNUM0+*buf-0x30, x, y);
C51 COMPILER V7.09   UI_MAIN                                                               05/22/2008 10:13:54 PAGE 2   

  50                          else
  51                                  break;
  52                          buf++;
  53                          x+=5;
  54                  }
  55          }
  56          
  57          void ui_show_a(UINT16 id)
  58          {
  59              bResShowPic(id, POSITION_A, POSITIONY_A);
  60          }
  61          
  62          void ui_show_b(UINT16 id)
  63          {
  64              bResShowPic(id, POSITION_B, POSITIONY_B);
  65          }
  66          
  67          
  68          void ui_show_c(UINT16 id)
  69          {
  70              bResShowPic(id, POSITION_C, POSITIONY_C);    
  71          }
  72          
  73          #ifndef MUSICAP
  74          void ui_show_cd(UINT8 *string, UINT8 part)//???
  75          {
  76              if(part == 0) 
  77              {
  78                  ui_show_data(string,POSITION_C+5, POSITIONY_D);
  79              }
  80              else
  81              { 
  82                  ui_show_data(string,POSITION_C+5, POSITIONY_D2);
  83              }
  84          }
  85          #endif
  86          
  87          void ui_show_d(UINT8 *string, UINT8 part)
  88          {
  89              if(part == 0) 
  90              {
  91                  ui_show_data(string,40, 114);
  92              }
  93              else
  94              { 
  95                  ui_show_data2(string,8, 124);
  96              }
  97          }
  98          
  99          #ifndef MUSICAP
 100          //id =0, clear the icon
 101          void ui_show_e(UINT16 id)
 102          {
 103                  bResShowPic(id, POSITION_E, POSITIONY_E);
 104          }
 105          #endif
 106          
 107          void ui_show_h(UINT8 *string,UINT8 mode)
 108          {
 109              if(mode)    
 110                  ui_show_data(string,POSITION_H, POSITIONY_H);
 111              else 
C51 COMPILER V7.09   UI_MAIN                                                               05/22/2008 10:13:54 PAGE 3   

 112                  ui_show_data(string,POSITION_H1, POSITIONY_H1);  
 113          }
 114          
 115          void ui_show_vol()
 116          {       
 117                  char temp[3];
 118                  my_sprintf(temp, "%02d", (UINT16)tUserPreference.u8Volume);
 119                  bResShowPic(MVOL,66,144);
 120                  bResShowPic(TVNUM0+temp[0]-0x30,86,147);
 121                  bResShowPic(TVNUM0+temp[1]-0x30,86+5,147);
 122          }
 123          
 124          void ui_show_j(UINT16 id)
 125          {
 126                  bResShowPic(id, POSITION_J, POSITIONY_J);
 127          }
 128          
 129          #ifndef FMAP
 130          void ui_show_spk(UINT8 mode)
 131          {
 132          //      if(mode) bResShowPic(SPEAKERY, 110, POSITIONY_A);
 133          //      else bResShowPic(SPEAKERN, 110, POSITIONY_A);   
 134          }       
 135          #else
              void ui_show_spk(UINT8 mode)
              {
              //      if(mode) bResShowPic(SPEAKERY, 110, 112);
              //      else bResShowPic(SPEAKERN, 110, 112);   
              }       
              #endif
 142          
 143          
 144          void OpenClose_spk(UINT8 mode)
 145          {
 146          
 147          }       
 148          
 149          void ui_show_batt()
 150          {
 151                  INT8U u8b = api_u8GetBatteryRemain();   
 152                  if(u8b-19<=4)
 153                          bResShowPic(BATTERY1+(u8b-19)*2,POS_BATTERY, POSY_BATTERY);
 154                  else
 155                          bResShowPic(BATTERY1+8,POS_BATTERY, POSY_BATTERY);                      
 156          }
 157          
 158          void ui_show_charge()
 159          {
 160                  
 161                  INT8U u8b = api_u8GetBatteryRemain();           
 162                  
 163                  {
 164                          if(charge_count<7)
 165                          {
 166                                  charge_count++;         
 167                          }
 168                          else
 169                          {
 170                                  charge_count = 0;       
 171                          }       
 172                          bResShowPic(BATTERY1+charge_count,POS_BATTERY,POSY_BATTERY);
 173                  }               
C51 COMPILER V7.09   UI_MAIN                                                               05/22/2008 10:13:54 PAGE 4   

 174          }
 175          
 176          void ui_show_charge1()
 177          {
 178                  
 179                  INT8U u8b = api_u8GetBatteryRemain();           
 180                  
 181                  {
 182                          if(charge_count<7)
 183                          {
 184                                  charge_count++;         
 185                          }
 186                          else
 187                          {
 188                                  charge_count = 0;       
 189                          }       
 190                          bResShowPic(BATTERY1+charge_count, POS_BATTERY,POSY_BATTERY);
 191                  }               
 192          }
 193          
 194          void ui_show_lock(UINT8 islock)
 195          {
 196             // if(islock == 1)
 197             // {
 198             //     bResShowPic(LOCK,11,9);
 199             // }
 200          }
 201          

C51 COMPILATION COMPLETE.  3 WARNING(S),  1 ERROR(S)

⌨️ 快捷键说明

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