PageRenderTime 465ms CodeModel.GetById 167ms app.highlight 5ms RepoModel.GetById 291ms app.codeStats 0ms

/src/compiler/ucos-vs2008/UCOS_SIM/src/cfg/os_cfg.h

http://ftk.googlecode.com/
C++ Header | 128 lines | 72 code | 30 blank | 26 comment | 0 complexity | f7216bc6e340e9cbe1b6ae1f2a289906 MD5 | raw file
  1/*
  2*********************************************************************************************************
  3*                                                uC/OS-II
  4*                                          The Real-Time Kernel
  5*
  6*                           (c) Copyright 1992-2005, Jean J. Labrosse, Weston, FL
  7*                                           All Rights Reserved
  8*
  9*                                  uC/OS-II Configuration File for V2.8x
 10*
 11* File    : OS_CFG.H
 12* By      : Jean J. Labrosse
 13* Version : V2.80
 14*********************************************************************************************************
 15*/
 16
 17#ifndef OS_CFG_H

 18#define OS_CFG_H

 19
 20                                       /* ----------------------- uC/OS-View ------------------------- */
 21#define OS_VIEW_MODULE            0    /* When 1, indicate that uC/OS-View is present                  */

 22
 23
 24                                       /* ---------------------- MISCELLANEOUS ----------------------- */
 25#define OS_ARG_CHK_EN             1    /* Enable (1) or Disable (0) argument checking                  */

 26#define OS_CPU_HOOKS_EN           1    /* uC/OS-II hooks are found in the processor port files         */

 27
 28#define OS_DEBUG_EN               1    /* Enable(1) debug variables                                    */

 29
 30#define OS_EVENT_NAME_SIZE       32    /* Determine the size of the name of a Sem, Mutex, Mbox or Q    */

 31
 32#define OS_LOWEST_PRIO           63    /* Defines the lowest priority that can be assigned ...         */

 33                                       /* ... MUST NEVER be higher than 254!                           */
 34
 35#define OS_MAX_EVENTS           256    /* Max. number of event control blocks in your application      */

 36#define OS_MAX_FLAGS             16    /* Max. number of Event Flag Groups    in your application      */

 37#define OS_MAX_MEM_PART           5    /* Max. number of memory partitions                             */

 38#define OS_MAX_QS               256    /* Max. number of queue control blocks in your application      */

 39#define OS_MAX_TASKS             20    /* Max. number of tasks in your application, MUST be >= 2       */

 40
 41#define OS_SCHED_LOCK_EN          1    /*     Include code for OSSchedLock() and OSSchedUnlock()       */

 42
 43#define OS_TASK_IDLE_STK_SIZE   512    /* Idle task stack size (# of OS_STK wide entries)              */

 44
 45#define OS_TASK_STAT_EN           0    /* Enable (1) or Disable(0) the statistics task                 */

 46#define OS_TASK_STAT_STK_SIZE   128    /* Statistics task stack size (# of OS_STK wide entries)        */

 47#define OS_TASK_STAT_STK_CHK_EN   1    /* Check task stacks from statistic task                        */

 48
 49#define OS_TICK_STEP_EN           0    /* Enable tick stepping feature for uC/OS-View                  */

 50#define OS_TICKS_PER_SEC        500    /* Set the number of ticks in one second                        */

 51
 52
 53                                       /* ----------------------- EVENT FLAGS ------------------------ */
 54#define OS_FLAG_EN                1    /* Enable (1) or Disable (0) code generation for EVENT FLAGS    */

 55#define OS_FLAG_WAIT_CLR_EN       1    /* Include code for Wait on Clear EVENT FLAGS                   */

 56#define OS_FLAG_ACCEPT_EN         1    /*     Include code for OSFlagAccept()                          */

 57#define OS_FLAG_DEL_EN            1    /*     Include code for OSFlagDel()                             */

 58#define OS_FLAG_NAME_SIZE        32    /*     Determine the size of the name of an event flag group    */

 59#define OS_FLAG_QUERY_EN          1    /*     Include code for OSFlagQuery()                           */

 60
 61#if     OS_VERSION >= 280

 62#define OS_FLAGS_NBITS           32    /* Size in #bits of OS_FLAGS data type (8, 16 or 32)            */

 63#endif

 64
 65                                       /* -------------------- MESSAGE MAILBOXES --------------------- */
 66#define OS_MBOX_EN                1    /* Enable (1) or Disable (0) code generation for MAILBOXES      */

 67#define OS_MBOX_ACCEPT_EN         1    /*     Include code for OSMboxAccept()                          */

 68#define OS_MBOX_DEL_EN            1    /*     Include code for OSMboxDel()                             */

 69#define OS_MBOX_POST_EN           1    /*     Include code for OSMboxPost()                            */

 70#define OS_MBOX_POST_OPT_EN       1    /*     Include code for OSMboxPostOpt()                         */

 71#define OS_MBOX_QUERY_EN          1    /*     Include code for OSMboxQuery()                           */

 72
 73
 74                                       /* --------------------- MEMORY MANAGEMENT -------------------- */
 75#define OS_MEM_EN                 1    /* Enable (1) or Disable (0) code generation for MEMORY MANAGER */

 76#define OS_MEM_QUERY_EN           1    /*     Include code for OSMemQuery()                            */

 77#define OS_MEM_NAME_SIZE         32    /*     Determine the size of a memory partition name            */

 78
 79
 80                                       /* ---------------- MUTUAL EXCLUSION SEMAPHORES --------------- */
 81#define OS_MUTEX_EN               1    /* Enable (1) or Disable (0) code generation for MUTEX          */

 82#define OS_MUTEX_ACCEPT_EN        1    /*     Include code for OSMutexAccept()                         */

 83#define OS_MUTEX_DEL_EN           1    /*     Include code for OSMutexDel()                            */

 84#define OS_MUTEX_QUERY_EN         1    /*     Include code for OSMutexQuery()                          */

 85
 86
 87                                       /* ---------------------- MESSAGE QUEUES ---------------------- */
 88#define OS_Q_EN                   1    /* Enable (1) or Disable (0) code generation for QUEUES         */

 89#define OS_Q_ACCEPT_EN            1    /*     Include code for OSQAccept()                             */

 90#define OS_Q_DEL_EN               1    /*     Include code for OSQDel()                                */

 91#define OS_Q_FLUSH_EN             1    /*     Include code for OSQFlush()                              */

 92#define OS_Q_POST_EN              1    /*     Include code for OSQPost()                               */

 93#define OS_Q_POST_FRONT_EN        1    /*     Include code for OSQPostFront()                          */

 94#define OS_Q_POST_OPT_EN          1    /*     Include code for OSQPostOpt()                            */

 95#define OS_Q_QUERY_EN             1    /*     Include code for OSQQuery()                              */

 96
 97
 98                                       /* ------------------------ SEMAPHORES ------------------------ */
 99#define OS_SEM_EN                 1    /* Enable (1) or Disable (0) code generation for SEMAPHORES     */

100#define OS_SEM_ACCEPT_EN          1    /*    Include code for OSSemAccept()                            */

101#define OS_SEM_DEL_EN             1    /*    Include code for OSSemDel()                               */

102#define OS_SEM_QUERY_EN           1    /*    Include code for OSSemQuery()                             */

103#define OS_SEM_SET_EN             1    /*    Include code for OSSemSet()                               */

104
105
106                                       /* --------------------- TASK MANAGEMENT ---------------------- */
107#define OS_TASK_CHANGE_PRIO_EN    1    /*     Include code for OSTaskChangePrio()                      */

108#define OS_TASK_CREATE_EN         1    /*     Include code for OSTaskCreate()                          */

109#define OS_TASK_CREATE_EXT_EN     1    /*     Include code for OSTaskCreateExt()                       */

110#define OS_TASK_DEL_EN            1    /*     Include code for OSTaskDel()                             */

111#define OS_TASK_NAME_SIZE        32    /*     Determine the size of a task name                        */

112#define OS_TASK_PROFILE_EN        1    /*     Include variables in OS_TCB for profiling                */

113#define OS_TASK_QUERY_EN          1    /*     Include code for OSTaskQuery()                           */

114#define OS_TASK_SUSPEND_EN        1    /*     Include code for OSTaskSuspend() and OSTaskResume()      */

115#define OS_TASK_SW_HOOK_EN        1    /*     Include code for OSTaskSwHook()                          */

116
117
118                                       /* --------------------- TIME MANAGEMENT ---------------------- */
119#define OS_TIME_DLY_HMSM_EN       1    /*     Include code for OSTimeDlyHMSM()                         */

120#define OS_TIME_DLY_RESUME_EN     1    /*     Include code for OSTimeDlyResume()                       */

121#define OS_TIME_GET_SET_EN        1    /*     Include code for OSTimeGet() and OSTimeSet()             */

122#define OS_TIME_TICK_HOOK_EN      1    /*     Include code for OSTimeTickHook()                        */

123
124#if     OS_VERSION < 280

125typedef INT16U             OS_FLAGS;
126#endif

127
128#endif