ucoscfg.h

来自「ucos 在 Intel 196 单片机上的移植」· C头文件 代码 · 共 36 行

H
36
字号
/*===========================================================================*/
/*                U C O S C F G . H                                          */
/*===========================================================================*/
/* Changed < ucoscfg.h >  6-29-1994   9:12 AM   T/R Systems Confidential     */
/*===========================================================================*/
/* To comment out any of the following defines is to not use that section of */
/* code described.                                                           */
/* Comment out              Aprox. Code Saving in bytes (on 80C196)          */
/* -----------              ---------------------------                      */
/*  USE_MAIL                   986                                           */
/*  USE_QUEUE                  848                                           */
/*  USE_SEMA                   572                                           */
/*  USE_CHG_PRIORITY           524                                           */
/*  USE_MULTI_EVENTS           350                                           */
/*  USE_DEBUG                   76                                           */
/*                                                                           */
/*                                                                           */
/* When USE_MULTI_EVENTS is set OSMboxPend and OSSemPend should not be used. */
/* Instead use OSEventPend placing a 0 in place of the mailbox or semaphore. */
/* Also OSMboxPend and OSSemPend are not compilied which reduces the code by */
/* 378 and 292 bytes respectively.                                           */
/*===========================================================================*/
/*===========================================================================*/
/*#define USE_MAIL 1*/                                        /* Use Mail system */
/*#define USE_SEMA 1*/                                         /* Use Semaphores */
/*#define USE_MULTI_EVENTS 1*/                   /* Use multi-event pend routine */
/*#define USE_QUEUE 1*/                                        /* Use Queues */
/*#define USE_CHG_PRIORITY 1*/                /* Use Change priority routine */
/*#define USE_DEBUG 1*/   /* Use for debug counters OSCtxSwCtr and OSIdleCtr */


#if USE_MULTI_EVENTS    /* mail and sema MUST be defined if multievents used */
#define USE_MAIL 1                                        /* Use Mail system */
#define USE_SEMA 1                                         /* Use Semaphores */
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?