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

📄 init.lst

📁 cs8900 c51应用
💻 LST
字号:
C51 COMPILER V7.06   INIT                                                                  11/26/2004 11:32:43 PAGE 1   


C51 COMPILER V7.06, COMPILATION OF MODULE INIT
OBJECT MODULE PLACED IN .\8052-obj\init.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ..\arch\at89s8252\init.c LARGE OPTIMIZE(SIZE) BROWSE INTVECTOR(0X2000) INCD
                    -IR(D:\Work\opentcp\1-0-2\src\include\) DEFINE(MONITOR,CS8900) DEBUG OBJECTEXTEND CODE SYMBOLS PRINT(.\8052-lst\init.lst)
                    - PREPRINT(.\8052-lst\init.i) OBJECT(.\8052-obj\init.obj)

stmt level    source

   1          /*
   2           *Copyright (c) 2000-2002 Viola Systems Ltd.
   3           *All rights reserved.
   4           *
   5           *Redistribution and use in source and binary forms, with or without 
   6           *modification, are permitted provided that the following conditions 
   7           *are met:
   8           *
   9           *1. Redistributions of source code must retain the above copyright 
  10           *notice, this list of conditions and the following disclaimer.
  11           *
  12           *2. Redistributions in binary form must reproduce the above copyright 
  13           *notice, this list of conditions and the following disclaimer in the 
  14           *documentation and/or other materials provided with the distribution.
  15           *
  16           *3. The end-user documentation included with the redistribution, if 
  17           *any, must include the following acknowledgment:
  18           *      "This product includes software developed by Viola 
  19           *      Systems (http://www.violasystems.com/)."
  20           *
  21           *Alternately, this acknowledgment may appear in the software itself, 
  22           *if and wherever such third-party acknowledgments normally appear.
  23           *
  24           *4. The names "OpenTCP" and "Viola Systems" must not be used to 
  25           *endorse or promote products derived from this software without prior 
  26           *written permission. For written permission, please contact 
  27           *opentcp@opentcp.org.
  28           *
  29           *5. Products derived from this software may not be called "OpenTCP", 
  30           *nor may "OpenTCP" appear in their name, without prior written 
  31           *permission of the Viola Systems Ltd.
  32           *
  33           *THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED 
  34           *WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
  35           *MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
  36           *IN NO EVENT SHALL VIOLA SYSTEMS LTD. OR ITS CONTRIBUTORS BE LIABLE 
  37           *FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
  38           *CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
  39           *SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
  40           *BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
  41           *WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 
  42           *OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
  43           *EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  44           *====================================================================
  45           *
  46           *OpenTCP is the unified open source TCP/IP stack available on a series 
  47           *of 8/16-bit microcontrollers, please see <http://www.opentcp.org>.
  48           *
  49           *For more information on how to network-enable your devices, or how to 
  50           *obtain commercial technical support for OpenTCP, please see 
  51           *<http://www.violasystems.com/>.
  52           */
  53          
C51 COMPILER V7.06   INIT                                                                  11/26/2004 11:32:43 PAGE 2   

  54          /** \file init.c
  55           *      \brief Default initialization file for OpenTCP on Atmel's AT89S8252
  56           *      \author 
  57           *              \li Jari Lahti (jari.lahti@violasystems.com)
  58           *      \version 1.0
  59           *      \date 27.1.2003
  60           *      \bug
  61           *      \warning
  62           *      \todo
  63           *  
  64           *      This file contains a function that initializes the HW resources 
  65           *      of processor (Pins, Peripherals). For stack and memory mode 
  66           *      selection modify start.asm. For Interrupt level modify VECTORS.C. 
  67           */
  68          
  69          
  70          /*      Alexey Selischev (bmp@beep.ru) */
  71          
  72          #include <inet/arch/at89s8252/at89s8252.h>
*** WARNING C318 IN LINE 72 OF ..\arch\at89s8252\init.c: can't open file 'inet/arch/at89s8252/at89s8252.h'
  73          #include <inet/datatypes.h>
*** WARNING C318 IN LINE 73 OF ..\arch\at89s8252\init.c: can't open file 'inet/datatypes.h'
  74          
  75          
  76          void init (void)
  77          {
  78   1      
  79   1              /** INIT I/O PINS       **/
  80   1      
  81   1      
  82   1              /*      Port 0  - set to Input state    */
  83   1              P0 = 0xFF;      
*** ERROR C202 IN LINE 83 OF ..\ARCH\AT89S8252\INIT.C: 'P0': undefined identifier
  84   1              
  85   1              /*      Port 1  - set to Input state    */
  86   1              P1 = 0xFF;      
*** ERROR C202 IN LINE 86 OF ..\ARCH\AT89S8252\INIT.C: 'P1': undefined identifier
  87   1              
  88   1              /*      Port 2  - set to Input state    */
  89   1              P2 = 0xFF;      
*** ERROR C202 IN LINE 89 OF ..\ARCH\AT89S8252\INIT.C: 'P2': undefined identifier
  90   1              
  91   1              /*      Port 3  - set to Input state    */
  92   1              P3 = 0xFF;      
*** ERROR C202 IN LINE 92 OF ..\ARCH\AT89S8252\INIT.C: 'P3': undefined identifier
  93   1      
  94   1      
  95   1              /* Initialize 16 bit reload timer for slow 10 ms step SW timers */
  96   1              TH1 = T1_HIGH; /* 10 ms interrupt interval @12 MHz */
*** ERROR C202 IN LINE 96 OF ..\ARCH\AT89S8252\INIT.C: 'TH1': undefined identifier
  97   1              TL1 = T1_LOW; /* Using Timer 1 */
*** ERROR C202 IN LINE 97 OF ..\ARCH\AT89S8252\INIT.C: 'TL1': undefined identifier
  98   1      
  99   1      
 100   1      
 101   1              /* Initialize TIMER2 for UART clock */
 102   1      /* Skip, if using MONITOR.  
 103   1      * Generic 805x have only one UART, so
 104   1      */
 105   1      #ifndef MONITOR
                      SCON = 0x50;
                      TI = 1;
C51 COMPILER V7.06   INIT                                                                  11/26/2004 11:32:43 PAGE 3   

                      REN = 1;
                      RCAP2L = RCAP2_LOW;
                      RCAP2H = RCAP2_HIGH;
                      TL2 = RCAP2_LOW;
                      TH2 = RCAP2_HIGH;
                      RCLK = 1;
                      TCLK = 1;
                      TR2 = 1;
              #endif
 117   1      
 118   1              /* Initialize the time-base timer for fast 1ms interrupt for system timer       */
 119   1              TH0 = T0_HIGH; /* ~1 ms interrupt interval using 12 MHz XTAL*/
*** ERROR C202 IN LINE 119 OF ..\ARCH\AT89S8252\INIT.C: 'TH0': undefined identifier
 120   1              TL0 = T0_LOW;   /* using Timer 0 */
*** ERROR C202 IN LINE 120 OF ..\ARCH\AT89S8252\INIT.C: 'TL0': undefined identifier
 121   1      
 122   1              /* Initialize timers 0 and 1 */
 123   1              TMOD = 0x11; /* as 16 bit timers */
*** ERROR C202 IN LINE 123 OF ..\ARCH\AT89S8252\INIT.C: 'TMOD': undefined identifier
 124   1              
 125   1              /* Initialize interrupts        */
 126   1      
 127   1              ET1 = 1; /* Enable Timer 1 Interrupt request                    */
*** ERROR C202 IN LINE 127 OF ..\ARCH\AT89S8252\INIT.C: 'ET1': undefined identifier
 128   1              ET0 = 1; /* Enable Timer 0 Interrupt request                    */
*** ERROR C202 IN LINE 128 OF ..\ARCH\AT89S8252\INIT.C: 'ET0': undefined identifier
 129   1              TR1 = 1; /* Run Timer 1 */
*** ERROR C202 IN LINE 129 OF ..\ARCH\AT89S8252\INIT.C: 'TR1': undefined identifier
 130   1              TR0 = 1; /* Run Timer 0 */
*** ERROR C202 IN LINE 130 OF ..\ARCH\AT89S8252\INIT.C: 'TR0': undefined identifier
 131   1      
 132   1              EA = 1; /* Enable all interrupts */
*** ERROR C202 IN LINE 132 OF ..\ARCH\AT89S8252\INIT.C: 'EA': undefined identifier
 133   1      
 134   1              
 135   1              /* Kick WD      */
 136   1      
 137   1      }
 138          

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

⌨️ 快捷键说明

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