11.07.2015 Views

IAR PowerPac RTOS User Guide

IAR PowerPac RTOS User Guide

IAR PowerPac RTOS User Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Task routine API function overviewRoutineOS_CREATETASK()OS_CreateTask()OS_CREATETASK_EX()OS_CreateTaskEx()OS_Delay()OS_DelayUntil()OS_SetPriority()OS_GetPriority()OS_SetTimeSlice()OS_Suspend()OS_Resume()OS_GetSuspendCnt()OS_Terminate()OS_WakeTask()OS_IsTask()OS_GetTaskID()OS_GetpCurrentTask()Table 3: Task routine API listOS_CREATETASK()DescriptionCreates a task.Prototypevoid OS_CREATETASK (OS_TASK* pTask,char* pName,void* pRoutine,unsigned char Priority,void* pStack);ParameterDescriptionpTaskpNamepRoutinePriorityAdditional InformationDescriptionCreates a task.Creates a task.Creates a task with parameter.Creates a task with parameter.Suspends the calling task for a specified period of time.Suspends the calling task until a specified time.Assigns a specified priority to a specified task.Returns the priority of a specified taskAssigns a specified timeslice value to a specified task.Suspends the specified task.Decrements the suspend count of specified task and resumes the task, if the suspendcount reaches zero.Returns the suspension count.Ends (terminates) a task.Ends delay of a task immediately.Determines whether a task control block actually belongs to a valid task.Returns the ID of the currently running task.Returns a pointer to the task control block structure of the currently running task.Pointer to a data structure of type OS_TASK which will be used as task control block (andreference) for this task.Pointer to the name of the task. Can be NULL (or 0) if not used.Pointer to a routine that should run as a taskPriority of the task. Must be within the following range:1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!