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.

[参考译文] CC2652P7:支持数学函数

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

https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/1305271/cc2652p7-support-for-math-functions

器件型号:CC2652P7

您好!

我需要在算法中使用日志函数(例如: log10f)、还需要打印浮点数。

已包含 "#include "

看起来编译器无法找到 math.h。 但是、我没有遇到任何生成错误。

我应该交叉检查什么?

谢谢

卡尔蒂克

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

    Karthik、您好、

    数学库作为 CCS 安装中编译器目录的一部分提供、例如 C:\ti\ccs1230\ccs\tools\compiler\ti-cgt-armllvm_2.1.3.lsts\include\c。  您可能无法直接在 CCS 中打开此文件的声明、但在包含头文件后应能使用数学函数。  例如、我能够"#include "的配置文件、以便使用 log10和 sin 函数、而不出现任何构建错误。  此外、还提供了 TI Arm Clang 编译器工具用户指南

    此致、
    瑞安