]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS-Plus/Source/FreeRTOS-Plus-Trace/Include/trcBase.h
Update FreeRTOS+Trace recorder library to v3.0.2
[freertos] / FreeRTOS-Plus / Source / FreeRTOS-Plus-Trace / Include / trcBase.h
index ba86f5ce147dcc71910a7357770361ad08d9ff07..85a6c9c4ba19ab693c96f2847e39d2d2dc4f51d0 100644 (file)
@@ -1,10 +1,10 @@
 /*******************************************************************************\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
@@ -33,7 +33,7 @@
  *\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
@@ -145,7 +147,7 @@ typedef struct
 \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
@@ -242,7 +244,7 @@ typedef struct
        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
@@ -335,7 +337,7 @@ typedef struct
        /* 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
@@ -374,7 +376,7 @@ typedef struct
 \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