PDK API Guide for J721E
DebugP OSAL Porting Layer

Debug support.

The DebugP module allows application to do logging and assert checking.

DebugP_assert calls can be added into code. If the code is compiled with the compiler define DebugP_ASSERT_ENABLED set to a non-zero value, the call is passed onto the underlying assert checking. If DebugP_ASSERT_ENABLED is zero (or not defined), the calls are resolved to nothing.

This module sits on top of the assert checking of the underlying RTOS. Please refer to the underlying RTOS port implementation for more details.

Similarly, DebugP_logN calls can be added into code. If the code is compiled with the compiler define DebugP_LOG_ENABLED set to a non-zero value, the call is passed onto the underlying assert checking. If DebugP_LOG_ENABLED is zero (or not defined), the calls are resolved to nothing.

This module sits on top of the logging of the underlying RTOS. Please refer to the underlying RTOS port implementation for more details.