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.

zstack时钟(计时器)相关



  请问下面函数是怎么个运行流程

void osalTimeUpdate( void )

特别是下面几行很费解,为什么*8以及/25呢?

  tmp = (ticks320us * 8) + remUsTicks;
     
    // Convert the 320 us ticks into milliseconds and a remainder
    elapsedMSec += tmp / 25;
    remUsTicks = tmp % 25;