找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 11311|回复: 1
打印 上一主题 下一主题
收起左侧

UCOS-III中的OS_CFG.H 详细解释

[复制链接]
跳转到指定楼层
楼主
ID:72519 发表于 2015-1-23 03:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
  1. /*
  2. ************************************************************************************************************************
  3. *                                                      uC/OS-III
  4. *                                                 The Real-Time Kernel
  5. *
  6. *                                  (c) Copyright 2009-2011; Micrium, Inc.; Weston, FL
  7. *                           All rights reserved.  Protected by international copyright laws.
  8. *
  9. *                                                  CONFIGURATION FILE
  10. *
  11. * File    : OS_CFG.H
  12. * By      : JJL  注释:~风中的叶~
  13. * Version : V3.02.00
  14. *
  15. * LICENSING TERMS:
  16. * ---------------
  17. *           uC/OS-III is provided in source form for FREE short-term evaluation, for educational use or
  18. *           for peaceful research.  If you plan or intend to use uC/OS-III in a commercial application/
  19. *           product then, you need to contact Micrium to properly license uC/OS-III for its use in your
  20. *           application/product.   We provide ALL the source code for your convenience and to help you
  21. *           experience uC/OS-III.  The fact that the source is provided does NOT mean that you can use
  22. *           it commercially without paying a licensing fee.
  23. *
  24. *           Knowledge of the source code may NOT be used to develop a similar product.
  25. *
  26. *           Please help us continue to provide the embedded community with the finest software available.
  27. *           Your honesty is greatly appreciated.
  28. *
  29. *           You can contact us at www.micrium.com, or by phone at +1 (954) 217-2036.
  30. ************************************************************************************************************************
  31. */

  32. #ifndef OS_CFG_H
  33. #define OS_CFG_H

  34.                                              /* ---------------------------- MISCELLANEOUS -------------------------- */
  35. #define OS_CFG_APP_HOOKS_EN             1u   /* Enable (1) or Disable (0) application specific hooks;HOOK功能的使能   */
  36. #define OS_CFG_ARG_CHK_EN               1u   /* Enable (1) or Disable (0) argument checking;参数检测使能(调试的时候允许)*/
  37. #define OS_CFG_CALLED_FROM_ISR_CHK_EN   1u   /* Enable (1) or Disable (0) check for called from ISR;是否允许在ISR中调用系统函数(除了POST)*/
  38. #define OS_CFG_DBG_EN                   1u   /* Enable (1) debug code/variables ;debug功能允许使能(可以知道OS_TCB的大小等,调试的时候使能)*/
  39. #define OS_CFG_ISR_POST_DEFERRED_EN     1u   /* Enable (1) or Disable (0) Deferred ISR posts;使能则有短的中断延时,但是有长的ISR—to—task响应*/
  40. #define OS_CFG_OBJ_TYPE_CHK_EN          1u   /* Enable (1) or Disable (0) object type checking;对象类型检测(调试的时候允许)*/
  41. #define OS_CFG_TS_EN                    1u   /* Enable (1) or Disable (0) time stamping;时间戳使能                   */


  42. #define OS_CFG_PEND_MULTI_EN            1u   /* Enable (1) or Disable (0) code generation for multi-pend feature是否支持事件的多路等待功能*/

  43. #define OS_CFG_PRIO_MAX                64u   /* Defines the maximum number of task priorities (see OS_PRIO data type)任务优先级的最大数*/

  44. #define OS_CFG_SCHED_LOCK_TIME_MEAS_EN  1u   /* Include code to measure scheduler lock time包含测量调度锁定时间的代码 */
  45. #define OS_CFG_SCHED_ROUND_ROBIN_EN     1u   /* Include code for Round-Robin scheduling 包含轮转调度的代码            */
  46. #define OS_CFG_STK_SIZE_MIN            64u   /* Minimum allowable task stack size 最小允许的任务堆栈的大小            */


  47.                                              /* ----------------------------- EVENT FLAGS --------------------------- */
  48. #define OS_CFG_FLAG_EN                  1u   /* Enable (1) or Disable (0) code generation for EVENT FLAGS使能事件标志的代码*/
  49. #define OS_CFG_FLAG_DEL_EN              1u   /*     Include code for OSFlagDel()使能标志删除功能                      */
  50. #define OS_CFG_FLAG_MODE_CLR_EN         1u   /*     Include code for Wait on Clear EVENT FLAGS使能等待清除事件标志功能*/
  51. #define OS_CFG_FLAG_PEND_ABORT_EN       1u   /*     Include code for OSFlagPendAbort()标志事件的等待终止功能          */


  52.                                              /* -------------------------- MEMORY MANAGEMENT ------------------------ */
  53. #define OS_CFG_MEM_EN                   1u   /* Enable (1) or Disable (0) code generation for MEMORY MANAGER是否允许内存管理的功能*/


  54.                                              /* --------------------- MUTUAL EXCLUSION SEMAPHORES ------------------- */
  55. #define OS_CFG_MUTEX_EN                 1u   /* Enable (1) or Disable (0) code generation for MUTEX互斥性信号量功能使能*/
  56. #define OS_CFG_MUTEX_DEL_EN             1u   /*     Include code for OSMutexDel()互斥性信号量删除功能使能             */
  57. #define OS_CFG_MUTEX_PEND_ABORT_EN      1u   /*     Include code for OSMutexPendAbort()互斥性信号量等待终止功能使能   */


  58.                                              /* --------------------------- MESSAGE QUEUES -------------------------- */
  59. #define OS_CFG_Q_EN                     1u   /* Enable (1) or Disable (0) code generation for QUEUES消息队列功能使能  */
  60. #define OS_CFG_Q_DEL_EN                 1u   /*     Include code for OSQDel() 消息队列删除功能使能                    */
  61. #define OS_CFG_Q_FLUSH_EN               1u   /*     Include code for OSQFlush()消息队列刷新功能使能                   */
  62. #define OS_CFG_Q_PEND_ABORT_EN          1u   /*     Include code for OSQPendAbort()消息队列等待终止功能使能           */


  63.                                              /* ----------------------------- SEMAPHORES ---------------------------- */
  64. #define OS_CFG_SEM_EN                   1u   /* Enable (1) or Disable (0) code generation for SEMAPHORES信号量功能使能*/
  65. #define OS_CFG_SEM_DEL_EN               1u   /*    Include code for OSSemDel()信号量删除功能使能                      */
  66. #define OS_CFG_SEM_PEND_ABORT_EN        1u   /*    Include code for OSSemPendAbort()信号量等待终止功能使能            */
  67. #define OS_CFG_SEM_SET_EN               1u   /*    Include code for OSSemSet()信号量置位功能使能                      */


  68.                                              /* -------------------------- TASK MANAGEMENT -------------------------- */
  69. #define OS_CFG_STAT_TASK_EN             1u   /* Enable (1) or Disable(0) the statistics task统计功能使能              */
  70. #define OS_CFG_STAT_TASK_STK_CHK_EN     1u   /* Check task stacks from statistic task统计任务堆栈检测功能使能         */

  71. #define OS_CFG_TASK_CHANGE_PRIO_EN      1u   /* Include code for OSTaskChangePrio()改变任务优先级功能使能             */
  72. #define OS_CFG_TASK_DEL_EN              1u   /* Include code for OSTaskDel() 任务删除功能使能                         */
  73. #define OS_CFG_TASK_Q_EN                1u   /* Include code for OSTaskQXXXX()任务消息队列功能使能                    */
  74. #define OS_CFG_TASK_Q_PEND_ABORT_EN     1u   /* Include code for OSTaskQPendAbort()任务消息队列等待取消功能使能       */
  75. #define OS_CFG_TASK_PROFILE_EN          1u   /* Include variables in OS_TCB for profiling使能任务的详细情况功能,包括任务的切换次数,执行时间,相对于其他任务的CPU利用率*/
  76. #define OS_CFG_TASK_REG_TBL_SIZE        1u   /* Number of task specific registers任务特殊功能寄存器                   */
  77. #define OS_CFG_TASK_SEM_PEND_ABORT_EN   1u   /* Include code for OSTaskSemPendAbort()任务信号量等待取消功能使能       */
  78. #define OS_CFG_TASK_SUSPEND_EN          1u   /* Include code for OSTaskSuspend() and OSTaskResume()任务暂时中止和恢复功能使能*/


  79.                                              /* -------------------------- TIME MANAGEMENT -------------------------- */
  80. #define OS_CFG_TIME_DLY_HMSM_EN         1u   /*     Include code for OSTimeDlyHMSM()时间延时函数使能                  */
  81. #define OS_CFG_TIME_DLY_RESUME_EN       1u   /*     Include code for OSTimeDlyResume()时间延时取消功能使能            */


  82.                                              /* ------------------------- TIMER MANAGEMENT -------------------------- */
  83. #define OS_CFG_TMR_EN                   1u   /* Enable (1) or Disable (0) code generation for TIMERS定时器功能使能    */
  84. #define OS_CFG_TMR_DEL_EN               1u   /* Enable (1) or Disable (0) code generation for OSTmrDel()定时器删除功能使能*/

  85. #endif
复制代码


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 顶 踩
回复

使用道具 举报

沙发
ID:73966 发表于 2015-2-28 14:22 | 只看该作者
多谢了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表