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.

[参考译文] 获取243x - CPU 时钟周期

Guru**** 2341440 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1310736/getting-243x---cpu-clock-cycles

您好!

我使用的是 am243x-EVM。

我想读取 CPU 周期。

我已尝试  使用 ClockP_getTicks();   和 ClockP_getTimeUsec (); 但它们以微秒为单位返回周期、这对于我的应用来说是不够的。

是否有任何直接返回 CPU 周期的函数?

谢谢。

Eli

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Eli:

     kernel/DPL/CycleCounterP.h 中的 CycleCounterP_getCount32 ()将为您获取 CPU 周期。

    此致、

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Ming:

    谢谢!

    此致、

    Eli