 |
AM275 FreeRTOS SDK
11.00.00
|
|
Go to the documentation of this file.
68 #define DebugP_LOG_ZONE_ALWAYS_ON (0x0001U)
72 #define DebugP_LOG_ZONE_ERROR (0x0002U)
76 #define DebugP_LOG_ZONE_WARN (0x0004U)
80 #define DebugP_LOG_ZONE_INFO (0x0008U)
87 #define DebugP_SHM_LOG_SIZE ((2U*1024U) - 16U)
92 #define DebugP_MEM_LOG_SIZE ( 4*1024U )
101 #define DebugP_SHM_LOG_IS_VALID (0x12345678U)
106 #define UNSIGNED_INTEGERVAL_TWO (2U)
111 #define UNSIGNED_INTEGERVAL_THREE (3U)
116 #define CARRIAGE_RETURN_ASCII (13U)
136 #ifndef DebugP_ASSERT_ENABLED
142 #define DebugP_ASSERT_ENABLED 1
145 #ifndef DebugP_LOG_ENABLED
151 #define DebugP_LOG_ENABLED 1
156 #if DebugP_ASSERT_ENABLED
160 void _DebugP_assert(int32_t expression,
const char *file,
const char *
function, int32_t line,
const char *expressionString);
183 #define DebugP_assert(expression) \
185 _DebugP_assert(expression, \
186 __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, ...) \
237 _DebugP_logZone(DebugP_LOG_ZONE_ALWAYS_ON, format, ##__VA_ARGS__); \
247 #define DebugP_logError(format, ...) \
249 _DebugP_logZone(DebugP_LOG_ZONE_ERROR, "ERROR: %s:%d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
259 #define DebugP_logWarn(format, ...) \
261 _DebugP_logZone(DebugP_LOG_ZONE_WARN, "WARNING: %s:%d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
271 #define DebugP_logInfo(format, ...) \
273 _DebugP_logZone(DebugP_LOG_ZONE_INFO, "INFO: %s:%d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
279 #define DebugP_log(format, ...)
280 #define DebugP_logError(format, ...)
281 #define DebugP_logWarn(format, ...)
282 #define DebugP_logInfo(format, ...)
uint32_t wrIndex
Definition: DebugP.h:125
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.
void DebugP_shmLogWriterResume(void)
Resumes shared memory log writer for this core.
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_memLogWriterPause(void)
Pauses memory trace log 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:123
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:126
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:124
void DebugP_shmLogWriterPause(void)
Pauses shared memory log writer for this core.
Data structure describing log in shared memory.
Definition: DebugP.h:121
#define DebugP_SHM_LOG_SIZE
size of shared memory log for a CPU
Definition: DebugP.h:87
void DebugP_memLogWriterResume(void)
Resumes memory trace log for this core.