你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

关于freertos 的列表和列表项问题

[复制链接]
annqian 提问时间:2018-11-19 14:59 /
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;

查看上文
#ifndef configLIST_VOLATILE
#define configLIST_VOLATILE
#endif /

configLIST_VOLATILE在这里有什么用,为什么这么定义变量?

收藏 评论3 发布时间:2018-11-19 14:59

举报

3个回答
xiaojie0513 回答时间:2018-11-20 08:13:37
VOLATILE 就是Volatile,在config.h自定义实现的,如果没有就是没有吧,我记得好像是这样子的
︶ㄣ昕锐^^&~ 回答时间:2018-11-20 10:26:02
* To use volatile list structure members then add the following line to
* FreeRTOSConfig.h (without the quotes):
* "#define configLIST_VOLATILE volatile"

list.h里面已经注释很详细了,至于为啥这么定义,查一下volatile的用法就懂了
hejun96 回答时间:2020-2-10 22:19:14
volatile还是防止编译器做优化

所属标签

相似问题

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32N6 AI生态系统
STM32MCU,MPU高性能GUI
ST ACEPACK电源模块
意法半导体生物传感器
STM32Cube扩展软件包
关注我们
微信公众号二维码 微信公众号
手机版二维码 手机版