📄 os_cfg.h
字号:
/*
*************************************************************************
*************************************************************************
** **
** FILE : OS_CFG.H **
** **
** DESCRIPTION : Configuration for Tricore TC10GP **
** **
** AUTHOR : Andre Gompel **
** **
** REVISION HISTORY: **
** **
** **
** Copyright (c) 2000 Micrium Inc. **
** All Rights Reserved **
** **
** Copyright (c) 2000 Infineon Technologies Corproration **
** All Rights Reserved **
** **
** THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY EXPRESS OR **
** IMPLIED WARRANTY. BOTH INFINEON TECHNOLOGIES CORPORATION AND **
** MICRIUM INC. DISCLAIMS ALL REPRESENTATIONS AND WARRANTIES WITH **
** REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF **
** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT **
** SHALL INFINEON TECHNOLOGIES CORPORATION OR MICRIUM INC. BE LIABLE **
** FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES **
** WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN **
** AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACT OR **
** OMISSION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR **
** PERFORMANCE OF THIS SOFTWARE. **
** **
*************************************************************************
*************************************************************************
*/
#define OS_MAX_EVENTS 10 /* Max. number of event control blocks in your application ... */
/* ... MUST be >= 2 */
#define OS_MAX_MEM_PART 2 /* Max. number of memory partitions ... */
/* ... MUST be >= 2 */
#define OS_MAX_QS 2 /* Max. number of queue control blocks in your application ... */
/* ... MUST be >= 2 */
#define OS_MAX_TASKS 63 /* Max. number of tasks in your application ... */
/* ... MUST be >= 2 */
#define OS_LOWEST_PRIO 63 /* Defines the lowest priority that can be assigned ... */
/* ... MUST NEVER be higher than 63! */
#define OS_TASK_IDLE_STK_SIZE 256 /* Idle task stack size (# of 16-bit wide entries) */
#define OS_TASK_STAT_EN 1 /* Enable (1) or Disable(0) the statistics task */
#define OS_TASK_STAT_STK_SIZE 256 /* Statistics task stack size (# of 16-bit wide entries) */
#define OS_CPU_HOOKS_EN 1 /* uC/OS-II hooks are found in the processor port files */
#define OS_MBOX_EN 1 /* Include code for MAILBOXES */
#define OS_MEM_EN 1 /* Include code for MEMORY MANAGER (fixed sized memory blocks) */
#define OS_Q_EN 1 /* Include code for QUEUES */
#define OS_SEM_EN 1 /* Include code for SEMAPHORES */
#define OS_TASK_CHANGE_PRIO_EN 1 /* Include code for OSTaskChangePrio() */
#define OS_TASK_CREATE_EN 0 /* Include code for OSTaskCreate(): TriCore: use rather next one*/
#define OS_TASK_CREATE_EXT_EN 1 /* Include code for OSTaskCreateExt(): TriCore Required */
#define OS_TASK_DEL_EN 1 /* Include code for OSTaskDel() */
#define OS_TASK_SUSPEND_EN 1 /* Include code for OSTaskSuspend() and OSTaskResume() */
#define OS_TICKS_PER_SEC 100 /* Set the number of ticks in one second */
#ifndef TRICORE
#define TRICORE 1 /* Specific Tricore */
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -