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.

28377上有关TMU的一个疑问

Other Parts Discussed in Thread: C2000WARE

在针对28377的TMU测试中,从C2000ware中导入工程《tmu_sinegen_cpu01》,测试正常三角函数和TMU对应三角函数__sinpuf32()的运行时间比较,程序可以正常运行和测试,只是关于__sinpuf32不知道定义在了哪里?只看到CCS编译器的工程设置中勾选了TMU0,那么,我要是在自己创建的新的工程项目下启用类似__sinpuf32()的函数,需要做怎样的配置?CCS中勾选TMU0就可以了?

  • 您可以看一下该文档

    www.ti.com/.../spru514v.pdf

    并搜索 __sinpuf32,即 7.6.2 Trigonometric Math Unit (TMU) Intrinsics

    The following intrinsics perform faster trigonometric calculations using the Trigonometric Math Unit (TMU). These intrinsics are enabled if the --tmu_support=tmu0 compiler option is used.

    该函数为内联函数。

    如果您的设备具有TMU,则可以通过启用--tmu_support编译器标志来告诉编译器生成指令。请在CCS资源管理器窗口中右键单击项目名称,然后选择“Properties”。转到“ CCS Build-> C2000 Compiler-> Processor Options”,然后使用“ Specify TMU Support”旁边的下拉框。