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.

6713bios中求周期数



求教6713bios中求周期数API函数的调用使用问题?

timer1=clk_gethtime();  //这个函数的时钟源是哪个,单位是多少

....processing...

timer2=clk_gethtime();

CPUcycles=(time2-time1)*CLK_cpuCyclesPerHtimer();//这个CLK_cpuCyclesPerHtimer()函数是根据哪个的时钟源得到的。

  • 从下面贴子的讨论来看,clk_gethtime就是用的bios的时钟用的timer.

    https://e2e.ti.com/support/embedded/tirtos/f/355/t/256174

    CLK_cpuCyclesPerHtimer也按里面说的到bios帮助文档里找一下吧。