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_APP_HOOKS_EN > 0 App_TaskCreateHook(ptcb); #else (void)ptcb; /* Prevent compiler warning */ #endif }
void OSTaskCreateHook (OS_TCB *ptcb) { #if OS_APP_HOOKS_EN > 0u App_TaskCreateHook(ptcb); #else (void)ptcb; /* Prevent compiler warning */ #endif }