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.

[参考译文] RM57L843:_restore_interupts () intrinsec 函数未定义错误

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1246296/rm57l843-_restore_interupts-intrinsec-function-is-undefined-error

器件型号:RM57L843

您好!

spnu151w"ARM 优化 C/C++编译器 v20.2.0.LTS "的表6-7中有一个 INSEC 函数列表。

编译器(TI v20.2.0.5.7.LTS C++14)说"_restore_interupts"未定义。 它不会抱怨其他中断(_disable_interrupts、_disable_IRQ 等)。

已弃用"_restore_interupts"?

此致  

Marcio。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    编译器(TI v20.2.0.5.7.LTS C++14)说"_restore_interupts"未定义。 它不会抱怨其他(_disable_interrupts、_disable_IRQ 等)。

    发现 无法使用内在函数"_restore_interupts ();" 、这意味着 C2000编译器 6.1.12的文档中有一个拼写错误(线程已有14年历史)、实际函数名称是 _restore_interrupts 、而不是_restore_interupts (缺少"r")。

    也许 ARM 编译器的 spnu151w 具有相同的拼写错误。

    您能尝试改用 _restore_interrupts 吗?

    在 ARM TI v20.2.0.5.7.LTS 安装程序中、 include/_atomic.h 文件具有以下内容:

    __attribute__((target("arm"))) __ATTRIBUTE_NOINLINE__
    static void __restore_interrupts(uint32_t t) { _restore_interrupts(t); }

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

    可以。 文档中有一处拼写错误。 我应该有这个点。 谢谢!

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

    感谢 Chester 为此主题提供的支持。