?? os_cpu_c.lst
字號:
\ 00000050 D017 RCALL ?0021
102 *stk-- = (INT8U)0x00; /* R20 = 0x00 */
\ 00000052 D016 RCALL ?0021
103 *stk-- = (INT8U)0x00; /* R21 = 0x00 */
\ 00000054 D015 RCALL ?0021
104 *stk-- = (INT8U)0x00; /* R22 = 0x00 */
\ 00000056 D014 RCALL ?0021
105 *stk-- = (INT8U)0x00; /* R23 = 0x00 */
\ 00000058 D013 RCALL ?0021
106 *stk-- = (INT8U)0x00; /* R24 = 0x00 */
\ 0000005A D012 RCALL ?0021
107 *stk-- = (INT8U)0x00; /* R25 = 0x00 */
\ 0000005C D011 RCALL ?0021
108 *stk-- = (INT8U)0x00; /* R26 = 0x00 */
\ 0000005E D010 RCALL ?0021
109 *stk-- = (INT8U)0x00; /* R27 = 0x00 */
\ 00000060 D00F RCALL ?0021
110 /* will not store the heap pointer Y=R29:R28 */
111 *stk-- = (INT8U)0x00; /* R30 = 0x00 */
\ 00000062 D00E RCALL ?0021
112 *stk-- = (INT8U)0x00; /* R31 = 0x00 */
\ 00000064 D00D RCALL ?0021
113 *stk-- = (INT8U)0x00; /* RAMPZ = 0x00 */
\ 00000066 8200 ST Z,R0
114 *stk-- = (INT8U)0x80; /* SREG = Interrupts enabled */
\ 00000068 E840 LDI R20,128
\ 0000006A D00D RCALL ?0023
115 tmp = (INT16U)(stks);
116 *stk-- = (INT8U)(tmp >> 8); /* SPH */
\ 0000006C D00B RCALL ?0022
\ 0000006E 8310 ST Z,R17
117 *stk = (INT8U)(tmp); /* SPL */
\ 00000070 2FE6 MOV R30,R22
\ 00000072 2FF7 MOV R31,R23
\ 00000074 8300 ST Z,R16
118 return ((void *)stk);
\ 00000076 2F06 MOV R16,R22
\ 00000078 2F17 MOV R17,R23
119 }
\ 0000007A 9624 ADIW R28,LOW(4)
\ 0000007C 9508 RET
\ ?0020:
\ 0000007E D003 RCALL ?0025
\ ?0021:
\ 00000080 8200 ST Z,R0
\ 00000082 C001 RJMP ?0025
\ ?0022:
\ 00000084 8340 ST Z,R20
\ ?0023:
\ ?0025:
\ 00000086 2FE6 MOV R30,R22
\ 00000088 2FF7 MOV R31,R23
\ 0000008A 5061 SUBI R22,LOW(1)
\ 0000008C 4070 SBCI R23,LOW(0)
\ 0000008E 9508 RET
\ ; pdata R20-R21
\ ; tmp R2-R3
\ ; task R0-R1
\ ; stks R16-R17
\ ; stk R22-R23
\ ; ptos R16-R17
\ ; opt R18-R19
\ OSTaskCreateHook:
120
121 /*$PAGE*/
122 #if OS_CPU_HOOKS_EN
123 /*
124 *********************************************************************************************************
125 * TASK CREATION HOOK
126 *
127 * Description: This function is called when a task is created.
128 *
129 * Arguments : ptcb is a pointer to the task control block of the task being created.
130 *
131 * Note(s) : 1) Interrupts are disabled during this call.
132 *********************************************************************************************************
133 */
134 void OSTaskCreateHook (OS_TCB *ptcb)
135 {
136 ptcb = ptcb; /* Prevent compiler warning */
137 }
\ 00000090 9508 RET
\ ; ptcb R16-R17
\ OSTaskDelHook:
138
139
140 /*
141 *********************************************************************************************************
142 * TASK DELETION HOOK
143 *
144 * Description: This function is called when a task is deleted.
145 *
146 * Arguments : ptcb is a pointer to the task control block of the task being deleted.
147 *
148 * Note(s) : 1) Interrupts are disabled during this call.
149 *********************************************************************************************************
150 */
151 void OSTaskDelHook (OS_TCB *ptcb)
152 {
153 ptcb = ptcb; /* Prevent compiler warning */
154 }
\ 00000092 9508 RET
\ ; ptcb R16-R17
\ OSTaskSwHook:
155
156 /*
157 *********************************************************************************************************
158 * TASK SWITCH HOOK
159 *
160 * Description: This function is called when a task switch is performed. This allows you to perform other
161 * operations during a context switch.
162 *
163 * Arguments : none
164 *
165 * Note(s) : 1) Interrupts are disabled during this call.
166 * 2) It is assumed that the global pointer 'OSTCBHighRdy' points to the TCB of the task that
167 * will be 'switched in' (i.e. the highest priority task) and, 'OSTCBCur' points to the
168 * task being switched out (i.e. the preempted task).
169 *********************************************************************************************************
170 */
171 void OSTaskSwHook (void)
172 {
173 }
\ 00000094 9508 RET
\ OSTaskStatHook:
174
175 /*
176 *********************************************************************************************************
177 * STATISTIC TASK HOOK
178 *
179 * Description: This function is called every second by uC/OS-II's statistics task. This allows your
180 * application to add functionality to the statistics task.
181 *
182 * Arguments : none
183 *********************************************************************************************************
184 */
185 void OSTaskStatHook (void)
186 {
187 }
\ 00000096 9508 RET
\ OSTimeTickHook:
188
189 /*
190 *********************************************************************************************************
191 * TICK HOOK
192 *
193 * Description: This function is called every tick.
194 *
195 * Arguments : none
196 *
197 * Note(s) : 1) Interrupts may or may not be ENABLED during this call.
198 *********************************************************************************************************
199 */
200 void OSTimeTickHook (void)
201 {
202 }
\ 00000098 9508 RET
203 #endif
\ END
Source file: os_cpu_c.c
Errors: none
Warnings: none
Code size: 154
Constant size: 0
Static variable size: 0
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -