|
AM65x MCU+ SDK
09.01.00
|
|
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)
79 #define DebugP_SHM_LOG_SIZE ((2U*1024U) - 16U)
84 #define DebugP_MEM_LOG_SIZE ( 4*1024U )
93 #define DebugP_SHM_LOG_IS_VALID (0x12345678U)
99 #define UNSIGNED_INTEGERVAL_TWO (2U)
105 #define UNSIGNED_INTEGERVAL_THREE (3U)
110 #define CARRIAGE_RETURN_ASCII (13U)
130 #ifndef DebugP_ASSERT_ENABLED
136 #define DebugP_ASSERT_ENABLED 1
139 #ifndef DebugP_LOG_ENABLED
145 #define DebugP_LOG_ENABLED 1
150 #if DebugP_ASSERT_ENABLED
154 void _DebugP_assert(int32_t expression,
const char *file,
const char *
function, int32_t line,
const char *expressionString);
177 #define DebugP_assert(expression) _DebugP_assert(expression, __FILE__, __FUNCTION__, __LINE__, #expression)
189 #define DebugP_assertNoLog(expression) (_DebugP_assertNoLog(expression))
194 #define DebugP_assert(expression)
195 #define DebugP_assertNoLog(expression)
198 #if DebugP_LOG_ENABLED
225 #define DebugP_log(format, ...) _DebugP_logZone(DebugP_LOG_ZONE_ALWAYS_ON, (char *)format, ##__VA_ARGS__)
234 #define DebugP_logError(format, ...) _DebugP_logZone(DebugP_LOG_ZONE_ERROR, "ERROR: %s:%d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__)
243 #define DebugP_logWarn(format, ...) _DebugP_logZone(DebugP_LOG_ZONE_WARN, "WARNING: %s:%d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__)
252 #define DebugP_logInfo(format, ...) _DebugP_logZone(DebugP_LOG_ZONE_INFO, "INFO: %s:%d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__)
257 #define DebugP_log(format, ...)
258 #define DebugP_logError(format, ...)
259 #define DebugP_logWarn(format, ...)
260 #define DebugP_logInfo(format, ...)
uint32_t wrIndex
Definition: DebugP.h:119
void _DebugP_assertNoLog(int32_t expression)
Actual function that is called for assert's by DebugP_assertNoLog.
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:117
void _DebugP_assert(int32_t expression, const char *file, const char *function, int32_t line, const char *expressionString)
Actual function that is called for assert's by DebugP_assert.
int32_t DebugP_scanf(char *format,...)
Read a formatted string from the selected UART driver.
uint32_t rsv
Definition: DebugP.h:120
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_memLogWriterPutChar(char character)
Write a character 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_shmLogRead(void)
Reads logs from shared memory.
void DebugP_logZoneRestore(uint32_t logZoneMask)
Restire zone mask returned from DebugP_logZoneDisable or DebugP_logZoneEnable.
uint32_t rdIndex
Definition: DebugP.h:118
Data structure describing log in shared memory.
Definition: DebugP.h:115
#define DebugP_SHM_LOG_SIZE
size of shared memory log for a CPU
Definition: DebugP.h:79