Example #1
0
void  OSTaskCreateHook (OS_TCB *ptcb)
{
#if OS_VIEW_MODULE > 0
    OSView_TaskCreateHook(ptcb);
#else
    (void)ptcb;                        /* Prevent compiler warning                                     */
#endif
}
Example #2
0
void  OSTaskCreateHook (OS_TCB *ptcb)   
{   
#if OS_CPU_FPU_EN > 0    
    INT8U  err;   
    void  *pblk;   
#endif    
   
   
#if OS_CPU_FPU_EN > 0    
    if (ptcb->OSTCBOpt & OS_TASK_OPT_SAVE_FP) {                         /* See if task needs FP support                             */   
        pblk = OSMemGet(OSFPPartPtr, &err);                             /* Yes, Get storage for VFP registers                       */   
        if (pblk != (void *)0) {                                        /*      Did we get a memory block?                          */   
            ptcb->OSTCBExtPtr = pblk;                                   /*      Yes, Link to task's TCB                             */   
            OS_CPU_FP_Save(pblk);                                       /*           Save the VFP registers in block                */   
        }   
    }   
#endif    
   
#if OS_VIEW_MODULE > 0    
    OSView_TaskCreateHook(ptcb);   
#else    
    (void)ptcb;                                                         /* Prevent compiler warning                                 */   
#endif    
}   
Example #3
0
/*
*********************************************************************************************************
*                                      TASK CREATION HOOK (APPLICATION)
*
* Description : This function is called when a task is created.
*
* Argument : ptcb   is a pointer to the task control block of the task being created.
*
* Note     : (1) Interrupts are disabled during this call.
*********************************************************************************************************
*/
void          App_TaskCreateHook      (OS_TCB          *ptcb)
{
#if (OS_VIEW_MODULE == DEF_ENABLED)
    OSView_TaskCreateHook(ptcb);
#endif
}