33 #define MICRIUM_SOURCE
36 #ifdef VSC_INCLUDE_SOURCE_FILE_NAMES
37 const CPU_CHAR *os_dbg__c =
"$Id: $";
42 #if OS_CFG_DBG_EN > 0u
53 CPU_INT32U const OSDbg_EndiannessTest = 0x12345678LU;
58 OS_FLAG_GRP
const OSDbg_FlagGrp = { 0u };
59 #if OS_CFG_FLAG_EN > 0u
63 CPU_INT16U const OSDbg_FlagGrpSize =
sizeof(OS_FLAG_GRP);
73 #if OS_CFG_ISR_POST_DEFERRED_EN > 0u
81 OS_MEM
const OSDbg_Mem = { 0u };
83 #if OS_CFG_MEM_EN > 0u
84 CPU_INT16U const OSDbg_MemSize =
sizeof(OS_MEM);
92 CPU_INT16U const OSDbg_MsgSize =
sizeof(OS_MSG);
93 CPU_INT16U const OSDbg_MsgPoolSize =
sizeof(OS_MSG_POOL);
94 CPU_INT16U const OSDbg_MsgQSize =
sizeof(OS_MSG_Q);
102 OS_MUTEX
const OSDbg_Mutex = { 0u };
104 #if OS_CFG_MUTEX_EN > 0u
107 CPU_INT16U const OSDbg_MutexSize =
sizeof(OS_MUTEX);
118 CPU_INT16U const OSDbg_PendDataSize =
sizeof(OS_PEND_DATA);
119 CPU_INT16U const OSDbg_PendListSize =
sizeof(OS_PEND_LIST);
120 CPU_INT16U const OSDbg_PendObjSize =
sizeof(OS_PEND_OBJ);
126 CPU_INT16U const OSDbg_PtrSize =
sizeof(
void *);
129 OS_Q
const OSDbg_Q = { 0u };
147 OS_SEM
const OSDbg_Sem = { 0u };
149 #if OS_CFG_SEM_EN > 0u
153 CPU_INT16U const OSDbg_SemSize =
sizeof(OS_SEM);
162 CPU_INT16U const OSDbg_RdyList =
sizeof(OS_RDY_LIST);
180 CPU_INT16U const OSDbg_TCBSize =
sizeof(OS_TCB);
182 CPU_INT16U const OSDbg_TickSpokeSize =
sizeof(OS_TICK_SPOKE);
187 #if defined(OS_CFG_TLS_TBL_SIZE) && (OS_CFG_TLS_TBL_SIZE > 0u)
194 OS_TMR
const OSDbg_Tmr = { 0u };
196 #if OS_CFG_TMR_EN > 0u
198 CPU_INT16U const OSDbg_TmrSize =
sizeof(OS_TMR);
199 CPU_INT16U const OSDbg_TmrSpokeSize =
sizeof(OS_TMR_SPOKE);
219 +
sizeof(OS_AppTaskCreateHookPtr)
220 +
sizeof(OS_AppTaskDelHookPtr)
221 +
sizeof(OS_AppTaskReturnHookPtr)
223 +
sizeof(OS_AppIdleTaskHookPtr)
224 +
sizeof(OS_AppStatTaskHookPtr)
225 +
sizeof(OS_AppTaskSwHookPtr)
226 +
sizeof(OS_AppTimeTickHookPtr)
232 #ifdef CPU_CFG_INT_DIS_MEAS_EN
233 +
sizeof(OSIntDisTimeMax)
237 +
sizeof(OSIntQInPtr)
238 +
sizeof(OSIntQOutPtr)
239 +
sizeof(OSIntQNbrEntries)
240 +
sizeof(OSIntQNbrEntriesMax)
241 +
sizeof(OSIntQOvfCtr)
242 +
sizeof(OSIntQTaskTCB)
243 +
sizeof(OSIntQTaskTimeMax)
248 #ifdef OS_SAFETY_CRITICAL_IEC61508
249 +
sizeof(OSSafetyCriticalStartFlag)
252 #if OS_CFG_FLAG_EN > 0u
253 +
sizeof(OSFlagDbgListPtr)
257 #if OS_CFG_MEM_EN > 0u
258 #if OS_CFG_DBG_EN > 0u
259 +
sizeof(OSMemDbgListPtr)
270 +
sizeof(OSMutexDbgListPtr)
282 +
sizeof(OSQDbgListPtr)
292 +
sizeof(OSSchedLockTimeBegin)
293 +
sizeof(OSSchedLockTimeMax)
294 +
sizeof(OSSchedLockTimeMaxCur)
297 #if OS_CFG_SCHED_ROUND_ROBIN_EN
298 +
sizeof(OSSchedRoundRobinDfltTimeQuanta)
299 +
sizeof(OSSchedRoundRobinEn)
302 #if OS_CFG_SEM_EN > 0u
303 #if OS_CFG_DBG_EN > 0u
304 +
sizeof(OSSemDbgListPtr)
310 +
sizeof(OSTaskDbgListPtr)
315 +
sizeof(OSStatResetFlag)
316 +
sizeof(OSStatTaskCPUUsage)
317 +
sizeof(OSStatTaskCPUUsageMax)
318 +
sizeof(OSStatTaskCtr)
319 +
sizeof(OSStatTaskCtrMax)
320 +
sizeof(OSStatTaskCtrRun)
321 +
sizeof(OSStatTaskRdy)
322 +
sizeof(OSStatTaskTCB)
323 +
sizeof(OSStatTaskTimeMax)
332 +
sizeof(OSTmrDbgListPtr)
335 +
sizeof(OSTmrTaskTCB)
336 +
sizeof(OSTmrTaskTimeMax)
337 +
sizeof(OSTmrTickCtr)
338 +
sizeof(OSTmrUpdateCnt)
339 +
sizeof(OSTmrUpdateCtr)
342 #if OS_CFG_TASK_REG_TBL_SIZE > 0u
343 +
sizeof(OSTaskRegNextAvailID)
369 void OS_Dbg_Init (
void)
376 p_temp = (
void const *)&OSDbg_DataSize;
378 p_temp = (
void const *)&OSDbg_ArgChkEn;
379 p_temp = (
void const *)&OSDbg_AppHooksEn;
381 p_temp = (
void const *)&OSDbg_EndiannessTest;
383 p_temp = (
void const *)&OSDbg_CalledFromISRChkEn;
385 p_temp = (
void const *)&OSDbg_FlagGrp;
386 p_temp = (
void const *)&OSDbg_FlagEn;
387 #if OS_CFG_FLAG_EN > 0u
388 p_temp = (
void const *)&OSDbg_FlagDelEn;
389 p_temp = (
void const *)&OSDbg_FlagModeClrEn;
390 p_temp = (
void const *)&OSDbg_FlagPendAbortEn;
391 p_temp = (
void const *)&OSDbg_FlagGrpSize;
392 p_temp = (
void const *)&OSDbg_FlagWidth;
395 #if OS_CFG_ISR_POST_DEFERRED_EN > 0u
396 p_temp = (
void const *)&OSDbg_IntQ;
399 p_temp = (
void const *)&OSDbg_ISRPostDeferredEn;
401 p_temp = (
void const *)&OSDbg_Mem;
402 p_temp = (
void const *)&OSDbg_MemEn;
403 #if OS_CFG_MEM_EN > 0u
404 p_temp = (
void const *)&OSDbg_MemSize;
407 p_temp = (
void const *)&OSDbg_MsgEn;
409 p_temp = (
void const *)&OSDbg_MsgSize;
410 p_temp = (
void const *)&OSDbg_MsgPoolSize;
411 p_temp = (
void const *)&OSDbg_MsgQSize;
414 p_temp = (
void const *)&OSDbg_Mutex;
415 p_temp = (
void const *)&OSDbg_MutexEn;
416 #if (OS_CFG_MUTEX_EN) > 0u
417 p_temp = (
void const *)&OSDbg_MutexDelEn;
418 p_temp = (
void const *)&OSDbg_MutexPendAbortEn;
419 p_temp = (
void const *)&OSDbg_MutexSize;
422 p_temp = (
void const *)&OSDbg_ObjTypeChkEn;
424 p_temp = (
void const *)&OSDbg_PendMultiEn;
425 p_temp = (
void const *)&OSDbg_PendDataSize;
426 p_temp = (
void const *)&OSDbg_PendListSize;
427 p_temp = (
void const *)&OSDbg_PendObjSize;
429 p_temp = (
void const *)&OSDbg_PrioMax;
430 p_temp = (
void const *)&OSDbg_PrioTblSize;
432 p_temp = (
void const *)&OSDbg_PtrSize;
434 p_temp = (
void const *)&OSDbg_Q;
435 p_temp = (
void const *)&OSDbg_QEn;
436 #if (OS_CFG_Q_EN) > 0u
437 p_temp = (
void const *)&OSDbg_QDelEn;
438 p_temp = (
void const *)&OSDbg_QFlushEn;
439 p_temp = (
void const *)&OSDbg_QPendAbortEn;
440 p_temp = (
void const *)&OSDbg_QSize;
443 p_temp = (
void const *)&OSDbg_SchedRoundRobinEn;
445 p_temp = (
void const *)&OSDbg_Sem;
446 p_temp = (
void const *)&OSDbg_SemEn;
447 #if (OS_CFG_SEM_EN) > 0u
448 p_temp = (
void const *)&OSDbg_SemDelEn;
449 p_temp = (
void const *)&OSDbg_SemPendAbortEn;
450 p_temp = (
void const *)&OSDbg_SemSetEn;
451 p_temp = (
void const *)&OSDbg_SemSize;
454 p_temp = (
void const *)&OSDbg_RdyList;
455 p_temp = (
void const *)&OSDbg_RdyListSize;
457 p_temp = (
void const *)&OSDbg_StkWidth;
459 p_temp = (
void const *)&OSDbg_StatTaskEn;
460 p_temp = (
void const *)&OSDbg_StatTaskStkChkEn;
462 p_temp = (
void const *)&OSDbg_TaskChangePrioEn;
463 p_temp = (
void const *)&OSDbg_TaskDelEn;
464 p_temp = (
void const *)&OSDbg_TaskQEn;
465 p_temp = (
void const *)&OSDbg_TaskQPendAbortEn;
466 p_temp = (
void const *)&OSDbg_TaskProfileEn;
467 p_temp = (
void const *)&OSDbg_TaskRegTblSize;
468 p_temp = (
void const *)&OSDbg_TaskSemPendAbortEn;
469 p_temp = (
void const *)&OSDbg_TaskSuspendEn;
471 p_temp = (
void const *)&OSDbg_TCBSize;
473 p_temp = (
void const *)&OSDbg_TickSpokeSize;
475 p_temp = (
void const *)&OSDbg_TimeDlyHMSMEn;
476 p_temp = (
void const *)&OSDbg_TimeDlyResumeEn;
479 p_temp = (
void const *)&OSDbg_Tmr;
480 p_temp = (
void const *)&OSDbg_TmrEn;
481 #if (OS_CFG_TMR_EN) > 0u
482 p_temp = (
void const *)&OSDbg_TmrDelEn;
483 p_temp = (
void const *)&OSDbg_TmrSize;
484 p_temp = (
void const *)&OSDbg_TmrSpokeSize;
487 p_temp = (
void const *)&OSDbg_VersionNbr;