/*******************************************************************************\r
- * Tracealyzer v2.7.7 Recorder Library\r
+ * Tracealyzer v3.0.2 Recorder Library\r
* Percepio AB, www.percepio.com\r
*\r
- * trcKernel.c\r
+ * trcBase.h\r
*\r
- * Functions used by trcKernelHooks.h for storing various kernel events.\r
+ * Core functionality of the Tracealyzer recorder library.\r
*\r
* Terms of Use\r
* This software is copyright Percepio AB. The recorder library is free for\r
*\r
* Tabs are used for indent in this file (1 tab = 4 spaces)\r
*\r
- * Copyright Percepio AB, 2012-2015.\r
+ * Copyright Percepio AB, 2014.\r
* www.percepio.com\r
******************************************************************************/\r
\r
/* Max number of event codes supported */\r
#define NEventCodes 0x100\r
\r
-extern volatile int recorder_busy; // This is used to keep track of the recorder's critical sections, to determine if it is busy\r
-// Our local critical sections for the recorder - updates an internal busy flag\r
+/* Keeps track of the recorder's critical sections */\r
+extern volatile int recorder_busy;\r
+\r
+/* Our local critical sections for the recorder */\r
#define trcCRITICAL_SECTION_BEGIN() {TRACE_ENTER_CRITICAL_SECTION(); recorder_busy++;}\r
#define trcCRITICAL_SECTION_END() {recorder_busy--; TRACE_EXIT_CRITICAL_SECTION();}\r
\r
\r
/* This is used to calculate the index in the dynamic object table\r
(handle - 1 - nofStaticObjects = index)*/\r
-#if (USE_16BIT_OBJECT_HANDLES == 1) \r
+#if (USE_16BIT_OBJECT_HANDLES == 1)\r
objectHandleType NumberOfObjectsPerClass[2*((TRACE_NCLASSES+1)/2)];\r
#else\r
objectHandleType NumberOfObjectsPerClass[4*((TRACE_NCLASSES+3)/4)];\r
uint8_t type;\r
uint8_t unused1;\r
uint8_t unused2;\r
- uint8_t dts; \r
+ uint8_t dts;\r
} TaskInstanceStatusEvent;\r
\r
typedef struct\r
/* Used to determine Kernel and Endianess */\r
uint16_t version;\r
\r
- /* Currently 3, since v2.6.0 */\r
+ /* Currently 3 */\r
uint8_t minor_version;\r
\r
/* This should be 0 if lower IRQ priority values implies higher priority\r
\r
/* Not used, remains for compatibility and future use */\r
uint8_t notused[28];\r
- \r
+\r
/* The amount of heap memory remaining at the last malloc or free event */\r
uint32_t heapMemUsage;\r
\r