![]() |
PDK API Guide for J721E
|
DebugP interface
Functions | |
void | Osal_DebugP_assert_fcn (bool expression, const char *file, int32_t line) |
Assert Enabled. More... | |
void | DebugP_log0 (const char *format) |
Debug log function with 0 parameters. More... | |
void | DebugP_log1 (const char *format, uintptr_t p1) |
Debug log function with 1 parameters. More... | |
void | DebugP_log2 (const char *format, uintptr_t p1, uintptr_t p2) |
Debug log function with 2 parameters. More... | |
void | DebugP_log3 (const char *format, uintptr_t p1, uintptr_t p2, uintptr_t p3) |
Debug log function with 3 parameters. More... | |
void | DebugP_log4 (const char *format, uintptr_t p1, uintptr_t p2, uintptr_t p3, uintptr_t p4) |
Debug log function with 4 parameters. More... | |
Macros | |
#define | DebugP_ASSERT_ENABLED 1 |
#define | DebugP_LOG_ENABLED 1 |
#define | DebugP_assert(expression) |
#define DebugP_ASSERT_ENABLED 1 |
#define DebugP_LOG_ENABLED 1 |
#define DebugP_assert | ( | expression | ) |
void Osal_DebugP_assert_fcn | ( | bool | expression, |
const char * | file, | ||
int32_t | line | ||
) |
Assert Enabled.
The defintion is used to control the feature if assertions are to be enabled or not. This flag can be enabled for debug builds by changing the file OR through the makefile.
Log Enabled
The defintion is used to plug the logging API to the OS provided logging mechansim Application developers can port the backend Logging API as per their requirements
Assert checking function
If the expression is evaluated to true, the API does nothing. If it is evaluated to false, the underlying RTOS port implementation handles the assert via its mechanisms.
expression | Expression to evaluate |
file | File name |
line | Line number where evaluation occurs |
void DebugP_log0 | ( | const char * | format | ) |
Debug log function with 0 parameters.
The underlying RTOS port implementation handles the logging via its mechanisms.
format | "printf" format string |
void DebugP_log1 | ( | const char * | format, |
uintptr_t | p1 | ||
) |
Debug log function with 1 parameters.
The underlying RTOS port implementation handles the logging via its mechanisms.
format | "printf" format string |
p1 | first parameter to format string |
void DebugP_log2 | ( | const char * | format, |
uintptr_t | p1, | ||
uintptr_t | p2 | ||
) |
Debug log function with 2 parameters.
The underlying RTOS port implementation handles the logging via its mechanisms.
format | "printf" format string |
p1 | first parameter to format string |
p2 | second parameter to format string |
void DebugP_log3 | ( | const char * | format, |
uintptr_t | p1, | ||
uintptr_t | p2, | ||
uintptr_t | p3 | ||
) |
Debug log function with 3 parameters.
The underlying RTOS port implementation handles the logging via its mechanisms.
format | "printf" format string |
p1 | first parameter to format string |
p2 | second parameter to format string |
p3 | third parameter to format string |
void DebugP_log4 | ( | const char * | format, |
uintptr_t | p1, | ||
uintptr_t | p2, | ||
uintptr_t | p3, | ||
uintptr_t | p4 | ||
) |
Debug log function with 4 parameters.
The underlying RTOS port implementation handles the logging via its mechanisms.
format | "printf" format string |
p1 | first parameter to format string |
p2 | second parameter to format string |
p3 | third parameter to format string |
p4 | fourth parameter to format string |