ucos_tasks.h

来自「ucos在EP9302上的移植,运行正常,欢迎使用.」· C头文件 代码 · 共 44 行

H
44
字号
/****************************************************************************
  文件名称:ucos_tasks.h
  版本号:	1.0
  日期:	2007-03-23
  说明:	包含uCOSII各个应用任务。

  修改历史:--
****************************************************************************/

#ifndef __OS_TASKS_H__
#define __OS_TASKS_H__



//define the priority and stack size for each task
//the task priority should not less than 8

//task1
#define TASK1_PRIO			20
#define TASK1_ID			TASK1_PRIO								
#define	TASK1_STACKSIZE		256		
extern OS_STK Task1Stack[TASK1_STACKSIZE];
void Task1(void *pdata);

//task2
#define TASK2_PRIO			9
#define TASK2_ID			TASK2_PRIO								
#define	TASK2_STACKSIZE		2048		
extern OS_STK Task2Stack[TASK2_STACKSIZE];
void Task2(void *pdata);


#define START_PRIO		5		//the priority of the TaskStart,
					            //it is higher than the applicable tasks.
#define START_ID		5
#define	START_STACKSIZE	256		//set the size of stack for TaskStart
extern OS_STK StartTaskStack[START_STACKSIZE];

void TaskStart(void *pdata);


#endif	//__OS_TASKS_H__

⌨️ 快捷键说明

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