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

📄 os_cpu_c.lst

📁 本文面向首次接触uC/OS-II的程序员
💻 LST
📖 第 1 页 / 共 2 页
字号:
C51 COMPILER V7.06   OS_CPU_C                                                              07/07/2005 22:40:45 PAGE 1   


C51 COMPILER V7.06, COMPILATION OF MODULE OS_CPU_C
OBJECT MODULE PLACED IN OS_CPU_C.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE Port\OS_CPU_C.C LARGE OPTIMIZE(SIZE) REGFILE(.\OS_AT89C5x.ORC) BROWSE NOINT
                    -PROMOTE DEBUG OBJECTEXTEND PRINT(.\OS_CPU_C.lst) OBJECT(OS_CPU_C.obj)

stmt level    source

   1          /*
   2          *********************************************************************************************************
   3          *                                               uC/OS-II
   4          *                                         The Real-Time Kernel
   5          *
   6          *                         (c) Copyright 1992-2002, Jean J. Labrosse, Weston, FL
   7          *                                          All Rights Reserved
   8          *
   9          *                                       AT89C/S5x Specific Code
  10          *                                          LARGE MEMORY MODEL
  11          *
  12          *                                           Keil C/C++ V7.09
  13          *
  14          * 文件名 : OS_CPU_C.C
  15          * 作者   : Jean J. Labrosse
  16          ; 改编   : 华歆 Huaxin@wxzte.com 中兴光电子 研发一部 2005.06
  17          *********************************************************************************************************
  18          */
  19          
  20          #define  OS_CPU_GLOBALS
  21          #include "includes.h"
  22          
  23          /*
  24          *********************************************************************************************************
  25          *                                       OS INITIALIZATION HOOK
  26          *                                            (BEGINNING)
  27          *
  28          * Description: This function is called by OSInit() at the beginning of OSInit().
  29          *
  30          * Arguments  : none
  31          *
  32          * Note(s)    : 1) Interrupts should be disabled during this call.
  33          *********************************************************************************************************
  34          */
  35          #if OS_CPU_HOOKS_EN > 0 && OS_VERSION > 203
  36          void  OSInitHookBegin (void) reentrant
  37          {
  38   1      }
  39          #endif
  40          
  41          /*
  42          *********************************************************************************************************
  43          *                                       OS INITIALIZATION HOOK
  44          *                                               (END)
  45          *
  46          * Description: This function is called by OSInit() at the end of OSInit().
  47          *
  48          * Arguments  : none
  49          *
  50          * Note(s)    : 1) Interrupts should be disabled during this call.
  51          *********************************************************************************************************
  52          */
  53          #if OS_CPU_HOOKS_EN > 0 && OS_VERSION > 203
  54          void  OSInitHookEnd (void) reentrant
C51 COMPILER V7.06   OS_CPU_C                                                              07/07/2005 22:40:45 PAGE 2   

  55          {
  56   1      }
  57          #endif
  58          
  59          /*$PAGE*/
  60          /*
  61          *********************************************************************************************************
  62          *                                          TASK CREATION HOOK
  63          *
  64          * Description: This function is called when a task is created.
  65          *
  66          * Arguments  : ptcb   is a pointer to the task control block of the task being created.
  67          *
  68          * Note(s)    : 1) Interrupts are disabled during this call.
  69          *********************************************************************************************************
  70          */
  71          #if OS_CPU_HOOKS_EN > 0 
  72          void  OSTaskCreateHook (OS_TCB *ptcb) reentrant
  73          {
  74   1          ptcb = ptcb;                       /* Prevent compiler warning                                     */
  75   1      }
  76          #endif
  77          
  78          
  79          /*
  80          *********************************************************************************************************
  81          *                                           TASK DELETION HOOK
  82          *
  83          * Description: This function is called when a task is deleted.
  84          *
  85          * Arguments  : ptcb   is a pointer to the task control block of the task being deleted.
  86          *
  87          * Note(s)    : 1) Interrupts are disabled during this call.
  88          *********************************************************************************************************
  89          */
  90          #if OS_CPU_HOOKS_EN > 0 
  91          void  OSTaskDelHook (OS_TCB *ptcb) reentrant
  92          {
  93   1          ptcb = ptcb;                       /* Prevent compiler warning                                     */
  94   1      }
  95          #endif
  96          
  97          /*
  98          *********************************************************************************************************
  99          *                                             IDLE TASK HOOK
 100          *
 101          * Description: This function is called by the idle task.  This hook has been added to allow you to do  
 102          *              such things as STOP the CPU to conserve power.
 103          *
 104          * Arguments  : none
 105          *
 106          * Note(s)    : 1) Interrupts are enabled during this call.
 107          *********************************************************************************************************
 108          */
 109          #if OS_CPU_HOOKS_EN > 0 && OS_VERSION >= 251
 110          void  OSTaskIdleHook (void) reentrant
 111          {
 112   1      }
 113          #endif
 114          
 115          /*
 116          *********************************************************************************************************
C51 COMPILER V7.06   OS_CPU_C                                                              07/07/2005 22:40:45 PAGE 3   

 117          *                                           STATISTIC TASK HOOK
 118          *
 119          * Description: This function is called every second by uC/OS-II's statistics task.  This allows your 
 120          *              application to add functionality to the statistics task.
 121          *
 122          * Arguments  : none
 123          *********************************************************************************************************
 124          */
 125          
 126          #if OS_CPU_HOOKS_EN > 0 
 127          void  OSTaskStatHook (void) reentrant
 128          {
 129   1      }
 130          #endif
 131          
 132          /*$PAGE*/
 133          /*
 134          *********************************************************************************************************
 135          *                                          OSTaskStkInit
 136          *
 137          * Description: Init stack before task running.
 138          *
 139          * Arguments  : task          is a pointer to the task code
 140          *
 141          *              pdata         is a pointer to a user supplied data area that will be passed to the task
 142          *                            when the task first executes.
 143          *
 144          *              ptos          is a pointer to the top of stack.  It is assumed that 'ptos' points to
 145          *                            a 'free' entry on the task stack.  If OS_STK_GROWTH is set to 1 then 
 146          *                            'ptos' will contain the HIGHEST valid address of the stack.  Similarly, if
 147          *                            OS_STK_GROWTH is set to 0, the 'ptos' will contains the LOWEST valid address
 148          *                            of the stack.
 149          *
 150          *              opt           specifies options that can be used to alter the behavior of OSTaskStkInit().
 151          *                            (see uCOS_II.H for OS_TASK_OPT_???).
 152          *
 153          * Returns    : Always returns the bottom of stack.
 154          *

⌨️ 快捷键说明

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