Skip to end of metadata
Go to start of metadata

Description

Assert given expression. In case of failure, calls RTOS_CFG_RTOS_ASSERT_CRITICAL_FAILED_END_CALL(ret_val) if defined, CPU_SW_EXCEPTION(ret_val) if not.

Files

lib_mem.h/lib_mem.c

Prototype

    APP_RTOS_ASSERT_CRITICAL (expr, ret_val)

Arguments

expr

Expression to assert. If expression is false, the assert fail call will be made.

ret_val

Value that would be returned from the function, ';' if void.

Returned Value

None.

Notes / Warnings

(1) Usage of assert is as follows: APP_RTOS_ASSERT_CRITICAL((p_buf != DEF_NULL), ;);

  • No labels