|
AM62Ax MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
60 #define DebugP_LOG_ZONE_ALWAYS_ON (0x0001U)
64 #define DebugP_LOG_ZONE_ERROR (0x0002U)
68 #define DebugP_LOG_ZONE_WARN (0x0004U)
72 #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)
98 #define UNSIGNED_INTEGERVAL_TWO (2U)
103 #define UNSIGNED_INTEGERVAL_THREE (3U)
108 #define CARRIAGE_RETURN_ASCII (13U)
128 #ifndef DebugP_ASSERT_ENABLED
134 #define DebugP_ASSERT_ENABLED 1
137 #ifndef DebugP_LOG_ENABLED
143 #define DebugP_LOG_ENABLED 1
148 #if DebugP_ASSERT_ENABLED
152 void _DebugP_assert(int32_t expression,
const char *file,
const char *
function, int32_t line,
const char *expressionString);
175 #define DebugP_assert(expression) \
177 _DebugP_assert(expression, \
178 __FILE__, __FUNCTION__, __LINE__, #expression); \
191 #define DebugP_assertNoLog(expression) (_DebugP_assertNoLog(expression))
196 #define DebugP_assert(expression)
197 #define DebugP_assertNoLog(expression)
200 #if DebugP_LOG_ENABLED
227 #define DebugP_log(format, ...) \
229 _DebugP_logZone(DebugP_LOG_ZONE_ALWAYS_ON, format, ##__VA_ARGS__); \
239 #define DebugP_logError(format, ...) \
241 _DebugP_logZone(DebugP_LOG_ZONE_ERROR, "ERROR: %s:%d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
251 #define DebugP_logWarn(format, ...) \
253 _DebugP_logZone(DebugP_LOG_ZONE_WARN, "WARNING: %s:%d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
263 #define DebugP_logInfo(format, ...) \
265 _DebugP_logZone(DebugP_LOG_ZONE_INFO, "INFO: %s:%d: " format, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
271 #define DebugP_log(format, ...)
272 #define DebugP_logError(format, ...)
273 #define DebugP_logWarn(format, ...)
274 #define DebugP_logInfo(format, ...)
uint32_t wrIndex
Definition: DebugP.h:117
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:115
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:118
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:116
void DebugP_shmLogWriterPause(void)
Pauses shared memory log writer for this core.
Data structure describing log in shared memory.
Definition: DebugP.h:113
#define DebugP_SHM_LOG_SIZE
size of shared memory log for a CPU
Definition: DebugP.h:79
void DebugP_memLogWriterResume(void)
Resumes memory trace log for this core.