⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ucos_tasks.h

📁 ucos在EP9302上的移植,运行正常,欢迎使用.
💻 H
字号:
/****************************************************************************
  文件名称: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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -