Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
completion完成量
completion_up.c 中引用的结构体错误 error: 'struct rt_completion' 没有 'susp_thread_n_flag'
发布于 2024-07-11 09:37:26 浏览:209
订阅该版
completion_up.c 中引用的结构体错误 ``` error: 'struct rt_completion' has no member named 'susp_thread_n_flag', ``` master工程中的completion.c不存在,completion_comm.c、completion_mp.c也有问题,也有结构体内成员不存在的问题,请尽快把相关文件传入并推送到master ``` RT-Thread Env Tool (ConEmu) Version 1.5.2 \ | / - RT - Thread Operating System / | \ 2006 - 2024 Copyright by RT-Thread team Activate Python VENV in C:\env-windows\tools\bin\..\..\.venv Clink v1.6.16 is available. - To apply the update, run 'clink update'. - To stop checking for updates, run 'clink set clink.autoupdate off'. - To view the release notes, visit the Releases page: https://github.com/chrisant996/clink/releases (.venv) Jack@DESKTOP-AAAAAAA C:\Users\Jack\Downloads\private\rt-thread-master\bsp\stm32\stm32f407-atk-explorer $ scons scons: Reading SConscript files ... Newlib version: 4.1.0 scons: done reading SConscript files. scons: Building targets ... scons: building associated VariantDir targets: build CC build\kernel\components\drivers\ipc\completion_up.o C:\Users\Jack\Downloads\private\rt-thread-master\components\drivers\ipc\completion_up.c: In function 'rt_completion_init': C:\Users\Jack\Downloads\private\rt-thread-master\components\drivers\ipc\completion_up.c:44:15: error: 'struct rt_completion' has no member named 'susp_thread_n_flag' 44 | completion->susp_thread_n_flag = RT_COMPLETION_NEW_STAT(RT_NULL, RT_UNCOMPLETED); | ^~ C:\Users\Jack\Downloads\private\rt-thread-master\components\drivers\ipc\completion_up.c: In function 'rt_completion_wait_flags': C:\Users\Jack\Downloads\private\rt-thread-master\components\drivers\ipc\completion_up.c:29:41: error: 'struct rt_completion' has no member named 'susp_thread_n_flag' 29 | #define RT_COMPLETION_FLAG(comp) ((comp)->susp_thread_n_flag & 1) | ^~ C:\Users\Jack\Downloads\private\rt-thread-master\components\drivers\ipc\completion_up.c:82:9: note: in expansion of macro 'RT_COMPLETION_FLAG' 82 | if (RT_COMPLETION_FLAG(completion) != RT_COMPLETED) | ^~~~~~~~~~~~~~~~~~ C:\Users\Jack\Downloads\private\rt-thread-master\components\drivers\ipc\completion_up.c:103:27: error: 'struct rt_completion' has no member named 'susp_thread_n_flag' 103 | completion->susp_thread_n_flag = waiting_stat; | ^~ C:\Users\Jack\Downloads\private\rt-thread-master\components\drivers\ipc\completion_up.c:125:31: error: 'struct rt_completion' has no member named 'susp_thread_n_flag' 125 | if (completion->susp_thread_n_flag != waiting_stat) | ^~ C:\Users\Jack\Downloads\private\rt-thread-master\components\drivers\ipc\completion_up.c:143:15: error: 'struct rt_completion' has no member named 'susp_thread_n_flag' 143 | completion->susp_thread_n_flag = RT_COMPLETION_NEW_STAT(RT_NULL, RT_UNCOMPLETED); | ^~ C:\Users\Jack\Downloads\private\rt-thread-master\components\drivers\ipc\completion_up.c: In function 'rt_completion_wakeup_by_errno': C:\Users\Jack\Downloads\private\rt-thread-master\components\drivers\ipc\completion_up.c:29:41: error: 'struct rt_completion' has no member named 'susp_thread_n_flag' 29 | #define RT_COMPLETION_FLAG(comp) ((comp)->susp_thread_n_flag & 1) | ^~ C:\Users\Jack\Downloads\private\rt-thread-master\components\drivers\ipc\completion_up.c:170:9: note: in expansion of macro 'RT_COMPLETION_FLAG' 170 | if (RT_COMPLETION_FLAG(completion) == RT_COMPLETED) | ^~~~~~~~~~~~~~~~~~ C:\Users\Jack\Downloads\private\rt-thread-master\components\drivers\ipc\completion_up.c:30:57: error: 'struct rt_completion' has no member named 'susp_thread_n_flag' 30 | #define RT_COMPLETION_THREAD(comp) ((rt_thread_t)((comp)->susp_thread_n_flag & ~1)) | ^~ C:\Users\Jack\Downloads\private\rt-thread-master\components\drivers\ipc\completion_up.c:176:22: note: in expansion of macro 'RT_COMPLETION_THREAD' 176 | suspend_thread = RT_COMPLETION_THREAD(completion); | ^~~~~~~~~~~~~~~~~~~~ C:\Users\Jack\Downloads\private\rt-thread-master\components\drivers\ipc\completion_up.c:199:15: error: 'struct rt_completion' has no member named 'susp_thread_n_flag' 199 | completion->susp_thread_n_flag = RT_COMPLETION_NEW_STAT(RT_NULL, RT_COMPLETED); | ^~ scons: *** [build\kernel\components\drivers\ipc\completion_up.o] Error 1 scons: building terminated because of errors. ```
查看更多
0
个回答
默认排序
按发布时间排序
暂无答案,快来添加答案吧
撰写答案
登录
注册新账号
关注者
0
被浏览
209
关于作者
sugong
这家伙很懒,什么也没写!
提问
3
回答
0
被采纳
0
关注TA
发私信
相关问题
1
scons编译提示没找到adc.h文件
2
rt_completion_wait 使用
3
rtthread中的completion.c是用来干什么的?
4
Can 发送卡在rt_completion_wait函数
5
rt_completion_wait不能用在ISR里
6
completion使用问题
7
2.1.0版本UART发送完成,和dma用到的queue和rt_completion_init问题
8
completion,dataqueue,waitqueue等文件的使用说明在哪?
9
完成量的使用,rt_completion_done()函数可以在中断里调用吗?
10
rt_completion_wait函数clash问题
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
RT-Thread项目助手v0.2.0 - 支持Env Windows
2
RttreadV5.10上,GD32F450Z RTC时间显示问题
3
rt-smart启动流程分析
4
EtherKit快速上手PROFINET
5
RTThread USB转串口无法接收数据
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
UART
WIZnet_W5500
ota在线升级
PWM
cubemx
flash
freemodbus
BSP
packages_软件包
潘多拉开发板_Pandora
定时器
ADC
flashDB
GD32
socket
编译报错
中断
Debug
rt_mq_消息队列_msg_queue
SFUD
msh
keil_MDK
ulog
MicroPython
C++_cpp
本月问答贡献
出出啊
1517
个答案
342
次被采纳
小小李sunny
1444
个答案
290
次被采纳
张世争
813
个答案
177
次被采纳
crystal266
547
个答案
161
次被采纳
whj467467222
1222
个答案
149
次被采纳
本月文章贡献
出出啊
1
篇文章
2
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
3
次点赞
crystal266
2
篇文章
2
次点赞
whj467467222
2
篇文章
2
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部