]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/include/list.h
Add event_groups.c and associated functions in other core files.
[freertos] / FreeRTOS / Source / include / list.h
index cc70e0689097700ec7c1c3f82907f3f14c74cc90..a4936889306df56e01da5607c4a4c14ec1b6d7b5 100644 (file)
@@ -205,7 +205,31 @@ typedef struct xLIST
  * \page listGET_LIST_ITEM_VALUE listGET_LIST_ITEM_VALUE\r
  * \ingroup LinkedList\r
  */\r
-#define listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxList )                     ( (&( ( pxList )->xListEnd ))->pxNext->xItemValue )\r
+#define listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxList )                     ( ( ( pxList )->xListEnd ).pxNext->xItemValue )\r
+\r
+/*\r
+ * Return the list item at the head of the list.\r
+ *\r
+ * \page listGET_HEAD_ENTRY listGET_HEAD_ENTRY\r
+ * \ingroup LinkedList\r
+ */\r
+#define listGET_HEAD_ENTRY( pxList )                                           ( ( ( pxList )->xListEnd ).pxNext )\r
+\r
+/*\r
+ * Return the list item at the head of the list.\r
+ *\r
+ * \page listGET_HEAD_ENTRY listGET_HEAD_ENTRY\r
+ * \ingroup LinkedList\r
+ */\r
+#define listGET_NEXT( pxListItem )                                                     ( ( pxListItem )->pxNext )\r
+\r
+/*\r
+ * Return the list item that marks the end of the list\r
+ *\r
+ * \page listGET_END_MARKER listGET_END_MARKER\r
+ * \ingroup LinkedList\r
+ */\r
+#define listGET_END_MARKER( pxList )                                           ( ( xListItem const * ) ( &( ( pxList )->xListEnd ) ) )\r
 \r
 /*\r
  * Access macro to determine if a list contains any items.  The macro will\r