153 Star 687 Fork 533

OpenHarmony / kernel_liteos_m

 / 详情

能否提供不关中断的tick或时间戳

待办的
任务
创建于  
2024-04-13 08:22

for (UINT64 t0 = LOS_TickCountGet();timeout > (LOS_TickCountGet() -t0))
{
……
}

解析quectel ec800m-cn 4g模组的at指令时发现其at指令帧格式不统一,程序不好断帧,因为其回复消息会产生两个usart idle中断,
先回复
\r\nOK\r\n
再回复
\r\n+QMTCONN:…\r\n
如果中断处理函数中用信号量通知主程序这种方式会丢帧,因此采用中断标志位结合for循环的方式,解析数据帧,
但是LOS_TickCountGet的源码会执行LOS_IntLock,关全局中断,显然在for循环中频繁开关全局中断,也会影响数据帧的解析,因此是否有可能实现不关全局中断的毫秒级的时间戳获取函数?

评论 (1)

need4oxygen 创建了任务

感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 @zhushengle @LeonChan @JerryH 。如果需要调整订阅PR、Issue的变更状态,请访问链接

Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer @zhushengle @LeonChan @JerryH for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.

openharmony_ci 添加了
 
waiting_for_assign
标签
need4oxygen 修改了标题
need4oxygen 修改了描述

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
7387629 openharmony ci 1656582662
C
1
https://gitee.com/openharmony/kernel_liteos_m.git
git@gitee.com:openharmony/kernel_liteos_m.git
openharmony
kernel_liteos_m
kernel_liteos_m

搜索帮助