📄 os_dbg.c
字号:
+ sizeof(OSIntQInPtr)
+ sizeof(OSIntQOutPtr)
+ sizeof(OSIntQNbrEntries)
+ sizeof(OSIntQMaxNbrEntries)
+ sizeof(OSIntQOvfCtr)
+ sizeof(OSIntQTaskTCB)
#endif
+ sizeof(OSRunning)
#ifdef OS_SAFETY_CRITICAL_IEC61508
+ sizeof(OSSafetyCriticalStartFlag);
#endif
#if OS_CFG_FLAG_EN > 0u
+ sizeof(OSFlagQty)
#endif
#if OS_CFG_MEM_EN > 0u
+ sizeof(OSMemQty)
#endif
+ sizeof(OSMsgPool)
#if OS_CFG_MUTEX_EN > 0u
+ sizeof(OSMutexQty)
#endif
+ sizeof(OSPrioCur)
+ sizeof(OSPrioHighRdy)
+ sizeof(OSPrioTbl)
#if OS_CFG_Q_EN > 0u
+ sizeof(OSQQty)
#endif
+ sizeof(OSRdyList)
+ sizeof(OSSchedLockNestingCtr)
#if OS_CFG_SCHED_LOCK_TIME_MEAS_EN > 0u
+ sizeof(OSSchedLockTimeBegin)
+ sizeof(OSSchedLockTimeMax)
+ sizeof(OSSchedLockTimeMaxCur)
#endif
#if OS_CFG_SCHED_ROUND_ROBIN_EN
+ sizeof(OSSchedRoundRobinDfltTimeQuanta)
+ sizeof(OSSchedRoundRobinEn)
#endif
#if OS_CFG_SEM_EN > 0u
+ sizeof(OSSemQty)
#endif
+ sizeof(OSTaskCtxSwCtr)
+ sizeof(OSTaskQty)
#if OS_CFG_STAT_TASK_EN > 0u
+ sizeof(OSStatTaskCtr)
+ sizeof(OSStatTaskCtrMax)
+ sizeof(OSStatTaskCtrRun)
+ sizeof(OSStatTaskRdy)
+ sizeof(OSStatTaskTCB)
+ sizeof(OSStatTaskCPUUsage)
#endif
+ sizeof(OSTickCtr)
+ sizeof(OSTickTaskTCB)
#if OS_CFG_TMR_EN > 0u
+ sizeof(OSTmrTaskTCB)
+ sizeof(OSTmrTickCtr)
+ sizeof(OSTmrQty)
+ sizeof(OSTmrUpdateCnt)
+ sizeof(OSTmrUpdateCtr)
#endif
+ sizeof(OSTCBCurPtr)
+ sizeof(OSTCBHighRdyPtr);
/*$PAGE*/
/*
************************************************************************************************************************
* OS DEBUG INITIALIZATION
*
* Description: This function is used to make sure that debug variables that are unused in the application are not
* optimized away. This function might not be necessary for all compilers. In this case, you should simply
* DELETE the code in this function while still leaving the declaration of the function itself.
*
* Arguments : none
*
* Returns : none
*
* Note(s) : (1) This code doesn't do anything, it simply prevents the compiler from optimizing out the 'const'
* variables which are declared in this file.
* (2) You may decide to 'compile out' the code (by using #if 0/#endif) INSIDE the function if your compiler
* DOES NOT optimize out the 'const' variables above.
************************************************************************************************************************
*/
void OS_Dbg_Init (void)
{
void const *p_temp;
p_temp = (void const *)&OSDbg_DbgEn;
p_temp = (void const *)&OSDbg_DataSize;
p_temp = (void const *)&OSDbg_ArgChkEn;
p_temp = (void const *)&OSDbg_AppHooksEn;
p_temp = (void const *)&OSDbg_EndiannessTest;
p_temp = (void const *)&OSDbg_CalledFromISRChkEn;
p_temp = (void const *)&OSDbg_FlagGrp;
p_temp = (void const *)&OSDbg_FlagEn;
#if OS_CFG_FLAG_EN > 0u
p_temp = (void const *)&OSDbg_FlagDelEn;
p_temp = (void const *)&OSDbg_FlagModeClrEn;
p_temp = (void const *)&OSDbg_FlagPendAbortEn;
p_temp = (void const *)&OSDbg_FlagGrpSize;
p_temp = (void const *)&OSDbg_FlagWidth;
#endif
#if OS_CFG_ISR_POST_DEFERRED_EN > 0u
p_temp = (void const *)&OSDbg_IntQ;
#endif
p_temp = (void const *)&OSDbg_ISRPostDeferredEn;
p_temp = (void const *)&OSDbg_Mem;
p_temp = (void const *)&OSDbg_MemEn;
#if OS_CFG_MEM_EN > 0u
p_temp = (void const *)&OSDbg_MemSize;
#endif
p_temp = (void const *)&OSDbg_MsgEn;
#if (OS_MSG_EN) > 0u
p_temp = (void const *)&OSDbg_MsgSize;
p_temp = (void const *)&OSDbg_MsgPoolSize;
p_temp = (void const *)&OSDbg_MsgQSize;
#endif
p_temp = (void const *)&OSDbg_Mutex;
p_temp = (void const *)&OSDbg_MutexEn;
#if (OS_CFG_MUTEX_EN) > 0u
p_temp = (void const *)&OSDbg_MutexDelEn;
p_temp = (void const *)&OSDbg_MutexPendAbortEn;
p_temp = (void const *)&OSDbg_MutexSize;
#endif
p_temp = (void const *)&OSDbg_ObjTypeChkEn;
p_temp = (void const *)&OSDbg_PendMultiEn;
p_temp = (void const *)&OSDbg_PendDataSize;
p_temp = (void const *)&OSDbg_PendListSize;
p_temp = (void const *)&OSDbg_PendObjSize;
p_temp = (void const *)&OSDbg_PrioMax;
p_temp = (void const *)&OSDbg_PrioTblSize;
p_temp = (void const *)&OSDbg_PtrSize;
p_temp = (void const *)&OSDbg_Q;
p_temp = (void const *)&OSDbg_QEn;
#if (OS_CFG_Q_EN) > 0u
p_temp = (void const *)&OSDbg_QDelEn;
p_temp = (void const *)&OSDbg_QFlushEn;
p_temp = (void const *)&OSDbg_QPendAbortEn;
p_temp = (void const *)&OSDbg_QSize;
#endif
p_temp = (void const *)&OSDbg_SchedRoundRobinEn;
p_temp = (void const *)&OSDbg_Sem;
p_temp = (void const *)&OSDbg_SemEn;
#if (OS_CFG_SEM_EN) > 0u
p_temp = (void const *)&OSDbg_SemDelEn;
p_temp = (void const *)&OSDbg_SemPendAbortEn;
p_temp = (void const *)&OSDbg_SemSetEn;
p_temp = (void const *)&OSDbg_SemSize;
#endif
p_temp = (void const *)&OSDbg_RdyList;
p_temp = (void const *)&OSDbg_RdyListSize;
p_temp = (void const *)&OSDbg_StkWidth;
p_temp = (void const *)&OSDbg_StatTaskEn;
p_temp = (void const *)&OSDbg_StatTaskStkChkEn;
p_temp = (void const *)&OSDbg_TaskChangePrioEn;
p_temp = (void const *)&OSDbg_TaskDelEn;
p_temp = (void const *)&OSDbg_TaskQEn;
p_temp = (void const *)&OSDbg_TaskQPendAbortEn;
p_temp = (void const *)&OSDbg_TaskProfileEn;
p_temp = (void const *)&OSDbg_TaskRegTblSize;
p_temp = (void const *)&OSDbg_TaskSemPendAbortEn;
p_temp = (void const *)&OSDbg_TaskSuspendEn;
p_temp = (void const *)&OSDbg_TCBSize;
p_temp = (void const *)&OSDbg_TickSpokeSize;
p_temp = (void const *)&OSDbg_TimeDlyHMSMEn;
p_temp = (void const *)&OSDbg_TimeDlyResumeEn;
p_temp = (void const *)&OSDbg_Tmr;
p_temp = (void const *)&OSDbg_TmrEn;
#if (OS_CFG_TMR_EN) > 0u
p_temp = (void const *)&OSDbg_TmrDelEn;
p_temp = (void const *)&OSDbg_TmrSize;
p_temp = (void const *)&OSDbg_TmrSpokeSize;
#endif
p_temp = (void const *)&OSDbg_VersionNbr;
p_temp = p_temp; /* Prevent compiler warning for not using 'p_temp' */
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -