|
xWRL6432 MMWAVE-L-SDK
05.04.00.01
|
|
Go to the documentation of this file.
59 #define DebugP_LOG_ZONE_ALWAYS_ON (0x0001U)
63 #define DebugP_LOG_ZONE_ERROR (0x0002U)
67 #define DebugP_LOG_ZONE_WARN (0x0004U)
71 #define DebugP_LOG_ZONE_INFO (0x0008U)
78 #define DebugP_SHM_LOG_SIZE ( (2U*1024U) - 16U)
83 #define DebugP_MEM_LOG_SIZE ( 4U*1024U )
92 #define DebugP_SHM_LOG_IS_VALID (0x12345678U)
112 #ifndef DebugP_ASSERT_ENABLED
118 #define DebugP_ASSERT_ENABLED 1
121 #ifndef DebugP_LOG_ENABLED
127 #define DebugP_LOG_ENABLED 1
132 #if DebugP_ASSERT_ENABLED
136 void _DebugP_assert(
int expression,
const char *file,
const char *
function,
int line,
const char *expressionString);
159 #define DebugP_assert(expression) _DebugP_assert(expression, __FILE__, __FUNCTION__, __LINE__, #expression)
170 #define DebugP_assertNoLog(expression) (_DebugP_assertNoLog(expression))
175 #define DebugP_assert(expression)
176 #define DebugP_assertNoLog(expression)
179 #if DebugP_LOG_ENABLED
213 #define DebugP_log(format, ...) _DebugP_logZone(DebugP_LOG_ZONE_ALWAYS_ON, format, ##__VA_ARGS__)
222 #define DebugP_logError(format, ...) \
224 _DebugP_logZone(DebugP_LOG_ZONE_ERROR, "ERROR: %s:%d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
234 #define DebugP_logWarn(format, ...) \
236 _DebugP_logZone(DebugP_LOG_ZONE_WARN, "WARNING: %s:%d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
246 #define DebugP_logInfo(format, ...) \
248 _DebugP_logZone(DebugP_LOG_ZONE_INFO, "INFO: %s:%d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
254 #define DebugP_log(format, ...)
255 #define DebugP_logError(format, ...)
256 #define DebugP_logWarn(format, ...)
257 #define DebugP_logInfo(format, ...)
uint32_t wrIndex
Definition: DebugP.h:101
void DebugP_shmLogWriterPutChar(char character)
Write a character to shared memory log.
uint32_t DebugP_logZoneDisable(uint32_t logZoneMask)
Disable log zones.
uint32_t DebugP_logZoneEnable(uint32_t logZoneMask)
Enable log zones.
void DebugP_memLogWriterInit(uint16_t selfCoreId)
Initialize log write to write to memory trace buffer.
void DebugP_shmLogWriterInit(DebugP_ShmLog *shmLog, uint16_t selfCoreId)
Initialize shared memory log writer for this core.
void DebugP_shmLogReaderInit(DebugP_ShmLog *shmLog, uint16_t numCores)
Initialize log reader to read from shared memory and log to console via DebugP_log.
uint32_t isValid
Definition: DebugP.h:99
int32_t DebugP_scanf(char *format,...)
Read a formatted string from the selected UART driver.
uint32_t rsv
Definition: DebugP.h:102
void _DebugP_assert(int expression, const char *file, const char *function, int line, const char *expressionString)
Actual function that is called for assert's by DebugP_assert.
int32_t DebugP_readLine(char *lineBuf, uint32_t bufSize)
Read a string from the selected UART driver.
void _DebugP_logZone(uint32_t logZone, char *format,...)
Function to log a string to the enabled console for a given zone.
void _DebugP_assertNoLog(int expression)
Actual function that is called for assert's by DebugP_assertNoLog.
void DebugP_memLogWriterPutChar(char character)
Write a character to trace buffer.
void DebugP_memTraceLogWriterPutLine(uint8_t *buf, uint16_t num_bytes)
Write a line to trace buffer.
void DebugP_uartSetDrvIndex(uint32_t uartDrvIndex)
Set UART driver index to use for character read and write form UART.
void DebugP_uartLogWriterPutChar(char character)
Write a character to UART terminal.
void DebugP_logZoneRestore(uint32_t logZoneMask)
Restire zone mask returned from DebugP_logZoneDisable or DebugP_logZoneEnable.
uint32_t rdIndex
Definition: DebugP.h:100
Data structure describing log in shared memory.
Definition: DebugP.h:97
#define DebugP_SHM_LOG_SIZE
size of shared memory log for a CPU
Definition: DebugP.h:78
void DebugP_logChar(char a)
Function to log a char to the enabled console.