如何将定时器的触发时间间隔设置到1ms以下目前能设置的最低间隔为1ms,若输入0.5则会报错。如果想要0.5ms触发一次计时器请问应该如何操作
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
这个是定时器api函数说明
另外请您提供一下sdk的版本以及参考例程
我这边给您提供了training 希望可以帮助到您
另外为您提供了两个相关链接,希望可以帮助到您
、
这个是官方的,您确定一个毫秒您的数据可以处理完。
是的,我现在就是1ms,我只需要将数据入队即可,所以1ms能够完成,但是现在想要更快
从这个函数跳进去,结构体第三个成员您这边可以看一下
uint类型 无法使用浮点数
另外请您这边也注意这个
所以没办法 只能以整数为单位,您可以试着去修改一下273行
uint32_t clockTicks = clockDuration * (1000 / Clock_tickPeriod);
您试试放大或者缩小他的值,能不能实现效果,但是也是在整数的基础上
您使用0.5ms 协议栈会有很大的可能性被阻塞,卡死
我是在例程的基础上改的,但是改动的变化还是挺大的,。这是我自己写的线程,我主要还是想问您能不能将计时器的时间间隔设计的更小
我建议您这边去training,看完ble培训,相信您会有不一样的收获
不用尝试了 时间设置为0.5ms去做事件处理。很大的可能性会导致 协议栈阻塞
您这边还是去看一下ble的training吧,我这边为您提供链接以及地址