 |
AM263x MCU+ SDK
11.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)
102 #define DebugP_SHM_LOG_READER_CHUNK_SIZE_INF UINT16_MAX
109 #define UNSIGNED_INTEGERVAL_TWO (2U)
115 #define UNSIGNED_INTEGERVAL_THREE (3U)
120 #define CARRIAGE_RETURN_ASCII (13U)
140 #ifndef DebugP_ASSERT_ENABLED
146 #define DebugP_ASSERT_ENABLED 1
149 #ifndef DebugP_LOG_ENABLED
155 #define DebugP_LOG_ENABLED 1
160 #if DebugP_ASSERT_ENABLED
164 void _DebugP_assert(int32_t expression,
const char *file,
const char *
function, int32_t line,
const char *expressionString);
187 #define DebugP_assert(expression) _DebugP_assert(expression, __FILE__, __FUNCTION__, __LINE__, #expression)
199 #define DebugP_assertNoLog(expression) (_DebugP_assertNoLog(expression))
204 #define DebugP_assert(expression)
205 #define DebugP_assertNoLog(expression)
208 #if DebugP_LOG_ENABLED
235 #define DebugP_log(format, ...) _DebugP_logZone(DebugP_LOG_ZONE_ALWAYS_ON, (char *)format, ##__VA_ARGS__)
244 #define DebugP_logError(format, ...) _DebugP_logZone(DebugP_LOG_ZONE_ERROR, "ERROR: %s:%d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__)
253 #define DebugP_logWarn(format, ...) _DebugP_logZone(DebugP_LOG_ZONE_WARN, "WARNING: %s:%d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__)
262 #define DebugP_logInfo(format, ...) _DebugP_logZone(DebugP_LOG_ZONE_INFO, "INFO: %s:%d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__)
267 #define DebugP_log(format, ...)
268 #define DebugP_logError(format, ...)
269 #define DebugP_logWarn(format, ...)
270 #define DebugP_logInfo(format, ...)
uint32_t wrIndex
Definition: DebugP.h:129
void _DebugP_assertNoLog(int32_t expression)
Actual function that is called for assert's by DebugP_assertNoLog.
void DebugP_shmLogWriterPreludeDisable()
Disable auto prelude for shared memory log writer.
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:127
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.
void DebugP_shmLogWriterPreludeEnable()
Enable auto prelude for shared memory log writer.
int32_t DebugP_scanf(char *format,...)
Read a formatted string from the selected UART driver.
uint32_t rsv
Definition: DebugP.h:130
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.
uint16_t DebugP_shmLogReaderGetChunkSize(void)
Get the read chunk size for the shared memory reader.
void DebugP_shmLogReaderSetChunkSize(uint16_t readChunkSize)
Set the read chunk size for the shared memory reader.
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:128
Data structure describing log in shared memory.
Definition: DebugP.h:125
#define DebugP_SHM_LOG_SIZE
size of shared memory log for a CPU
Definition: DebugP.h:79