找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開(kāi)始

帖子
查看: 11393|回復(fù): 1
打印 上一主題 下一主題
收起左側(cè)

UCOS-III中的OS_CFG.H 詳細(xì)解釋

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:72519 發(fā)表于 2015-1-23 03:28 | 只看該作者 回帖獎(jiǎng)勵(lì) |倒序?yàn)g覽 |閱讀模式
  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  注釋:~風(fēng)中的葉~
  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;參數(shù)檢測(cè)使能(調(diào)試的時(shí)候允許)*/
  37. #define OS_CFG_CALLED_FROM_ISR_CHK_EN   1u   /* Enable (1) or Disable (0) check for called from ISR;是否允許在ISR中調(diào)用系統(tǒng)函數(shù)(除了POST)*/
  38. #define OS_CFG_DBG_EN                   1u   /* Enable (1) debug code/variables ;debug功能允許使能(可以知道OS_TCB的大小等,調(diào)試的時(shí)候使能)*/
  39. #define OS_CFG_ISR_POST_DEFERRED_EN     1u   /* Enable (1) or Disable (0) Deferred ISR posts;使能則有短的中斷延時(shí),但是有長(zhǎng)的ISR—to—task響應(yīng)*/
  40. #define OS_CFG_OBJ_TYPE_CHK_EN          1u   /* Enable (1) or Disable (0) object type checking;對(duì)象類型檢測(cè)(調(diào)試的時(shí)候允許)*/
  41. #define OS_CFG_TS_EN                    1u   /* Enable (1) or Disable (0) time stamping;時(shí)間戳使能                   */


  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)任務(wù)優(yōu)先級(jí)的最大數(shù)*/

  44. #define OS_CFG_SCHED_LOCK_TIME_MEAS_EN  1u   /* Include code to measure scheduler lock time包含測(cè)量調(diào)度鎖定時(shí)間的代碼 */
  45. #define OS_CFG_SCHED_ROUND_ROBIN_EN     1u   /* Include code for Round-Robin scheduling 包含輪轉(zhuǎn)調(diào)度的代碼            */
  46. #define OS_CFG_STK_SIZE_MIN            64u   /* Minimum allowable task stack size 最小允許的任務(wù)堆棧的大小            */


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


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


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


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


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


  68.                                              /* -------------------------- TASK MANAGEMENT -------------------------- */
  69. #define OS_CFG_STAT_TASK_EN             1u   /* Enable (1) or Disable(0) the statistics task統(tǒng)計(jì)功能使能              */
  70. #define OS_CFG_STAT_TASK_STK_CHK_EN     1u   /* Check task stacks from statistic task統(tǒng)計(jì)任務(wù)堆棧檢測(cè)功能使能         */

  71. #define OS_CFG_TASK_CHANGE_PRIO_EN      1u   /* Include code for OSTaskChangePrio()改變?nèi)蝿?wù)優(yōu)先級(jí)功能使能             */
  72. #define OS_CFG_TASK_DEL_EN              1u   /* Include code for OSTaskDel() 任務(wù)刪除功能使能                         */
  73. #define OS_CFG_TASK_Q_EN                1u   /* Include code for OSTaskQXXXX()任務(wù)消息隊(duì)列功能使能                    */
  74. #define OS_CFG_TASK_Q_PEND_ABORT_EN     1u   /* Include code for OSTaskQPendAbort()任務(wù)消息隊(duì)列等待取消功能使能       */
  75. #define OS_CFG_TASK_PROFILE_EN          1u   /* Include variables in OS_TCB for profiling使能任務(wù)的詳細(xì)情況功能,包括任務(wù)的切換次數(shù),執(zhí)行時(shí)間,相對(duì)于其他任務(wù)的CPU利用率*/
  76. #define OS_CFG_TASK_REG_TBL_SIZE        1u   /* Number of task specific registers任務(wù)特殊功能寄存器                   */
  77. #define OS_CFG_TASK_SEM_PEND_ABORT_EN   1u   /* Include code for OSTaskSemPendAbort()任務(wù)信號(hào)量等待取消功能使能       */
  78. #define OS_CFG_TASK_SUSPEND_EN          1u   /* Include code for OSTaskSuspend() and OSTaskResume()任務(wù)暫時(shí)中止和恢復(fù)功能使能*/


  79.                                              /* -------------------------- TIME MANAGEMENT -------------------------- */
  80. #define OS_CFG_TIME_DLY_HMSM_EN         1u   /*     Include code for OSTimeDlyHMSM()時(shí)間延時(shí)函數(shù)使能                  */
  81. #define OS_CFG_TIME_DLY_RESUME_EN       1u   /*     Include code for OSTimeDlyResume()時(shí)間延時(shí)取消功能使能            */


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

  85. #endif
復(fù)制代碼


分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報(bào)

沙發(fā)
ID:73966 發(fā)表于 2015-2-28 14:22 | 只看該作者
多謝了
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表