예제 #1
0
void  OSTaskReturnHook (OS_TCB  *ptcb)
{
#if OS_APP_HOOKS_EN > 0u
    App_TaskReturnHook(ptcb);
#else
    (void)ptcb;
#endif
}
예제 #2
0
/**
  * @brief  This function is called if a task accidentally returns.  In other words, 
  *         a task should either be an infinite loop or delete itself when done.
  * @param  p_tcb  Pointer to the task control block of the task that is returning.
  * @retval None
  */
void  OSTaskReturnHook (OS_TCB  *p_tcb)
{
#if OS_APP_HOOKS_EN > 0u
    App_TaskReturnHook(p_tcb);
#else
    (void)p_tcb;                                            /* Prevent compiler warning*/
#endif
}