当前位置:网站首页>[FreeRTOS] FreeRTOS learning notes (7) - handwritten FreeRTOS two-way linked list / source code analysis

[FreeRTOS] FreeRTOS learning notes (7) - handwritten FreeRTOS two-way linked list / source code analysis

2022-07-04 07:07:00 Younger martial brother Guoguo

notes : Linked list items are nodes , Nodes are linked list items , It's all worth one thing , It doesn't matter what you call it .

One 、 Chain structure definition

// Define linked list , It is also a chain header 
typedef struct xLIST
{ 
      
    volatile unsigned   int uxNumberOfItems;	  
    ListItem_t *  pxIndex; 
    MiniListItem_t xListEnd;                  							 
} List_t;

Two 、 Definition mini Node item

Mini nodes are also nodes , But the mini node is only used to mark the end of the linked list and mount other nodes inserted into the linked list , Users can't use mini nodes , Chain header node and

原网站

版权声明
本文为[Younger martial brother Guoguo]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207040704494065.html