/******************************************************************************* \r
- * Tracealyzer v2.4.1 Recorder Library\r
+ * Tracealyzer v2.5.0 Recorder Library\r
* Percepio AB, www.percepio.com\r
*\r
* trcHardwarePort.c\r
\r
#include <stdint.h>\r
\r
+uint32_t trace_disable_timestamp = 0;\r
+uint32_t last_timestamp = 0;\r
\r
/*******************************************************************************\r
* uiTraceTickCount\r
uint32_t traceTickCount = 0;\r
uint32_t hwtc_count = 0;\r
\r
+ if (trace_disable_timestamp == 1)\r
+ {\r
+ if (pTimestamp)\r
+ *pTimestamp = last_timestamp;\r
+ return;\r
+ }\r
+ \r
/* Retrieve HWTC_COUNT only once since the same value should be used all throughout this function. */\r
#if (HWTC_COUNT_DIRECTION == DIRECTION_INCREMENTING)\r
hwtc_count = HWTC_COUNT;\r
*pTimestamp = traceTickCount * (HWTC_PERIOD / HWTC_DIVISOR);\r
/* Increase timestamp by (hwtc_count + "lost hardware ticks from scaling down period") / HWTC_DIVISOR. */\r
*pTimestamp += (hwtc_count + traceTickCount * (HWTC_PERIOD % HWTC_DIVISOR)) / HWTC_DIVISOR;\r
+ \r
+ last_timestamp = *pTimestamp;\r
}\r
\r
/* Store the previous values. */\r