main.lst

来自「Embedded C 这本书的范例光碟程式」· LST 代码 · 共 82 行

LST
82
字号
C51 COMPILER V6.21  MAIN                                                                   01/23/2002 18:10:45 PAGE 1   


C51 COMPILER V6.21, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN MAIN.OBJ
COMPILER INVOKED BY: C:\KEIL\C51\BIN\C51.EXE MAIN.C OPTIMIZE(6,SPEED) BROWSE DEBUG OBJECTEXTEND

stmt level    source

   1          /*------------------------------------------------------------------*-
   2          
   3             Main.c (v1.00)
   4          
   5            ------------------------------------------------------------------
   6          
   7             Simple intruder alarm system.
   8          
   9          
  10             COPYRIGHT
  11             ---------
  12          
  13             This code is associated with the book:
  14          
  15             EMBEDDED C by Michael J. Pont 
  16             [Pearson Education, 2002: ISBN: 0-201-79523-X].
  17          
  18             This code is copyright (c) 2001 by Michael J. Pont.
  19           
  20             See book for copyright details and other information.
  21          
  22          -*------------------------------------------------------------------*/
  23          
  24          #include "Main.H"
  25          #include "Port.H"
  26          #include "Simple_EOS.H"
  27          
  28          #include "PC_O_T1.h"
  29          #include "Keypad.h"
  30          #include "Intruder.h"
  31          
  32          /* ............................................................... */
  33          
  34          void main(void)
  35             {
  36   1         // Set baud rate to 9600
  37   1         PC_LINK_O_Init_T1(9600);
  38   1      
  39   1         // Prepare the keypad
  40   1         KEYPAD_Init();
  41   1      
  42   1         // Prepare the intruder alarm
  43   1         INTRUDER_Init();
  44   1      
  45   1         // Set up simple EOS (5ms tick)
  46   1         sEOS_Init_Timer2(5);    
  47   1      
  48   1         while(1) // Super Loop
  49   1            {
  50   2            sEOS_Go_To_Sleep();  // Enter idle mode to save power
  51   2            }
  52   1         }
  53          
  54          /*------------------------------------------------------------------*-
  55            ---- END OF FILE -------------------------------------------------
C51 COMPILER V6.21  MAIN                                                                   01/23/2002 18:10:45 PAGE 2   

  56          -*------------------------------------------------------------------*/


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     24    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

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