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

📄 os_cpu_c.lst

📁 一个关于UCOS的KEIL工程
💻 LST
📖 第 1 页 / 共 2 页
字号:
C51 COMPILER V8.08   OS_CPU_C                                                              04/08/2008 09:22:25 PAGE 1   


C51 COMPILER V8.08, COMPILATION OF MODULE OS_CPU_C
OBJECT MODULE PLACED IN OS_CPU_C.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE OS_CPU_C.C LARGE BROWSE DEBUG OBJECTEXTEND

line 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          *                                        8051/8052 Specific code
  10          *                                          LARGE MEMORY MODEL
  11          *
  12          *                                        Keil C Compiler V6.23a
  13          *                                       (MSC51 Compatible Target)
  14          *
  15          * File         : OS_CPU_C.C
  16          * By           : Jean J. Labrosse
  17          * Replant      : wl.peng
  18          *********************************************************************************************************
  19          */
  20          
  21          #define  OS_CPU_GLOBALS
  22          #include "includes.h"
  23          
  24          /*
  25          *********************************************************************************************************
  26          *                                       OS INITIALIZATION HOOK
  27          *                                            (BEGINNING)
  28          *
  29          * Description: This function is called by OSInit() at the beginning of OSInit().
  30          *
  31          * Arguments  : none
  32          *
  33          * Note(s)    : 1) Interrupts should be disabled during this call.
  34          *********************************************************************************************************
  35          */
  36          #if OS_CPU_HOOKS_EN > 0 && OS_VERSION > 203
  37          void  OSInitHookBegin (void) KCREENTRANT
  38          {
  39   1      }
  40          #endif
  41          
  42          /*
  43          *********************************************************************************************************
  44          *                                       OS INITIALIZATION HOOK
  45          *                                               (END)
  46          *
  47          * Description: This function is called by OSInit() at the end of OSInit().
  48          *
  49          * Arguments  : none
  50          *
  51          * Note(s)    : 1) Interrupts should be disabled during this call.
  52          *********************************************************************************************************
  53          */
  54          #if OS_CPU_HOOKS_EN > 0 && OS_VERSION > 203
  55          void  OSInitHookEnd (void) KCREENTRANT
C51 COMPILER V8.08   OS_CPU_C                                                              04/08/2008 09:22:25 PAGE 2   

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

 118          *                                           STATISTIC TASK HOOK
 119          *
 120          * Description: This function is called every second by uC/OS-II's statistics task.  This allows your 
 121          *              application to add functionality to the statistics task.
 122          *
 123          * Arguments  : none
 124          *********************************************************************************************************
 125          */
 126          
 127          #if OS_CPU_HOOKS_EN > 0 
 128          void  OSTaskStatHook (void) KCREENTRANT
 129          {
 130   1      }
 131          #endif
 132          
 133          /*$PAGE*/
 134          /*
 135          *********************************************************************************************************
 136          *                                        INITIALIZE A TASK'S STACK
 137          *
 138          * Description: This function is called by either OSTaskCreate() or OSTaskCreateExt() to initialize the

⌨️ 快捷键说明

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