Home |
RTKernel-32 Programming Manual Function RTKGetTaskStack |
Function RTKGetTaskStackFunction RTKGetTaskStack returns the remaining free stack space of a task: unsigned RTKGetTaskStack(RTKTaskHandle Handle); ParametersHandleReferences the task whose stack to enquire. To enquire the stack of the current task, RTKGetTaskStack(RTKCurrentTaskHandle()) can be used. return valueThe remaining free stack space of the respective task. Depending on the system driver, RTKernel-32 may not be able to determine the stack limits of the main task. In this case, the value FFFFFFFFh is returned for it. The actual free stack space can never have this value. Note that sufficient stack space for interrupts must be available at all times.
|