PxAbortCleanup()
Cleanup task.
- APPLIES TO
-
1.0.0
- SYNOPSIS
-
PxEventsOrError_t PxAbortCleanup (void);
- RETURN VALUES
-
-
If one of the aborting events is already received, it is returned.
-
An error code is returned if there is no abortstack used if the caller is not in user mode, or if the calling task’s stack is invalid.
-
- ERROR CODES
-
PXERR_NOERROR
one of the aborting events is already received
PXERR_TASK_STACKOVERFLOW
calling task’s stack is too short
PXERR_TASK_ILLCALL
caller is not in user mode
PXERR_ABORTSTACK_OVERFLOW
no abortstack frame used
- DESCRIPTION
-
PxAbortCleanup cleanup task after the
PxExpectAbort()
returns.
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
No checks necessary.
-
- After call
-
-
No checks necessary.
-
- Best Practice
-
-
No restrictions.
-
- SEE ALSO
- USAGE
-
#include "pxdef.h" #define MY_EVENT 0x1l PxEvents_t Ev = PxExpectAbort(MY_EVENT, MY_FUNC, OpoolId); if (Ev.error != PXERR_NOERROR) { // Report error } else { PxEventsOrError_t EventsErr = PxAbortCleanup(); if (EventsErr.error != PXERR_NOERROR) { //Report Error } }