/space/home/slher/rel/Beken/v6_4_5/macsw/modules/dbg/src/dbg_assert.h File Reference

File containing the definitions of the assertion macros. More...

#include "rwnx_config.h"
#include "compiler.h"

Go to the source code of this file.

Defines

#define LINE_NB   ((TRACE_FILE_ID << 20) + (__LINE__ & 0xfffff))
 Line number: Include file id if trace is enabled.
#define ASSERT(type, cond)   dbg_assert_##type("", "", 0)
 Macro defining the format of the assertion calls.
#define ASSERT_ERR(cond)
 Assertions showing a critical error that could require a full system reset.
#define ASSERT_ERR2(cond, param0, param1)
 Assertions showing a critical error that could require a full system reset.
#define ASSERT_WARN(cond)
 Assertions showing a non-critical problem that has to be fixed by the SW.
#define ASSERT_REC(cond)   ASSERT_ERR(cond)
 Assertions that trigger the automatic recovery mechanism and return void.
#define ASSERT_REC_VAL(cond, ret)   ASSERT_ERR(cond)
 Assertions that trigger the automatic recovery mechanism and return a value.
#define ASSERT_REC_NO_RET(cond)   ASSERT_ERR(cond)
 Assertions that trigger the automatic recovery mechanism and do not return.

Functions

void dbg_force_trigger (const char *msg)
 Force the trigger of the logic analyzer.
void dbg_assert_rec (const char *condition, const char *file, int line)
 Print the assertion error reason and trigger the recovery procedure.
void dbg_assert_err (const char *condition, const char *file, int line)
 Print the assertion error reason and loop forever.
void dbg_assert_warn (const char *condition, const char *file, int line)
 Print the assertion warning reason.

Detailed Description

File containing the definitions of the assertion macros.

Copyright (C) RivieraWaves 2011-2019

Definition in file dbg_assert.h.


Generated on 14 Jan 2020 for Ceva-RW WLAN FullMAC SW documentation by  doxygen 1.6.1