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

📄 os_cpu_c.lst

📁 移植的ucos
💻 LST
📖 第 1 页 / 共 2 页
字号:
   \                     ?0051:
   \   00000080   8340                       ST      Z,R20
   \                     ?0053:
   \   00000082   2FE6                       MOV     R30,R22
   \   00000084   2FF7                       MOV     R31,R23
   \   00000086   5061                       SUBI    R22,LOW(1)
   \   00000088   4070                       SBCI    R23,LOW(0)
   \   0000008A   9508                       RET     
   \                     ;	pdata           	R20-R21
   \                     ;	tmp             	R2-R3
   \                     ;	task            	R0-R1
   \                     ;	stks            	R16-R17
   \                     ;	stk             	R22-R23
   \                     ;	ptos            	R16-R17
   \                     ;	opt             	R18-R19
   \                     OSTaskCreateHook:
    106          
    107          /*$PAGE*/
    108          #if OS_CPU_HOOKS_EN
    109          /*
    110          *********************************************************************************************************
    111          *                                          TASK CREATION HOOK
    112          *
    113          * Description: This function is called when a task is created.
    114          *
    115          * Arguments  : ptcb   is a pointer to the task control block of the task being created.
    116          *
    117          * Note(s)    : 1) Interrupts are disabled during this call.
    118          *********************************************************************************************************
    119          */
    120          void OSTaskCreateHook (OS_TCB *ptcb)
    121          {
    122              ptcb = ptcb;                       /* Prevent compiler warning                                     */
    123          }
   \   0000008C   9508                       RET     
   \                     ;	ptcb            	R16-R17
   \                     OSTaskDelHook:
    124          
    125          
    126          /*
    127          *********************************************************************************************************
    128          *                                           TASK DELETION HOOK
    129          *
    130          * Description: This function is called when a task is deleted.
    131          *
    132          * Arguments  : ptcb   is a pointer to the task control block of the task being deleted.
    133          *
    134          * Note(s)    : 1) Interrupts are disabled during this call.
    135          *********************************************************************************************************
    136          */
    137          void OSTaskDelHook (OS_TCB *ptcb)
    138          {
    139              ptcb = ptcb;                       /* Prevent compiler warning                                     */
    140          }
   \   0000008E   9508                       RET     
   \                     ;	ptcb            	R16-R17
   \                     OSTaskSwHook:
    141          
    142          /*
    143          *********************************************************************************************************
    144          *                                           TASK SWITCH HOOK
    145          *
    146          * Description: This function is called when a task switch is performed.  This allows you to perform other
    147          *              operations during a context switch.
    148          *
    149          * Arguments  : none
    150          *
    151          * Note(s)    : 1) Interrupts are disabled during this call.
    152          *              2) It is assumed that the global pointer 'OSTCBHighRdy' points to the TCB of the task that
    153          *                 will be 'switched in' (i.e. the highest priority task) and, 'OSTCBCur' points to the 
    154          *                 task being switched out (i.e. the preempted task).
    155          *********************************************************************************************************
    156          */
    157          void OSTaskSwHook (void)
    158          {
    159          }
   \   00000090   9508                       RET     
   \                     OSTaskStatHook:
    160          
    161          /*
    162          *********************************************************************************************************
    163          *                                           STATISTIC TASK HOOK
    164          *
    165          * Description: This function is called every second by uC/OS-II's statistics task.  This allows your 
    166          *              application to add functionality to the statistics task.
    167          *
    168          * Arguments  : none
    169          *********************************************************************************************************
    170          */
    171          void OSTaskStatHook (void)
    172          {
    173          }
   \   00000092   9508                       RET     
   \                     OSTimeTickHook:
    174          
    175          /*
    176          *********************************************************************************************************
    177          *                                               TICK HOOK
    178          *
    179          * Description: This function is called every tick.
    180          *
    181          * Arguments  : none
    182          *
    183          * Note(s)    : 1) Interrupts may or may not be ENABLED during this call.
    184          *********************************************************************************************************
    185          */
    186          void OSTimeTickHook (void)
    187          {
    188          }
   \   00000094   9508                       RET     
   \                     OSInitHookBegin:
    189          
    190          /*
    191          *********************************************************************************************************
    192          *                                       OS INITIALIZATION HOOK
    193          *                                            (BEGINNING)
    194          *
    195          * Description: This function is called by OSInit() at the beginning of OSInit().
    196          *
    197          * Arguments  : none
    198          *
    199          * Note(s)    : 1) Interrupts should be disabled during this call.
    200          *********************************************************************************************************
    201          */
    202          #if OS_VERSION > 203
    203          void OSInitHookBegin (void)
    204          {
    205          }
   \   00000096   9508                       RET     
   \                     OSInitHookEnd:
    206          #endif
    207          
    208          /*
    209          *********************************************************************************************************
    210          *                                       OS INITIALIZATION HOOK
    211          *                                               (END)
    212          *
    213          * Description: This function is called by OSInit() at the end of OSInit().
    214          *
    215          * Arguments  : none
    216          *
    217          * Note(s)    : 1) Interrupts should be disabled during this call.
    218          *********************************************************************************************************
    219          */
    220          #if OS_VERSION > 203
    221          void OSInitHookEnd (void)
    222          {
    223          }
   \   00000098   9508                       RET     
   \                     OSTCBInitHook:
    224          #endif
    225          
    226          /*
    227          *********************************************************************************************************
    228          *                                           OSTCBInit() HOOK
    229          *
    230          * Description: This function is called by OSTCBInit() after setting up most of the TCB.
    231          *
    232          * Arguments  : ptcb    is a pointer to the TCB of the task being created.
    233          *
    234          * Note(s)    : 1) Interrupts may or may not be ENABLED during this call.
    235          *********************************************************************************************************
    236          */
    237          #if OS_VERSION > 203
    238          void OSTCBInitHook (OS_TCB *ptcb)
    239          {
    240              ptcb = ptcb;                                           /* Prevent Compiler warning                 */
    241          }
   \   0000009A   9508                       RET     
   \                     ;	ptcb            	R16-R17
   \                     OSTaskIdleHook:
    242          #endif
    243          
    244          /*
    245          *********************************************************************************************************
    246          *                                             IDLE TASK HOOK
    247          *
    248          * Description: This function is called by the idle task.  This hook has been added to allow you to do  
    249          *              such things as STOP the CPU to conserve power.
    250          *
    251          * Arguments  : none
    252          *
    253          * Note(s)    : 1) Interrupts are enabled during this call.
    254          *********************************************************************************************************
    255          */
    256          #if OS_VERSION >= 205
    257          void OSTaskIdleHook (void)
    258          {
    259          }
   \   0000009C   9508                       RET     
    260          #endif
    261          
    262          #endif
   \                     	END

Source file: os_cpu_c.c
Errors: none
Warnings: none
Code size: 158
Constant size: 0
Static variable size: 0

⌨️ 快捷键说明

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