task.h
来自「还是arm7操作源码」· C头文件 代码 · 共 69 行
H
69 行
/******************************************************************************
Copyright (c) 2006 by RockOS.
All rights reserved.
This software is supported by the Rock Software Workroom only.
Any bugs please contact the author with e-mail or QQ:
E-mail : baobaoba520@yahoo.com.cn
QQ : 59681888
*******************************************************************************
File name : task.h
Description : header file for task management in RockOS.
:
:
Auther : sunxinqiu
History :
2006-3-15 first release.
******************************************************************************/
#ifndef __TASK_H__
#define __TASK_H__
#ifdef __cplusplus
extern "C" {
#endif
/* informations to create a task. */
typedef struct
{
U16 priority; /* task priority. */
char name[MAX_NAME_LEN+1]; /* task name. */
TASK_ENTRY taskEntry; /* task's entry. */
void * pData; /* param for task's entry function. */
U16 msgQSize; /* max msg in its msgQ. */
U16 semaQSize; /* max semaphore in its semaphore queue(LIFO). */
U32 stackSize; /* task's stack size. */
U32 option; /* options for task. */
}TASK_INFO;
HTASK taskCreate (TASK_INFO * pTaskInfo);
STATUS taskDelete (HTASK task);
STATUS taskDeleteSelf (void);
STATUS taskRestart(HTASK task);
STATUS taskDelay(U32 ticks);
STATUS taskSuspend (HTASK task);
STATUS taskWakeup (HTASK task);
STATUS taskSetPriority (HTASK task, U16 priority);
STATUS taskSetPriorityAuto (HTASK task);
STATUS taskLock(void);
STATUS taskUnlock(void);
HTASK taskIdSelf(void);
U16 taskPrioritySelf(void);
U16 taskRunningPrioritySelf(void);
U16 taskPriority(HTASK task);
U16 taskRunningPriority(HTASK task);
const char * taskName(HTASK task);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?