📄 os_cpu_c.lst
字号:
200 /*$PAGE*/
201 #if OS_CPU_HOOKS_EN
202 /*
203 *******************************************************************************
204 **************************
205 * OS INITIALIZATION HOOK
206 * (BEGINNING)
207 *
208 * Description: This function is called by OSInit() at the beginning of OSInit(
209 ).
210 *
211 * Arguments : none
212 *
213 * Note(s) : 1) Interrupts should be disabled during this call.
214 *******************************************************************************
215 **************************
216 */
217 #if OS_VERSION > 203
218 void OSInitHookBegin (void) reentrant
219 {
220 1 }
221 #endif
222
223 /*
224 *******************************************************************************
225 **************************
226 * OS INITIALIZATION HOOK
227 * (END)
228 *
229 * Description: This function is called by OSInit() at the end of OSInit().
230 *
231 * Arguments : none
232 *
233 * Note(s) : 1) Interrupts should be disabled during this call.
234 *******************************************************************************
235 **************************
236 */
237 #if OS_VERSION > 203
238 void OSInitHookEnd (void) reentrant
239 {
240 1 }
241 #endif
C51 COMPILER V7.50 OS_CPU_C 12/14/2007 08:25:31 PAGE 5
242
243
244 /*
245 *******************************************************************************
246 **************************
247 * TASK CREATION HOOK
248 *
249 * Description: This function is called when a task is created.
250 *
251 * Arguments : ptcb is a pointer to the task control block of the task
252 being created.
253 *
254 * Note(s) : 1) Interrupts are disabled during this call.
255 *******************************************************************************
256 **************************
257 */
258 void OSTaskCreateHook (OS_TCB *ptcb) reentrant
259 {
260 1 ptcb = ptcb; /* Prevent compiler
261 1 warning */
262 1 }
263
264
265 /*
266 *******************************************************************************
267 **************************
268 * TASK DELETION HOOK
269 *
270 * Description: This function is called when a task is deleted.
271 *
272 * Arguments : ptcb is a pointer to the task control block of the task
273 being deleted.
274 *
275 * Note(s) : 1) Interrupts are disabled during this call.
276 *******************************************************************************
277 **************************
278 */
279 #if OS_TASK_DEL_EN > 0
280 void OSTaskDelHook (OS_TCB *ptcb) reentrant
281 {
282 1 ptcb = ptcb; /* Prevent compiler
283 1 warning */
284 1 }
285 #endif
286
287 /*
288 *******************************************************************************
289 **************************
290 * TASK SWITCH HOOK
291 *
292 * Description: This function is called when a task switch is performed. This
293 allows you to perform other
294 * operations during a context switch.
295 *
296 * Arguments : none
297 *
298 * Note(s) : 1) Interrupts are disabled during this call.
299 * 2) It is assumed that the global pointer 'OSTCBHighRdy' points
300 to the TCB of the task that
301 * will be 'switched in' (i.e. the highest priority task) and,
302 'OSTCBCur' points to the
303 * task being switched out (i.e. the preempted task).
C51 COMPILER V7.50 OS_CPU_C 12/14/2007 08:25:31 PAGE 6
304 *******************************************************************************
305 **************************
306 */
307 void OSTaskSwHook (void) reentrant
308 {
309 1 }
310
311 /*
312 *******************************************************************************
313 **************************
314 * STATISTIC TASK HOOK
315 *
316 * Description: This function is called every second by uC/OS-II's statistics
317 task. This allows your
318 * application to add functionality to the statistics task.
319 *
320 * Arguments : none
321 *******************************************************************************
322 **************************
323 */
324 void OSTaskStatHook (void) reentrant
325 {
326 1 }
327
328 /*
329 *******************************************************************************
330 **************************
331 * OSTCBInit() HOOK
332 *
333 * Description: This function is called by OSTCBInit() after setting up most
334 of the TCB.
335 *
336 * Arguments : ptcb is a pointer to the TCB of the task being created.
337 *
338 * Note(s) : 1) Interrupts may or may not be ENABLED during this call.
339 *******************************************************************************
340 **************************
341 */
342 #if OS_VERSION > 203
343 void OSTCBInitHook (OS_TCB *ptcb) reentrant
344 {
345 1 ptcb = ptcb; /* Prevent
346 1 Compiler warning */
347 1 }
348 #endif
349
350
351 /*
352 *******************************************************************************
353 **************************
354 * TICK HOOK
355 *
356 * Description: This function is called every tick.
357 *
358 * Arguments : none
359 *
360 * Note(s) : 1) Interrupts may or may not be ENABLED during this call.
361 *******************************************************************************
362 **************************
363 */
364 void OSTimeTickHook (void) reentrant
365 {
C51 COMPILER V7.50 OS_CPU_C 12/14/2007 08:25:31 PAGE 7
366 1 }
367
368
369 /*
370 *******************************************************************************
371 **************************
372 * IDLE TASK HOOK
373 *
374 * Description: This function is called by the idle task. This hook has been
375 added to allow you to do
376 * such things as STOP the CPU to conserve power.
377 *
378 * Arguments : none
379 *
380 * Note(s) : 1) Interrupts are enabled during this call.
381 *******************************************************************************
382 **************************
383 */
384 #if OS_VERSION >= 251
385 void OSTaskIdleHook (void) reentrant
386 {
387 1 }
388 #endif
389 #endif /* OS_CPU_HOOKS_EN */
390 /* simon add end */
391
392
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 756 ----
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 + -