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

📄 main.lst

📁 基于8051共享时钟调度器的can总线通讯
💻 LST
字号:
C51 COMPILER V6.10  MAIN                                                                   04/19/2001 14:15:58 PAGE 1   


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

stmt level    source

   1          /*------------------------------------------------------------------*-
   2          
   3             Main.c (v1.00)
   4          
   5            ------------------------------------------------------------------
   6          
   7             Test program for shared-clock (CAN) scheduler for c515c
   8          
   9             *** SLAVE CODE ***
  10          
  11             --- HARDWARE ASSUMED ---
  12             --- c515c
  13          
  14             *** Both Master and Slave share the same tick rate (6 ms) ***
  15             *** See Master code for details ***
  16          
  17             Required linker options (see Chapter 14 for details):
  18          
  19             OVERLAY (main ~ (LED_Flash_Update,TRAFFIC_LIGHTS_Update), 
  20             SCH_Dispatch_Tasks ! (LED_Flash_Update,TRAFFIC_LIGHTS_Update))
  21           
  22          
  23             COPYRIGHT
  24             ---------
  25          
  26             This code is from the book:
  27          
  28             PATTERNS FOR TIME-TRIGGERED EMBEDDED SYSTEMS by Michael J. Pont 
  29             [Pearson Education, 2001; ISBN: 0-201-33138-1].
  30          
  31             This code is copyright (c) 2001 by Michael J. Pont.
  32           
  33             See book for copyright details and other information.
  34          
  35          -*------------------------------------------------------------------*/
  36          
  37          #include "Main.h"
  38          
  39          #include "LED_Flas.h"
  40          #include "SCC_S515.H"
  41          #include "TLight_B.h"
  42          
  43          /* ............................................................... */
  44          /* ............................................................... */
  45          
  46          void main(void)
  47             {
  48   1         // Set up the scheduler 
  49   1         SCC_A_SLAVE_Init_CAN();
  50   1      
  51   1         // Set up the flash LED task (demo purposes)
  52   1         LED_Flash_Init();
  53   1      
  54   1         // Prepare for the traffic light task
  55   1         TRAFFIC_LIGHTS_Init();
C51 COMPILER V6.10  MAIN                                                                   04/19/2001 14:15:58 PAGE 2   

  56   1      
  57   1         // TIMING IS IN TICKS (6 ms tick interval)
  58   1         // Add a 'flash LED' task (on for 1002 ms, off for 1002 ms)
  59   1         SCH_Add_Task(LED_Flash_Update, 0, 167);
  60   1      
  61   1         // Add the traffic-light task
  62   1         SCH_Add_Task(TRAFFIC_LIGHTS_Update, 30, 167);
  63   1      
  64   1         // Start the scheduler
  65   1         SCC_A_SLAVE_Start();
  66   1      
  67   1         while(1)
  68   1            {
  69   2            SCH_Dispatch_Tasks();
  70   2            }
  71   1         }
  72          
  73          /*------------------------------------------------------------------*-
  74            ---- END OF FILE -------------------------------------------------
  75          -*------------------------------------------------------------------*/
  76          
  77          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     47    ----
   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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -