我的平台是AM335x + TI-RTOS, 系统滴答clock_tick() 是1ms一次, 但是系统时间time()返回的结果如下, 为什么一次跳变两秒, 打印间隔是1s
项目紧急,大神帮忙给点建议。
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.
我的平台是AM335x + TI-RTOS, 系统滴答clock_tick() 是1ms一次, 但是系统时间time()返回的结果如下, 为什么一次跳变两秒, 打印间隔是1s
项目紧急,大神帮忙给点建议。
能详细点么
我用timer2定时1ms,作为clock_tick();
var Timer = xdc.useModule('ti.sysbios.hal.Timer');
var timerParams = new Timer.Params();
timerParams.startMode = xdc.module("ti.sysbios.interfaces.ITimer").StartMode_AUTO;
timerParams.runMode = Timer.RunMode_CONTINUOUS;
timerParams.period = 1000;
Program.global.myTimer = Timer.create(0, "&myTimerFunc", timerParams);
Clock.tickPeriod = 1000;
还有哪里有需要设置?