54 char const *
const g_pabDrvTraceKeySrings[] = {
"",
"\x1B[35mDATA\x1B[0m",
"\x1B[34mMODE\x1B[0m",
"\x1B[32mBORDER\x1B[0m",
"\x1B[32mCOUNTER\x1B[0m",
55 "\x1B[32mITERATION\x1B[0m",
"\x1B[32mLENGTH\x1B[0m",
"\x1B[31mIRQ\x1B[0m",
"\x1B[33mMSK\x1B[0m",
"\x1B[36mSTATE\x1B[0m",
"\x1B[36mINFO\x1B[0m",
56 "\x1B[0m11\x1B[0m",
"\x1B[0m12\x1B[0m",
"\x1B[0m13\x1B[0m",
"\x1B[32mCOUNT\x1B[0m" };
65 void TRACE(uint32_t ulKey, uint32_t ulValue)
89 g_atTraceQueue[i].
val = 0;
94 #ifdef DRV_TRACE_PRINTER 98 void TRACE_PRINT(
void)
void TRACE(uint32_t ulKey, uint32_t ulValue)
The trace function stores the given key and the given value in a cyclic list.
DRV_TRACE_KEY_E
Enumerates the keys used for the trace function.
uint32_t volatile g_ulRunFlag
references the running flag of the tracer.
__STATIC_FORCEINLINE void TRACE_PAUSE(void)
Stop the trace.
char const *const g_pabDrvTraceKeySrings[]
References the string array of the keys.
void TRACE_RESET(void)
The trace reset is doing what its name tells. It resets the trace.
uint32_t volatile g_ulQueueCounter
references the counter that points to the next queue element.
size_t u_DRV_TRACE_KEY_STRINGS
__STATIC_FORCEINLINE void TRACE_RUN(void)
Start the trace.
volatile DRV_TRACE_QUEUE_ELEMENT_T g_atTraceQueue[ulTraceQueueSize]
References the queue used for the debug trace functionality.
This file contains all the functions prototypes for the peripheral module driver. ...
Trace structure used for debug tracing of the drivers.
DRV_TRACE_KEY_E volatile key
#define UNUSED(x)
If there is the need to outsmart the compiler or linter.
#define ulTraceQueueSize
Defines the queue for the trace functionality.