完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
2个快速的问题,我找不到答案:1)If被称为先前停止/变形的对象,发生了什么?2)如果计时器启动,如果在定时器过期后调用:将发生什么?对于单次单镜头计时器,该功能是否应该使用?帮助文件只提到停止并破坏一个周期定时器。我在代码中发现注释,说明CPU在开始执行单个定时器但没有具体停止之后开始奇怪地随机重置。
以上来自于百度翻译 以下为原文 2 quick questions that I could not find answers for: 1) If SYS_TMR_CallbackStop(handle) is called for a previously stopped / destryoed object, what happens? 2) If a timer is started with handle = SYS_TMR_CallbackSingle() what happens if : SYS_TMR_CallbackStop(handle) is called AFTER that timer has expired? and should that function be used at all for Single one shot timers? The help file only mentions that is stops and destroys a periodic timer. I found comments in code here that state that the CPU started strangely randomly resetting after Single timers were implemented started but NOT specifically stopped. I am not sure. Regards X |
|
相关推荐
3个回答
|
|
除非他们改变了系统,(我仍然在1.11)你可以停止一个属于其他东西的计时器。一些计时器函数将计时器自动返回到池中。所以很难确定它仍然安全使用。所以要小心。重复的回调工作正常。
以上来自于百度翻译 以下为原文 Unless they changed the system ,( I am still at 1.11) you could be stopping a timer that belongs to something else. Some of the timer functions return the timer to the pool automatically. So it is difficult to be sure it still safe to use. So be care. Repetitive callbacks work ok. |
|
|
|
除非他们改变了系统,(我仍然在1.11)你可以停止一个属于其他东西的计时器。一些计时器函数将计时器自动返回到池中。所以很难确定它仍然安全使用。所以要小心。重复的回调工作正常。
以上来自于百度翻译 以下为原文 Unless they changed the system ,( I am still at 1.11) you could be stopping a timer that belongs to something else. Some of the timer functions return the timer to the pool automatically. So it is difficult to be sure it still safe to use. So be care. Repetitive callbacks work ok. |
|
|
|
好的,我只是跟踪了停止函数,如果它不与一个有效句柄相比较,它基本上只是返回并且什么也不做。但是,不排除句柄是按你所说的另一个计时器再次有效的。我不知道该如何处理这些信息。只要它不能产生一个例外或结盟者一些其他的记忆,我现在大概可以忽略它。
以上来自于百度翻译 以下为原文 Ok. I just traced through the stop function and it seems that if it does not compare to a valid handle, it basically just returns and does nothing. That however does not rule out that the handle is valid again by some other timer as you said. I am not sure what to do with that information mentally but as long as it can not ever produce an exception or clubber some other memory, I can probably ignore it for now. |
|
|
|
只有小组成员才能发言,加入小组>>
5166 浏览 9 评论
2000 浏览 8 评论
1929 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3175 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2227 浏览 5 评论
736浏览 1评论
619浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
507浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
633浏览 0评论
530浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-25 03:06 , Processed in 1.739735 second(s), Total 85, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号