1.FreeRTOS List简易分析

FreeRTOS从简单的List入手

  • 架构:Cortex-M3
  • 版本:FreeRTOS V9.0.0
  • 前言:打开List.c文件来看,200多行,并不是很多,详细看内容,其实就是一个双向链表的增和删

1.结构体List_t

typedef struct xLIST  
{  
   listFIRST_LIST_INTEGRITY_CHECK_VALUE		/*< Set to a known value if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */  
   configLIST_VOLATILE UBaseType_t uxNumberOfItems;  
   ListItem_t * configLIST_VOLATILE pxIndex;	/*< Used to walk through the list.  Points to the last item returned by a call to   listGET_OWNER_OF_NEXT_ENTRY (). */  
   MiniListItem_t xListEnd;			/*< List item that contains the maximum possible item value meaning it is   always at the end of the list and is therefore used as a marker. */  
   listSECOND_LIST_INTEGRITY_CHECK_VALUE		/*< Set to a known value if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */  
} List_t;
  • 能力有限只能挑几个来讲C
变量名 作用
listFIRST_LIST_INTEGRITY_CHECK_VALUE 检查数据是否完整
uxNumberOfItems 挂接在这个链表的链表项数目
xListEnd 指向链表的
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值