Util_constructClock使用100ms定时回调,存在几毫秒上下波动误差,使用开发版测试,通过串口打印,发现100ms循环打印,间隔不固定为100ms,在上下波动,
参数设置:Util_constructClock(&clkPeriodic,SimplePeripheral_clockHander,100,100,true,Null);
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.
你好,
Util_constructClock使用100ms定时回调,会存在时间上的波动。
造成原因有系统时钟精度、中断处理等,
循环打印用来观察回调间隔的话,也存在串口输出本身也会引入延迟的