os_cfg.h

来自「ucosII在TIC200x芯片上的移植」· C头文件 代码 · 共 30 行

H
30
字号
#ifndef	OS_CFG_H
#define	OS_CFG_H


/*
 * uC/OS CONFIGURATION
 */

#define OS_MAX_TASKS             63    /* Maximum number of tasks in your application                  */
#define OS_MAX_EVENTS            20    /* Maximum number of event control blocks in your application   */
#define OS_MAX_QS                 5    /* Maximum number of queue control blocks in your application   */

/*
 * The TMS320C2XX stack grows up!
 */
#define	OS_TASK_IDLE_STK_SIZE	300		/* Idle task stack size (WORD's)                                */
#define	OS_TASK_IDLE_STK_TOP	0		/* Index into task top of stack.  								*/

#define OS_TASK_CHANGE_PRIO_EN    1    /* Include code for OSTaskChangePrio()                          */
#define OS_TASK_DEL_EN            1    /* Include code for OSTaskDel()                                 */
#define OS_SEM_EN                 1    /* Include code for SEMAPHORES                                  */
#define OS_MBOX_EN                1    /* Include code for MAILBOXES                                   */
#define OS_Q_EN                   1    /* Include code for QUEUES                                      */
#define OS_TASK_SUSPEND_EN        1    /* Include code for OSTaskSuspend() and OSTaskResume()          */

#define uCOS                   31		/* Context switch trap number */


#endif	/*	OS_CFG_H	*/

⌨️ 快捷键说明

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