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

📄 autoboard.lst

📁 通过车载终端采集GPS数据
💻 LST
📖 第 1 页 / 共 2 页
字号:
C51 COMPILER V7.09   AUTOBOARD                                                             09/16/2008 09:24:44 PAGE 1   


C51 COMPILER V7.09, COMPILATION OF MODULE AUTOBOARD
OBJECT MODULE PLACED IN .\output\autoboard.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE main\autoboard.c LARGE BROWSE INCDIR(audio\;eeprom\;extendUART\;flash\;gps\
                    -;inter\;key\;mcu\;menu\;usb\;gprs\;main\;1wire\) DEBUG OBJECTEXTEND PRINT(.\output\autoboard.lst) OBJECT(.\output\autobo
                    -ard.obj)

line level    source

   1          #include "typedef.h"
   2          #include "global.h"
   3          #include "trans_process.h"
   4          #include "position.h"
   5          #include "autoboard.h"
   6          #include "nf_file.h"
   7          #include "commoninterface.h"
   8          #include "menuinterface.h"
   9          #include "manualboard.h"
  10          #include <string.h>
  11          
  12          ///add for debug
  13          #include "centerinterface.h"
  14          #include "gprs.h"
  15          #include "16c554.h"
  16          #include "nf_drv.h"
  17          #include "playsound.h"
  18          #include "display.h"
  19          //end for add
  20          extern xdata BUS_INFO busInfo;//线路当前信息
  21          unsigned char position_value, position_act;
  22          Byte getAutoPositionValue()
  23          {
  24   1          return position_value;
  25   1      }
  26          
  27          void voice_process(void)
  28          {
  29   1          Byte workState;
  30   1      
  31   1          position_value = position_process();
  32   1      
  33   1      
  34   1          if( position_value < 0x40 )
  35   1              position_act = 0;
  36   1          else
  37   1              position_act = 1;
  38   1      
  39   1                          
  40   1          get_cur_runmode(&workState);
  41   1          
  42   1          if( (workState == RUN_NORMAL) || (get_board_mode() == FORCE_BOARD) )
  43   1          {
  44   2              if( (position_value!=00) && (position_value!=0xFF) )
  45   2              {
  46   3                  if( position_value > 0x80 )
  47   3                      inform_station(position_value, 0);
  48   3                  else
  49   3                  {
  50   4                      if( busInfo.direction == 0 )
  51   4                          busInfo.tranCurStation = position_value & 0x3F;
  52   4                      else
  53   4                          busInfo.tranCurStation = position_value | 0x40;
C51 COMPILER V7.09   AUTOBOARD                                                             09/16/2008 09:24:44 PAGE 2   

  54   4                      process_menu_station(position_act, busInfo.tranCurStation);
  55   4      
  56   4                      if( (position_act==1) && (position_stop()==0) )
  57   4                          make_runmode_message(3, busInfo.tranCurStation);  /*溜站*/
  58   4                      else
  59   4                          make_runmode_message(position_act, busInfo.tranCurStation);
  60   4                  }
  61   3              }
  62   2          }
  63   1      
  64   1      }
  65          
  66          void process_menu_station(unsigned char action, unsigned char station)
  67          {
  68   1          unsigned char tmp;
  69   1      
  70   1          tmp = station;
  71   1          if( action )
  72   1              tmp = get_nextstationNum(station);
  73   1      
  74   1          inform_station(tmp, action);
  75   1          
  76   1      }
  77          
  78          
  79          char *position2string(long value)
  80          {
  81   1          unsigned int degree, coin1,coin2;
  82   1          long tmp_long;
  83   1          static char strBuffer[20];
  84   1      
  85   1          tmp_long = value / 10000;
  86   1          degree = tmp_long / 60;
  87   1      
  88   1          tmp_long = 10000;
  89   1          tmp_long *= 60 * degree;
  90   1          tmp_long = (value - tmp_long);
  91   1          coin1 = tmp_long / 10;
  92   1          coin2 = tmp_long % 10;
  93   1      
  94   1          sprintf(strBuffer, "%03u.%05u%u", degree, coin1, coin2);
  95   1          return strBuffer;
  96   1      }
  97          
  98          /*****for debug*************/
  99          char debug_msg[1024];
 100          extern GPRS_INFO_STRUCT gprsInfo;
 101          extern IP_INFO_STRUCT ipInfo;
 102          
 103          unsigned long debug_address = 0x00c80000;
 104          unsigned char debug_pos_value=0;
 105          extern POSITIONINFO positionInfo[204];
 106          void debug_msgNeeded(unsigned char *pBuf)
 107          {
 108   1          
 109   1      /*    char *tmp_ptr;
 110   1          tmp_ptr = debug_msg;
 111   1          *tmp_ptr = 0;
 112   1          sprintf(tmp_ptr, "%02bX:%02bX,%02bX:%02bX,\r\n ", pBuf[0], pBuf[1], pBuf[2], pBuf[3]);
 113   1          siob_send(debug_msg, strlen(debug_msg));*/
 114   1      /*    char *tmp_ptr;
 115   1          tmp_ptr = debug_msg;
C51 COMPILER V7.09   AUTOBOARD                                                             09/16/2008 09:24:44 PAGE 3   

 116   1          *tmp_ptr = 0;
 117   1          tmp_ptr = debug_msg + strlen(debug_msg);
 118   1          sprintf(tmp_ptr, "%X\r\n", value);
 119   1      
 120   1          siob_send(debug_msg, strlen(debug_msg));*/
 121   1      }
*** WARNING C280 IN LINE 106 OF MAIN\AUTOBOARD.C: 'pBuf': unreferenced local variable
 122          extern unsigned char gPosDirction;
 123          extern ALARM_ZONE gAlarmZone;
 124          extern xdata SYSTEM_INFO systemInfo;
 125          
 126          #define ALARMZONE_TIMEOUT 6
 127          #define ALARMZONE_SPEEDTIME 7//持续30s以上超时,将进行声音提示
 128          Byte isInAlarmZone(long longtitude, long little, long larg)
 129          {
 130   1          if ((longtitude > little) && (longtitude < larg))
 131   1              return 1;
 132   1          else
 133   1              return 0;
 134   1      }
 135          void debug_position(void)
 136          {
 137   1      /*    if (1 == systemInfo.landFlag)
 138   1          {
 139   1              char *tmp_ptr;
 140   1              unsigned char i;
 141   1              GPS_DATA *gps_ptr;
 142   1              tmp_ptr = debug_msg;
 143   1              *tmp_ptr = 0;
 144   1              tmp_ptr = debug_msg + strlen(debug_msg);
 145   1              get_gps_data(&gps_ptr);
 146   1              sprintf(tmp_ptr, "%s, ", position2string(gps_ptr->longitude) );
 147   1          
 148   1              tmp_ptr = debug_msg + strlen(debug_msg);
 149   1              sprintf(tmp_ptr, "%s::",  position2string(gps_ptr->latitude));
 150   1          
 151   1              tmp_ptr = debug_msg + strlen(debug_msg);
 152   1              sprintf(tmp_ptr, "%bu::",  gAlarmZone.num);
 153   1              tmp_ptr = debug_msg + strlen(debug_msg);
 154   1              for (i=0; i<gAlarmZone.num; i++)
 155   1              {
 156   1                  sprintf(tmp_ptr, "%s, ", position2string(gAlarmZone.zone[i].Point1X) );
 157   1          
 158   1                  tmp_ptr = debug_msg + strlen(debug_msg);
 159   1                  sprintf(tmp_ptr, "%s::",  position2string(gAlarmZone.zone[i].Point1Y));
 160   1              
 161   1                  tmp_ptr = debug_msg + strlen(debug_msg);
 162   1                  sprintf(tmp_ptr, "%s, ", position2string(gAlarmZone.zone[i].Point2X) );
 163   1          
 164   1                  tmp_ptr = debug_msg + strlen(debug_msg);
 165   1                  sprintf(tmp_ptr, "%s::",  position2string(gAlarmZone.zone[i].Point2Y));
 166   1              
 167   1                  tmp_ptr = debug_msg + strlen(debug_msg);
 168   1              }
 169   1              sprintf(tmp_ptr, "\r\n");
 170   1          
 171   1              siob_send(debug_msg, strlen(debug_msg));
 172   1          }*/

⌨️ 快捷键说明

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