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.

[参考译文] 编译器/TMS570LC4357:TMS570LC43x 在中断中使用浮点

Guru**** 2442090 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/628203/compiler-tms570lc4357-tms570lc43x-using-floating-point-within-interrupts

器件型号:TMS570LC4357

工具/软件:TI C/C++编译器

我们正在基于 TMS570实施惯性导航系统、我想知道在 ISR 中使用浮点数学运算是否安全。 浮点例程是否位于标准库可重入函数内? 我知道某些函数不可重入、例如 ASIN、acos、log、sqrt、 等等...

在 ISR 内进行+/-*浮点操作是否安全?

感谢您的任何建议、

Steve

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

    我以前在 RTI ISR 中使用过浮点运算(+-*/)、但没有发现任何问题。 我没有在 ISR 中尝试正弦和余弦函数。 但我认为应该可以。 LC4357具有用于浮点运算的 HW FPU。 稍后我将在 ISR 中尝试 SIN/ASIN/COS/ACO 等函数。