/*
*********************************************************************************************************
* uC/OS-II
* The Real-Time Kernel
* DEBUGGER CONSTANTS
*
* (c) Copyright 2003, Jean J. Labrosse, Weston, FL
* All Rights Reserved
*
* File : OS_DBG.C
* By : Jean J. Labrosse
* Version : V2.76
*********************************************************************************************************
*/
#include "includes.h"
/*
*********************************************************************************************************
* DEBUG DATA
*********************************************************************************************************
*/
INT16U const OSDebugEn = OS_DEBUG_EN; /* Debug constants are defined below */
#if OS_DEBUG_EN > 0
INT32U const OSEndiannessTest = 0x12345678L; /* Variable to test CPU endianness */
INT16U const OSEventEn = OS_EVENT_EN;
INT16U const OSEventMax = OS_MAX_EVENTS; /* Number of event control blocks */
INT16U const OSEventNameSize = OS_EVENT_NAME_SIZE; /* Size (in bytes) of event names */
#if (OS_EVENT_EN > 0) && (OS_MAX_EVENTS > 0)
INT16U const OSEventSize = sizeof(OS_EVENT); /* Size in Bytes of OS_EVENT */
INT16U const OSEventTblSize = sizeof(OSEventTbl); /* Size of OSEventTbl[] in bytes */
#else
INT16U const OSEventSize = 0;
INT16U const OSEventTblSize = 0;
#endif
INT16U const OSFlagEn = OS_FLAG_EN;
#if (OS_FLAG_EN > 0) && (OS_MAX_FLAGS > 0)
INT16U const OSFlagGrpSize = sizeof(OS_FLAG_GRP); /* Size in Bytes of OS_FLAG_GRP */
INT16U const OSFlagNodeSize = sizeof(OS_FLAG_NODE); /* Size in Bytes of OS_FLAG_NODE */
INT16U const OSFlagWidth = sizeof(OS_FLAGS); /* Width (in bytes) of OS_FLAGS */
#else
INT16U const OSFlagGrpSize = 0;
INT16U const OSFlagNodeSize = 0;
INT16U const OSFlagWidth = 0;
#endif
INT16U const OSFlagMax = OS_MAX_FLAGS;
INT16U const OSFlagNameSize = OS_FLAG_NAME_SIZE; /* Size (in bytes) of flag names */
INT16U const OSLowestPrio = OS_LOWEST_PRIO;
INT16U const OSMboxEn = OS_MBOX_EN;
INT16U const OSMemEn = OS_MEM_EN;
INT16U const OSMemMax = OS_MAX_MEM_PART; /* Number of memory partitions */
INT16U const OSMemNameSize = OS_MEM_NAME_SIZE; /* Size (in bytes) of partition names */
#if (OS_MEM_EN > 0) && (OS_MAX_MEM_PART > 0)
INT16U const OSMemSize = sizeof(OS_MEM); /* Mem. Partition header sine (bytes) */
INT16U const OSMemTblSize = sizeof(OSMemTbl);
#else
INT16U const OSMemSize = 0;
INT16U const OSMemTblSize = 0;
#endif
INT16U const OSMutexEn = OS_MUTEX_EN;
INT16U const OSPtrSize = sizeof(void *); /* Size in Bytes of a pointer */
INT16U const OSQEn = OS_Q_EN;
INT16U const OSQMax = OS_MAX_QS; /* Number of queues */
#if (OS_Q_EN > 0) && (OS_MAX_QS > 0)
INT16U const OSQSize = sizeof(OS_Q); /* Size in bytes of OS_Q structure */
#else
INT16U const OSQSize = 0;
#endif
INT16U const OSRdyTblSize = OS_RDY_TBL_SIZE; /* Number of bytes in the ready table */
INT16U const OSSemEn = OS_SEM_EN;
INT16U const OSStkWidth = sizeof(OS_STK); /* Size in Bytes of a stack entry */
INT16U const OSTaskCreateEn = OS_TASK_CREATE_EN;
INT16U const OSTaskCreateExtEn = OS_TASK_CREATE_EXT_EN;
INT16U const OSTaskDelEn = OS_TASK_DEL_EN;
INT16U const OSTaskIdleStkSize = OS_TASK_IDLE_STK_SIZE;
INT16U const OSTaskProfileEn = OS_TASK_PROFILE_EN;
INT16U const OSTaskMax = OS_MAX_TASKS + OS_N_SYS_TASKS; /* Total max. number of tasks */
INT16U const OSTaskNameSize = OS_TASK_NAME_SIZE; /* Size (in bytes) of task names */
INT16U const OSTaskStatEn = OS_TASK_STAT_EN;
INT16U const OSTaskStatStkSize = OS_TASK_STAT_STK_SIZE;
INT16U const OSTaskStatStkChkEn = OS_TASK_STAT_STK_CHK_EN;
INT16U const OSTaskSwHookEn = OS_TASK_SW_HOOK_EN;
INT16U const OSTCBPrioTblMax = OS_LOWEST_PRIO + 1; /* Number of entries in OSTCBPrioTbl[] */
INT16U const OSTCBSize = sizeof(OS_TCB); /* Size in Bytes of OS_TCB */
INT16U const OSTicksPerSec = OS_TICKS_PER_SEC;
INT16U const OSTimeTickHookEn = OS_TIME_TICK_HOOK_EN;
INT16U const OSVersionNbr = OS_VERSION;
#endif
/*$PAGE*/
/*
*********************************************************************************************************
* DEBUG DATA
* TOTAL DATA SPACE (i.e. RAM) USED BY uC/OS-II
*********************************************************************************************************
*/
#if OS_DEBUG_EN > 0
INT16U const OSDataSize = sizeof(OSCtxSwCtr)
#if (OS_EVENT_EN > 0) && (OS_MAX_EVENTS > 0)
+ sizeof(OSEventFreeList)
+ sizeof(OSEventTbl)
#endif
#if (OS_VERSION >= 251) && (OS_FLAG_EN > 0) && (OS_MAX_FLAGS > 0)
+ sizeof(OSFlagTbl)
+ sizeof(OSFlagFreeList)
#endif
#if OS_TASK_STAT_EN > 0
+ sizeof(OSCPUUsage)
+ sizeof(OSIdleCtrMax)
+ sizeof(OSIdleCtrRun)
+ sizeof(OSStatRdy)
+ sizeof(OSTaskStatStk)
#endif
#if OS_TICK_STEP_EN > 0
+ sizeof(OSTickStepState)
#endif
#if (OS_MEM_EN > 0) && (OS_MAX_MEM_PART > 0)
+ sizeof(OSMemFreeList)
+ sizeof(OSMemTbl)
#endif
#if (OS_Q_EN > 0) && (OS_MAX_QS > 0)
+ sizeof(OSQFreeList)
+ sizeof(OSQTbl)
#endif
#if OS_TIME_GET_SET_EN > 0
+ sizeof(OSTime)
#endif
+ sizeof(OSIntNesting)
+ sizeof(OSLockNesting)
+ sizeof(OSPrioCur)
+ sizeof(OSPrioHighRdy)
+ sizeof(OSRdyGrp)
+ sizeof(OSRdyTbl)
+ sizeof(OSRunning)
+ sizeof(OSTaskCtr)
+ sizeof(OSIdleCtr)
+ sizeof(OSTaskIdleStk)
+ sizeof(OSTCBCur)
+ sizeof(OSTCBFreeList)
+ sizeof(OSTCBHighRdy)
+ sizeof(OSTCBList)
+ sizeof(OSTCBPrioTbl)
+ sizeof(OSTCBTbl);
#endif
/*$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) :

weixin_42653672
- 粉丝: 121
最新资源
- 如何学好网络营销课程.doc
- 信息系统安全概述.pptx
- 基于单片机的电子密码锁的课程设计.docx
- 数据挖掘的方法有哪些?.pdf
- 汽车单片机与车载网络培训课件.pptx
- 房产项目管理实用表格工具.doc
- 卫星通信系统概述.ppt
- 模板项目管理月报.doc
- 中企动力网络营销.pptx
- 专业会计必备的应的Excel技巧【会计实务操作教程】.pptx
- 数据库原理试卷A(标准答案).doc
- 网络安全入侵检测.ppt
- 最新国家开放大学电大《营销策划案例分析》网络核心课形考网考作业及答案.pdf
- 网络营销理论培训课件.pptx
- 综合布线技术与施工模拟公司制.pptx
- 无线网络WIFI对人们生活影响的调查报告样本.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


