TI-RTOS Drivers  tidrivers_full_2_20_00_08
Macros
DebugP.h File Reference

Detailed Description

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.


#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
Include dependency graph for DebugP.h:

Go to the source code of this file.

Macros

#define DebugP_ASSERT_ENABLED   0
 
#define DebugP_LOG_ENABLED   0
 
#define DebugP_assert(expression)
 
#define DebugP_log0(format)
 
#define DebugP_log1(format, p1)
 
#define DebugP_log2(format, p1, p2)
 
#define DebugP_log3(format, p1, p2, p3)
 
#define DebugP_log4(format, p1, p2, p3, p4)
 

Macro Definition Documentation

#define DebugP_ASSERT_ENABLED   0
#define DebugP_LOG_ENABLED   0
#define DebugP_assert (   expression)
#define DebugP_log0 (   format)
#define DebugP_log1 (   format,
  p1 
)
#define DebugP_log2 (   format,
  p1,
  p2 
)
#define DebugP_log3 (   format,
  p1,
  p2,
  p3 
)
#define DebugP_log4 (   format,
  p1,
  p2,
  p3,
  p4 
)
Copyright 2016, Texas Instruments Incorporated