Defines | |
#define | Xil_AssertVoid(Expression) |
#define | Xil_AssertNonvoid(Expression) |
#define | Xil_AssertVoidAlways() |
#define | Xil_AssertNonvoidAlways() |
Typedefs | |
typedef void(* | Xil_AssertCallback )(const char *File, int Line) |
Functions | |
void | Xil_Assert (const char *, int) |
void | XNullHandler (void *NullParameter) |
void | Xil_AssertSetCallback (Xil_AssertCallback Routine) |
Variables | |
unsigned int | Xil_AssertStatus |
MODIFICATION HISTORY:
Ver Who Date Changes ----- ---- -------- ------------------------------------------------------- 1.00a hbm 07/14/09 First release
|
Value: { \ if (Expression) { \ Xil_AssertStatus = XIL_ASSERT_NONE; \ } else { \ Xil_Assert(__FILE__, __LINE__); \ Xil_AssertStatus = XIL_ASSERT_OCCURRED; \ return 0; \ } \ }
|
|
Value: { \ Xil_Assert(__FILE__, __LINE__); \ Xil_AssertStatus = XIL_ASSERT_OCCURRED; \ return 0; \ }
|
|
Value: { \ if (Expression) { \ Xil_AssertStatus = XIL_ASSERT_NONE; \ } else { \ Xil_Assert(__FILE__, __LINE__); \ Xil_AssertStatus = XIL_ASSERT_OCCURRED; \ return; \ } \ }
|
|
Value: { \ Xil_Assert(__FILE__, __LINE__); \ Xil_AssertStatus = XIL_ASSERT_OCCURRED; \ return; \ }
|
|
This data type defines a callback to be invoked when an assert occurs. The callback is invoked only when asserts are enabled |
|
Implement assert. Currently, it calls a user-defined callback function if one has been set. Then, it potentially enters an infinite loop depending on the value of the Xil_AssertWait variable.
|
|
Set up a callback function to be invoked when an assert occurs. If there was already a callback installed, then it is replaced.
|
|
Null handler function. This follows the XInterruptHandler signature for interrupt handlers. It can be used to assign a null handler (a stub) to an interrupt controller vector table.
|
|
This variable allows testing to be done easier with asserts. An assert sets this variable such that a driver can evaluate this variable to determine if an assert occurred. |