<< Previous | Next >>

OSTaskStkChk

INT8U OSTaskStkChk( INT8U prio, OS_STK_DATA * pdata );

Description

Check the amount of free memory on the stack of the specified task.

Parameters

prio
The task's priority.

pdata
Pointer to a data structure of type OS_STK_DATA.

Return value

OS_NO_ERR
The call was successful.

OS_PRIO_INVALID
The priority you specify is higher than the maximum allowed (i.e. > OS_LOWEST_PRIO) or, OS_PRIO_SELF not specified.

OS_TASK_NOT_EXIST
The desired task has not been created.

OS_TASK_OPT_ERR
If OS_TASK_OPT_STK_CHK was NOT specified when the task was created.

Library

UCOS2.LIB

See also

OSTaskCreateExt


Dynamic C Functions << Previous | Next >> rabbit.com